Template:LinkToString
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m (added usage) |
||
Line 2: | Line 2: | ||
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<br/> | Output: foo<br/> | ||
+ | Usage: <nowiki>{{LinkToString | {{{value}}} }}/nowiki><br/> | ||
''Thanks to Patrick Nagel.''</noinclude> | ''Thanks to Patrick Nagel.''</noinclude> | ||
<includeonly>{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}</includeonly> | <includeonly>{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}</includeonly> |
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}}} }}/nowiki><br/>
''Thanks to Patrick Nagel.''</noinclude>
<includeonly>{{#explode:{{#sub:{{{1}}}|3}}|{{!}}|0}}</includeonly>