Vorlage:SplitLink: Unterschied zwischen den Versionen
Aus Offene Naturführer
Zeile 1: | Zeile 1: | ||
− | <includeonly>[[{{#replace:{{#replace:{{#replace:{{{1}}}|{{{3|&}}}|{{{2|,}}}}}|{{{2|,}}}|{{SplitLink/Delimiter}}}}|\|}}]]</includeonly><noinclude>{{Documentation}}</noinclude> | + | <includeonly>[[{{#replace:{{#replace:{{#replace:{{{1}}}|{{{3|&}}}|{{{2|,}}}}}|{{{2|,}}}|{{SplitLink/Delimiter}}}}|\|}}]]</includeonly><noinclude>{{Documentation}} |
+ | [[Category:Single-access key templates]]</noinclude> |
Version vom 13. Juli 2010, 16:48 Uhr
[Bearbeiten] [ ]
Dokumentation der Vorlage
USAGE
{{SplitCategory|LinkOne, LinkTwo & LinkThree|,|&}}
… creates, independently of the wiki language (i.e. working under en, de, etc.):
[[Category:LinkOne]] [[Category:LinkTwo]] [[Category:LinkThree]]
Technical Note: The function uses a #replace: parser function, but the replacement text ]], [[ must be "hidden" inside a second template (Template:SplitLink/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:SplitCategory.