Vorlage:SplitCategory/doc: Unterschied zwischen den Versionen
Aus Offene Naturführer
K (+dcterms:subject) |
K |
||
Zeile 10: | Zeile 10: | ||
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. | 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]] | * [[property:dcterms:subject]] | ||
+ | * [[mediawikiwiki:Extension:Variables|Extension:Variables]] | ||
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.