Template:W/doc: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''{{tl|w}}''' is a handly little shortcut that equates the following markup: | '''{{tl|w}}''' is a handly little shortcut that equates the following markup: | ||
<pre>[[wikipedia:article name]] --> {{w|article name}}</pre> | <pre>[[wikipedia:article name]] --> {{w|article name}}</pre> | ||
==Usage== | |||
{{tl|w}} incorporates one kind of [[pipe trick]]. As long as the wikipedia article is '''not [[dab|disambiguated]]''', then it will automatically get rid of the prepending "wikipedia:". Hence, | |||
:<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, | |||
:<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:47, 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