Template:W/doc: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
:<code><nowiki>{{w|London}}</nowiki></code> results in {{w|London}}. | :<code><nowiki>{{w|London}}</nowiki></code> results in {{w|London}}. | ||
However, if the wikipedia title ''is'' disambiguated, you must type a little more. For instance, | However, if the wikipedia title ''is'' disambiguated, you must type a little more. For instance, | ||
:<code><nowiki>{{w|London (band)}}</nowiki></code> renders {{w|London (band)}} | :<code><nowiki>{{w|London (band)}}</nowiki></code> renders {{w|London (band)}} | ||
::''but'' | |||
:<code><nowiki>{{w|London (band)|London}}</nowiki></code> renders {{w|London (band)|London}} |
Revision as of 21:48, 12 January 2012
{{w}} is a handly little shortcut that equates the following markup:
[[wikipedia:article name]] --> {{w|article name}}
Usage
{{w}} incorporates one kind of pipe trick. As long as the wikipedia article is not disambiguated, then it will automatically get rid of the prepending "wikipedia:". Hence,
{{w|London}}
results in London.
However, if the wikipedia title is disambiguated, you must type a little more. For instance,
{{w|London (band)}}
renders London (band)- but
{{w|London (band)|London}}
renders London