Template:LinkToString
From syn2cat - HackerSpace.lu
(Difference between revisions)
(Created page with '<noinclude> Input: A wiki-link as it comes out of #ask queries (<nowiki>bar</nowiki>)<br/> Output: foo</noinclude><br/> ''Thanks to Patrick Nagel.'' <includeonly>{{#expl…') |
m (typo) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Input: A wiki-link as it comes out of #ask queries (<nowiki>[[:foo|bar]]</nowiki>)<br/> | Input: A wiki-link as it comes out of #ask queries (<nowiki>[[:foo|bar]]</nowiki>)<br/> | ||
− | Output: foo</ | + | Output: foo<br/> |
− | ''Thanks to Patrick Nagel.'' | + | Usage: <nowiki>{{LinkToString | {{{value}}} }}</nowiki><br/> |
+ | ''Thanks to Patrick Nagel.''</noinclude> | ||
<includeonly>{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}</includeonly> | <includeonly>{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}</includeonly> |
Latest revision as of 14:11, 20 May 2011
Input: A wiki-link as it comes out of #ask queries ([[:foo|bar]])
Output: foo
Usage: {{LinkToString | {{{value}}} }}
Thanks to Patrick Nagel.