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>
Note that it can also handle a [[pipe trick]] by default, so it will get rid of pesky little [[dab|disambiguation]] termsHere are some examples:
==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|Life on Mars (TV series)}}</nowiki></code> renders {{w|Life on Mars (TV series)}}
:<code><nowiki>{{w|London}}</nowiki></code> results in {{w|London}}.
* {{w|red}}
However, if the wikipedia title ''is'' disambiguated, you must type a little more.  For instance,
*{{w|green}}
:<code><nowiki>{{w|London (band)}}</nowiki></code> renders {{w|London (band)}}, but
* {{w|Lytton (Doctor Who)|Lytton}}
::<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