Difference between revisions of "Template:NameTrick"
From AtlasWiki
(Created page with "<noinclude> This template emulates the "pipe trick", but items in parenthesis are retained. </noinclude>{{#arraydefine:colonSplit|{{{1}}}|:}}{{{1}}}|{{#switch:{{#arraysize:c...") |
|||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This template emulates the "pipe trick", but items in parenthesis are retained. | This template emulates the "pipe trick", but items in parenthesis are retained. | ||
− | </noinclude>{{#arraydefine:colonSplit|{{{1}}}|:}}[[{{{1}}}|{{#switch:{{#arraysize:colonSplit}}| 1 = {{#explode:{{{1}}}}} | #default = {{#explode:{{#arrayindex:colonSplit|1}}}}]] | + | </noinclude>{{#arraydefine:colonSplit|{{{1}}}|:}}[[{{{1}}}|{{#switch:{{#arraysize:colonSplit}}| 1 = {{#explode:{{{1}}}}} | #default = {{#explode:{{#arrayindex:colonSplit|1}}}}}}]] |
Revision as of 14:45, 22 October 2015
This template emulates the "pipe trick", but items in parenthesis are retained. [[{{{1}}}|{{{1}}}]]