Vorlage:SplitLink: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
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] [Aktualisieren] Template-info.svg 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.

Quelle: Offene Naturführer, Das Wiki zu Bestimmungsfragen: Vorlage:SplitLink. Abgerufen am 6. April 2025, 05:48 von https://offene-naturfuehrer.de/web/Vorlage:SplitLink