Vorlage:SplitCategory/doc: Unterschied zwischen den Versionen
Aus Offene Naturführer
Zeile 2: | Zeile 2: | ||
=== USAGE === | === USAGE === | ||
− | <nowiki>{{SplitCategory| | + | <nowiki>{{SplitCategory|CatOne, CatTwo & CatThree|,|&}}</nowiki> |
− | + | … creates, independently of the wiki language (i.e. working under en, de, etc.): | |
− | <nowiki>[[Category: | + | <nowiki>[[Category:CatOne]] [[Category:CatTwo]] [[Category:CatThree]]</nowiki> |
− | Technical Note: The function uses <nowiki>#replace:</nowiki>, but the replacement text must be "hidden" inside a second template | + | Technical Note: The function uses a <nowiki>#replace:</nowiki> parser function, but the replacement text <tt><nowiki>]] [[{{ns:category}}:</nowiki></tt> 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: | + | See also [[Template:SplitLink]]. |
− | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
− | [[ | + | [[Category:Templates using string-functions]] |
− | + | ||
</includeonly> | </includeonly> |
Version vom 13. Juli 2010, 16:45 Uhr
|
Dies ist eine Unterseiten-Dokumentation für Vorlage:SplitCategory (siehe dort für die Vorlage selbst). Sie enthält Informationen zur Verwendung, Kategorisierung und andere Inhalte die nicht Bestandteil der originalen Vorlage sind. |
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. </includeonly>