Vorlage:SplitLink: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
K (&-test: <nowiki></nowiki> &)
 
Zeile 1: Zeile 1:
<includeonly>[[{{#replace:{{#replace:{{#replace:{{{1}}}|{{{3|&}}}|{{{2|,}}}}}|{{{2|,}}}|{{SplitLink/Delimiter}}}}|\|}}]]</includeonly><noinclude>{{Documentation}}
+
<includeonly>[[<!--
 +
-->{{#replace:<!--
 +
  -->{{#replace:<!--
 +
    -->{{#replace:{{{1}}}|{{{3|<nowiki></nowiki> &}}}|{{{2|,}}}<!-- -->}}|{{{2|,}}}|{{SplitLink/Delimiter}}<!--
 +
  -->}}|\|<!--
 +
-->}}]]</includeonly><noinclude>{{Documentation}}
 
[[Category:Single-access key templates]]</noinclude>
 
[[Category:Single-access key templates]]</noinclude>

Aktuelle Version vom 4. Oktober 2010, 12:06 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, 04:49 von https://offene-naturfuehrer.de/web/Vorlage:SplitLink