Vorlage:SplitCategory/doc: Unterschied zwischen den Versionen
Aus Offene Naturführer
(doku erstellt) |
K |
||
(7 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{Documentation/subpage}} | {{Documentation/subpage}} | ||
+ | === USAGE === | ||
− | + | <nowiki>{{SplitCategory|CatOne, CatTwo & CatThree|,|&}}</nowiki> | |
+ | … creates, independently of the wiki language (i.e. working under en, de, etc.): | ||
+ | <nowiki>[[Category:CatOne]] [[Category:CatTwo]] [[Category:CatThree]]</nowiki> | ||
− | + | == Technical dependencies == | |
− | + | ||
− | + | ||
− | + | 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. | |
+ | * [[property:dcterms:subject]] | ||
+ | * [[mediawikiwiki:Extension:Variables|Extension:Variables]] | ||
− | + | ||
+ | See also [[Template:SplitLink]]. | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
− | |||
− | |||
</includeonly> | </includeonly> | ||
+ | <!-- These categories also for the /doc itself: --> | ||
+ | [[Category:Single-access key templates]] |
Aktuelle Version vom 17. Juli 2016, 00:06 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 dependencies
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.