Template:Iwx: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Tag: sourceedit
No edit summary
 
Line 1: Line 1:
<includeonly>* {{#if:{{{wiki|}}}|'''[[w:c:{{{wiki}}}:{{{1|{{PAGENAME}}}}}{{!}}{{{name|{{{2|{{{1|{{PAGENAME}}}}}}}}}}}]]''' at [[w:c:{{{wiki}}}{{!}}{{{wiki name|{{{wiki}}}}}}{{#if:{{{wiki description|}}}|, {{{wiki description}}}}}]]|<span style=color:red;font-weight:bold>You must specify at least one parameter.</span>}}</includeonly><noinclude>{{documentation}}
<includeonly>* {{#if:{{{wiki|}}}|'''[[w:c:{{{wiki}}}:{{{1|{{PAGENAME}}}}}{{!}}{{{name|{{{2|{{{1|{{PAGENAME}}}}}}}}}}}]]''' at {{#if:{{{t|}}}|the{{nbsp}}}}[[w:c:{{{wiki}}}{{!}}{{{wiki name|{{{wiki}}}}}}{{#if:{{{wiki description|}}}|, {{{wiki description}}}}}]]|<span style=color:red;font-weight:bold>You must specify at least one parameter.</span>}}</includeonly><noinclude>{{documentation}}
[[Category:External links templates]]</noinclude>
[[Category:External links templates]]</noinclude>

Latest revision as of 14:40, 9 March 2023

Instructions for {{Iwx}}
{{Iwx}}, short for interwiki x, provides a template for a very general interwiki link, designed for use in the external links section on articles.

For external links, that is, links to websites other than wikis, please use {{elx}} instead. For inline interwiki links, use {{iw}}.

The first undefined variable — or 1 — is the name of the page on that wiki, and 2 is the name you want to pipeswitch it. If 2 is left undefined, it defaults to 1; if 1 is left undefined, it defaults to {{PAGENAME}}.

Meanwhile, wiki is for the name of the wiki you want to link to as you would type into the url bar. So whatever comes before the ".fandom.com". If you want the name that displays to be different to the one defined in wiki, use wiki name.

(New: Add t=y to add "the" before the wiki name link (ex: "the LEGO Dimensions Wiki".)

Please use the wiki description variable sparingly—if the name of the wiki says it all, as is the case with Queer as Folk Wiki, it's an unnecessary redundancy to use the variable.

Input[[edit source]]

{{iwx|Jar Jar Binks|wiki=starwars|wiki name=Wookieepedia|wiki description=the wiki that covers all licensed ''Star Wars'' works}}

Output[[edit source]]

Input[[edit source]]

{{iwx|wiki=pybot|wiki name=Pybot Wiki}}

Output[[edit source]]

Input[[edit source]]

{{iwx|Diagon Alley|wiki=harrypotter|wiki name=Harry Potter Wiki|t=y}}

Output[[edit source]]