Template:NoDoubleBrackets

From Brickipedia, the LEGO Wiki
Revision as of 05:18, 7 May 2009 by wikia>LegOtaku (Created page with '{{#if: {{#pos:{{{1}}}|[|0}} | {{#sub:{{{1}}}|{{#expr:{{#rpos:{{{1}}}|[}}+1}}|{{#expr:{{#len:{{{1}}} }}-4 }} }}| {{{1}}} }} <noinclude> This template tests if a string contains do...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

This template tests if a string contains double brackets i.e. whether it is a wikilink or not and strips those brackets from that string if this is the case. Otherwise it returns just the respective string.