Template:Wi/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "'''{{tl|wi}}''' is a handly little shortcut that equates the following markup: <pre>''wikipedia:article name'' --> {{wi|article name}}</pre> In other words, it's the same th...")
 
m (spelling)
Tag: sourceedit
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''{{tl|wi}}''' is a handly little shortcut that equates the following markup:
'''{{tl|wi}}''' is a handy little shortcut that equates the following markup:
<pre>''[[wikipedia:article name]]'' --> {{wi|article name}}</pre>
<pre>''[[wikipedia:article name]]'' --> {{wi|article name}}</pre>


In other words, it's the same thing as {{tl|w}} except that it adds ''italics'' automatically. Think of it as ''wikipedia italics'', or ''wi''.  It's thus a tool that makes following [[T:ITAL]] that little bit easier.
In other words, it's the same thing as {{tl|w}} except that it adds ''italics'' automatically. Think of it as ''wikipedia italics'', or ''wi''.  It's thus a tool that makes following [[T:ITAL]] that little bit easier.
==Usage==
== Usage ==
{{tl|wi}} 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,  
{{tl|wi}} 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>{{wi|The Way We Were}}</nowiki></code> results in {{wi|The Way We Were}}.
:<code><nowiki>{{wi|The Way We Were}}</nowiki></code> results in {{wi|The Way We Were}}.
Line 9: Line 9:
:<code><nowiki>{{wi|Casablanca (film)}}</nowiki></code> renders the undesirable {{wi|Casablanca (film)}}
:<code><nowiki>{{wi|Casablanca (film)}}</nowiki></code> renders the undesirable {{wi|Casablanca (film)}}
::''but''
::''but''
:<code><nowiki>{{wi|Casablanca (film)|Casablanca}}</nowiki></code> renders a title on wikipedia in the italicised the way we want: {{w|Casablanca (film)|Casablanca}}
:<code><nowiki>{{wi|Casablanca (film)|Casablanca}}</nowiki></code> renders a title on wikipedia in the italicised the way we want: {{wi|Casablanca (film)|Casablanca}}
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 07:29, 11 February 2017

{{wi}} is a handy little shortcut that equates the following markup:

''[[wikipedia:article name]]'' --> {{wi|article name}}

In other words, it's the same thing as {{w}} except that it adds italics automatically. Think of it as wikipedia italics, or wi. It's thus a tool that makes following T:ITAL that little bit easier.

Usage

{{wi}} 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,

{{wi|The Way We Were}} results in The Way We Were.

However, if the wikipedia title is disambiguated, you must type a little more. For instance,

{{wi|Casablanca (film)}} renders the undesirable Casablanca (film)
but
{{wi|Casablanca (film)|Casablanca}} renders a title on wikipedia in the italicised the way we want: Casablanca