Anybody know how to get admonitions like the following in mediawiki?
http://meta.wikimedia.org/wiki/Help:Installation
Thanks,
Maurizio
Hey Maurizio,
On 7/17/07, Maurizio Vitale maurizio.vitale@polymath-solutions.com wrote:
Anybody know how to get admonitions like the following in mediawiki?
these messages are called boilerplates in MediaWiki, afaik. They are inserted with templates, so you can use one text for several articles, see here: http://meta.wikimedia.org/wiki/Help:A_quick_guide_to_templates
This template in particular is built with cascading stylesheets, take a look at this: http://meta.wikimedia.org/wiki/Template:MovedToMediaWiki
Florian
Thanks for the pointers, very helpful indeed. Two followup questions: - is this what people use to wrap entire paragraphs potentially with mediawiki markup? I can see two ways: - one template with a very long argument (like the chess position example) - two templates, one providing the header and one providing the trailer Which is more common?
- is there a collection of useful templates somewhere? I can find extensions, but not templates.
Tanks a lot,
Maurizio
On Jul 17, 2007, at 4:10 PM, Florian Käutner wrote:
Hey Maurizio,
On 7/17/07, Maurizio Vitale <maurizio.vitale@polymath- solutions.com> wrote:
Anybody know how to get admonitions like the following in mediawiki?
these messages are called boilerplates in MediaWiki, afaik. They are inserted with templates, so you can use one text for several articles, see here: http://meta.wikimedia.org/wiki/ Help:A_quick_guide_to_templates
This template in particular is built with cascading stylesheets, take a look at this: http://meta.wikimedia.org/wiki/Template:MovedToMediaWiki
Florian
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hey Maurizio,
On 7/17/07, Maurizio Vitale maurizio.vitale@polymath-solutions.com wrote:
- is this what people use to wrap entire paragraphs potentially with
mediawiki markup? I can see two ways: - one template with a very long argument (like the chess position example) - two templates, one providing the header and one providing the trailer Which is more common?
Depends on your style, I suppose. And on what you need templates for. I'm admin on Memory Alpha (German version), which is a Star Trek wiki, forming an encyclopedia. We're linking to Episodes very often and in order to have those links uniform and standardized, we'll use templates.
-> instead of linking [[TNG]]: ''[[All Good Things...]]'' there is a template named "TNG" which is doing the formating job and also may link to more episodes. Looks like {{TNG|All Good Things...|Encounter at Farpoint}}
That is a very complex template, which in fact doesn't work properly after MediaWiki 1.10. See http://memory-alpha.org/en/wiki/Template:TNG
Another very common use of templates is just to have a message on an article for "text in work", articles which will be deleted or just incomplete articles. Most of the will work without parameter and those messages are much like the template you found before.
A major benefit of using templates is, that you can lookup articles with certain template very quick, to see all articles, which shall be deleted. Besides the benefit to create a graphical intense template just once and changes in a template will change all instances of a certain template.
- is there a collection of useful templates somewhere? I can find
extensions, but not templates.
For more information and a bunch of templates, see * http://memory-alpha.org/en/wiki/Help:Template ** http://memory-alpha.org/en/wiki/Memory_Alpha:Message_templates ** http://memory-alpha.org/en/wiki/Memory_Alpha:Navigational_templates ** http://memory-alpha.org/en/wiki/Memory_Alpha:Sidebar_templates ** http://memory-alpha.org/en/wiki/Memory_Alpha:Meta_templates ** http://memory-alpha.org/en/wiki/Memory_Alpha:Article_templates
Florian
Maurizio Vitale wrote:
Thanks for the pointers, very helpful indeed. Two followup questions:
- is this what people use to wrap entire paragraphs potentially with
mediawiki markup?
Yes, you could also use css classes, but you need access to common.css to create/change them, so they aren't so popular.
I can see two ways:
- one template with a very long argument (like the chess position
example) - two templates, one providing the header and one providing the trailer Which is more common?
Arguments too long can be ugly, so if when we face several paragraphs, usually two templates are used. Chess posisition is special because the | an line breaks make an ascii board. However, be aware that some two-template systems won't work if you have your wiki configured without tidy (mediawiki will close the div on the first template).
- is there a collection of useful templates somewhere? I can find
extensions, but not templates.
See on the different wikis (still remember: they're GFDL), templates are made when the needing arises. Each wiki has different needs, so we don't have a 'set of templates each wiki should have' (though some are quite common). I recommend you seeing how a big wiki (like wikipedia) has solved your specific problem (note: really big wikis may have solutions too complex for your small wiki).
mediawiki-l@lists.wikimedia.org