Difference between revisions of "Template:PipeTrick"
From AtlasWiki
(changed purpose...pipe trick doesn't work at all in templates, only in live editing...so this is a substitute for use by templates.) |
(fix call to #explode) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This template emulates the "pipe trick", producing a link whose displayed text excludes the namespace (if any), and excludes everything after the first open parenthesis. | This template emulates the "pipe trick", producing a link whose displayed text excludes the namespace (if any), and excludes everything after the first open parenthesis. | ||
− | </noinclude>[[{{{1}}}|{{explode:{{#explode:{{{1}}}|:|0}}|(|0}}]] | + | </noinclude>[[{{{1}}}|{{#explode:{{#explode:{{{1}}}|:|0}}|(|0}}]] |
Revision as of 14:58, 12 May 2014
This template emulates the "pipe trick", producing a link whose displayed text excludes the namespace (if any), and excludes everything after the first open parenthesis. [[{{{1}}}|{{{1}}}]]