Template:Softredirect: Difference between revisions

No edit summary
(So that shortcut doesn't work in templates?)
Line 3: Line 3:
Click this link to go to<br />
Click this link to go to<br />


[[Image:SoftRedirect.png]]<span class="redirectText">[[{{{1}}}:{{{2}}}|]]</span><br />
[[Image:SoftRedirect.png]]<span class="redirectText">[[{{{1}}}:{{{2}}}|{{{2}}}]]</span><br />


on [[{{{1}}}:|{{#ifeq: {{{1|}}} | igwn | Independent Gaming Wiki Network}}{{#ifeq: {{{1|}}} | gtm | Grand Theft Mods}}]].
on [[{{{1}}}:|{{#ifeq: {{{1|}}} | igwn | Independent Gaming Wiki Network}}{{#ifeq: {{{1|}}} | gtm | Grand Theft Mods}}]].

Revision as of 04:37, 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.

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}}

This produces:


Click this link to go to

Modifications

on Grand Theft Mods.