Template:Delink
Revision as of 02:03, 19 November 2012 by test>Wikid77 (rewrote to use Template:Strfind_short, to try reducing template depth.)
How it works
- If there is [[ ]] take the bit between the first pair else the whole thing
- If there is a | take the bit before the | else the whole thing
Examples
- {{Delink|Paris}}
- {{Delink|[[Paris]]}}
- {{Delink|[[Paris|London]]}}
- {{Delink|[[Paris (city)|London]]}}