Template:Redirect: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
This template is for soft redirects. This template will NOT redirect the user, but will simply provide a big link | This template is for soft redirects. This template will NOT redirect the user, but will simply provide a big link | ||
By putting a link to a page, in the template eg <code><nowiki>{{redirect| | By putting a link to a page, in the template eg <code><nowiki>{{redirect|GTA}}</nowiki></code> you give the following | ||
{{redirect|GTA}} | |||
This will also work for external [[Help:Interwiki|Interwiki]] links, eg <code><nowiki>{{redirect|wp:GTA}}</nowiki></code> which links to the page "GTA" on Wikipedia. | This will also work for external [[Help:Interwiki|Interwiki]] links, eg <code><nowiki>{{redirect|wp:GTA}}</nowiki></code> which links to the page "GTA" on Wikipedia. | ||
{{redirect|wp:GTA}} | {{redirect|wp:GTA}} | ||
By adding a second variable, you can specify the text for the link, eg <code><nowiki>{{redirect|GTA|Grand Theft Auto}}</nowiki></code> | By adding a second variable, you can specify the text for the link, eg <code><nowiki>{{redirect|GTA|Grand Theft Auto}}</nowiki></code> | ||
{{redirect|GTA|Grand Theft Auto}} | {{redirect|GTA|Grand Theft Auto}} | ||
This also works for Interwiki links eg <code><nowiki>{{redirect|wp:GTA|Grand Theft Auto}}</nowiki></code> | This also works for Interwiki links eg <code><nowiki>{{redirect|wp:GTA|Grand Theft Auto}}</nowiki></code> | ||
{{redirect|wp:GTA|Grand Theft Auto}} | {{redirect|wp:GTA|Grand Theft Auto}} | ||
By adding a third variable, you can specify text to come ''after'' the link, such as the location<code><nowiki>{{redirect|wp:GTA|Grand Theft Auto|on Wikipedia}}</nowiki></code> | By adding a third variable, you can specify text to come ''after'' the link, such as the location<code><nowiki>{{redirect|wp:GTA|Grand Theft Auto|on Wikipedia}}</nowiki></code> |
Revision as of 14:00, 16 June 2007
Click this link to go to Main Page
This template is for soft redirects. This template will NOT redirect the user, but will simply provide a big link
By putting a link to a page, in the template eg {{redirect|GTA}}
you give the following
Click this link to go to GTA
This will also work for external Interwiki links, eg {{redirect|wp:GTA}}
which links to the page "GTA" on Wikipedia.
Click this link to go to wp:GTA
By adding a second variable, you can specify the text for the link, eg {{redirect|GTA|Grand Theft Auto}}
Click this link to go to Grand Theft Auto
This also works for Interwiki links eg {{redirect|wp:GTA|Grand Theft Auto}}
Click this link to go to Grand Theft Auto
By adding a third variable, you can specify text to come after the link, such as the location{{redirect|wp:GTA|Grand Theft Auto|on Wikipedia}}
Click this link to go to Grand Theft Auto on Wikipedia