Template:Wi: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Tag: sourceedit
No edit summary
Tag: sourceedit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>''[[wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]''{{#ifeq:{{NAMESPACE}}||{{#switch:{{PAGENAME}}|{{{1}}}|{{ucfirst:{{{1}}}}}|{{#explode:{{{1}}}|#|0}}|James Acheson=|#default={{#ifexist:{{#replace:{{{1}}}|#|/}}|{{cat|Pages with inline Wikipedia links that correspond to pages at Tardis}}}}}}{{cat|Pages with inline Wikipedia links}}}}</includeonly><noinclude>{{documentation}}[[Category:External links templates]][[Category:Templates that add a tracking category]]</noinclude>
<includeonly>''[[wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]''{{#ifeq:{{NAMESPACE}}||{{#switch:{{PAGENAME}}|{{{1}}}|{{ucfirst:{{{1}}}}}|{{#explode:{{{1}}}|#|0}}|James Acheson|The Art of War (novel)=|#default={{#ifexist:{{#replace:{{{1}}}|#|/}}|{{#switch:{{{1|}}}|Primeval|Timeslip|Doc Martin=|#default={{cat|Pages with inline Wikipedia links that correspond to pages at Tardis}}}}}}}}{{cat|Pages with inline Wikipedia links}}}}</includeonly><noinclude>{{documentation}}[[Category:External links templates]][[Category:Templates that add a tracking category]]</noinclude>

Latest revision as of 01:43, 14 June 2017

Instructions for {{Wi}}
{{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