Vorlage:SplitCategory/doc: Unterschied zwischen den Versionen
Aus Bayernflora
K (1 Version) |
|
(kein Unterschied)
|
Aktuelle Version vom 23. Oktober 2013, 13:24 Uhr
|
This is a documentation subpage for Vorlage:SplitCategory (see that page for the vorlage itself). It contains usage information, categories and other content that is not part of the original vorlage page. |
USAGE
{{SplitCategory|CatOne, CatTwo & CatThree|,|&}}
… creates, independently of the wiki language (i.e. working under en, de, etc.):
[[Category:CatOne]] [[Category:CatTwo]] [[Category:CatThree]]
Technical Note: The function uses a #replace: parser function, but the replacement text ]] [[{{ns:category}}: must be "hidden" inside a second template (Template:SplitCategory/Delimiter). Without this trick the brackets will not result in valid links, due to some cleanup/sanitizer code present in the parser.
See also Template:SplitLink.