Template:W/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
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}}
85,404

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.