Vorlage:SplitCategory/doc: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
K (+dcterms:subject)
Zeile 5: Zeile 5:
 
… creates, independently of the wiki language (i.e. working under en, de, etc.):
 
… creates, independently of the wiki language (i.e. working under en, de, etc.):
 
  <nowiki>[[Category:CatOne]] [[Category:CatTwo]] [[Category:CatThree]]</nowiki>
 
  <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.
 
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]]
 +
  
 
See also [[Template:SplitLink]].
 
See also [[Template:SplitLink]].

Version vom 16. Juli 2016, 22:03 Uhr

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.

Quelle: Offene Naturführer, Das Wiki zu Bestimmungsfragen: Vorlage:SplitCategory/doc. Abgerufen am 2. Juni 2025, 00:46 von https://offene-naturfuehrer.de/web/Vorlage:SplitCategory/doc