Template:Iwx/doc: Difference between revisions
No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 10: | Line 10: | ||
==== Input ==== | ==== Input ==== | ||
<pre>{{ | <pre>{{iwx|Jar Jar Binks|wiki=starwars|wiki name=Wookieepedia|wiki description=the wiki that covers all licensed ''Star Wars'' works}}</pre> | ||
==== Output ==== | ==== Output ==== | ||
{{ | {{iwx|Jar Jar Binks|wiki=starwars|wiki name=Wookieepedia|wiki description=the wiki that covers all licensed ''Star Wars'' works}} | ||
==== Input ==== | ==== Input ==== | ||
<pre>{{ | <pre>{{iwx|wiki=pybot|wiki name=Pybot Wiki}}</pre> | ||
==== Output ==== | ==== Output ==== | ||
{{ | {{iwx|wiki=pybot|wiki name=Pybot Wiki}} |
Revision as of 05:10, 3 January 2016
{{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 ".wikia.com". If you want the name that displays to be different to the one defined in wiki
, use wiki name
.
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}}