Template:Iwx/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(wikia.com -> fandom.com)
Tag: 2017 source edit
No edit summary
Line 5: Line 5:
The first undefined variable — or <code>1</code> — is the name of the page on that wiki, and <code>2</code> is the name you want to pipeswitch it. If <code>2</code> is left undefined, it defaults to <code>1</code>; if <code>1</code> is left undefined, it defaults to <nowiki>{{PAGENAME}}</nowiki>.
The first undefined variable — or <code>1</code> — is the name of the page on that wiki, and <code>2</code> is the name you want to pipeswitch it. If <code>2</code> is left undefined, it defaults to <code>1</code>; if <code>1</code> is left undefined, it defaults to <nowiki>{{PAGENAME}}</nowiki>.


Meanwhile, <code>wiki</code> 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 <code>wiki</code>, use <code>wiki name</code>.  
Meanwhile, <code>wiki</code> 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 <code>wiki</code>, use <code>wiki name</code>.
 
(New: Add <code>t=y</code> to add "the" before the <code>wiki name</code> link (ex: "the [[w:c:lego-dimensions|''LEGO Dimensions'' Wiki]]".)


'''Please use the <code>wiki description</code> variable sparingly'''—if the name of the wiki says it all, as is the case with [[w:c:queerasfolk|Queer as Folk Wiki]], it's an unnecessary redundancy to use the variable.
'''Please use the <code>wiki description</code> variable sparingly'''—if the name of the wiki says it all, as is the case with [[w:c:queerasfolk|Queer as Folk Wiki]], it's an unnecessary redundancy to use the variable.
Line 17: Line 19:
==== Output ====
==== Output ====
{{iwx|wiki=pybot|wiki name=Pybot Wiki}}
{{iwx|wiki=pybot|wiki name=Pybot Wiki}}
==== Input ====
<pre>{{iwx|Diagon Alley|wiki=harrypotter|wiki name=Harry Potter Wiki|t=y}}</pre>
==== Output ====
{{iwx|Diagon Alley|wiki=harrypotter|wiki name=Harry Potter Wiki|t=y}}

Revision as of 14:43, 9 March 2023

{{Iwx/doc}}, 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

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

Output

Input

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

Output

Input

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

Output