Template:Softredirect: Difference between revisions
(Fix) |
(+No colon (in instructions)) |
||
Line 15: | Line 15: | ||
<code><nowiki>{{softredirect|interwiki code|page name}}</nowiki></code> | <code><nowiki>{{softredirect|interwiki code|page name}}</nowiki></code> | ||
In the above example code, <code>interwiki code</code> refers to the prefix used for linking to the destination wiki. For IGWN this is <code>igwn</code> and for Grand Theft Mods it is <code>gtm</code>. | In the above example code, <code>interwiki code</code> refers to the prefix used for linking to the destination wiki. For IGWN this is <code>igwn</code> and for Grand Theft Mods it is <code>gtm</code>. This code should NOT include the colon (<code>:</code>) | ||
In addition, <code>page name</code> refers to the name of the destination article on that wiki. | In addition, <code>page name</code> refers to the name of the destination article on that wiki. |
Revision as of 05:06, 11 January 2012
This template is used for creating soft redirects to Independent Gaming Wiki Network and Grand Theft Mods. The usual redirect syntax #REDIRECT [[mods:PAGE NAME]]
doesn't work for interwiki redirects, so this template provides a clickable link instead.
To use this template, use the following format:
{{softredirect|interwiki code|page name}}
In the above example code, interwiki code
refers to the prefix used for linking to the destination wiki. For IGWN this is igwn
and for Grand Theft Mods it is gtm
. This code should NOT include the colon (:
)
In addition, page name
refers to the name of the destination article on that wiki.
For example, to link to GTM's Modifications page, use the following code:
{{softredirect|gtm|Modifications}}
If the destination page on the other wiki has the same name as the page being redirected, the page name can be omitted. For example:
{{softredirect|gtm}}
If you're using this template to link to a wiki besides IGWN or GTM, a third parameter can be added to manually specify the name of the wiki. For example:
{{softredirect|wp|Mod (video gaming)|Wikipedia}}
That code will produce a link to Mod on Wikipedia (because wp
is the interwiki code used for Wikipedia. The thrd parameter, "Wikipedia", is used to provide the name of the wiki.