5,680
edits
(Automatically detecting page name) |
(+Custom Wikis) |
||
Line 5: | Line 5: | ||
[[Image:SoftRedirect.png]]<span class="redirectText">[[{{{1}}}:{{{2|{{PAGENAME}}}}}|{{{2|{{PAGENAME}}}}}]]</span><br /> | [[Image:SoftRedirect.png]]<span class="redirectText">[[{{{1}}}:{{{2|{{PAGENAME}}}}}|{{{2|{{PAGENAME}}}}}]]</span><br /> | ||
on [[{{{1}}}:|{{#ifeq: {{{1|}}} | igwn | Independent Gaming Wiki Network}}{{#ifeq: {{{1|}}} | gtm | Grand Theft Mods}}]]. | on [[{{{1}}}:|{{#if: {{{3|}}} | {{#ifeq: {{{1|}}} | igwn | Independent Gaming Wiki Network}}{{#ifeq: {{{1|}}} | gtm | Grand Theft Mods}} | {{{3}}}}}]]. | ||
</includeonly> | </includeonly> | ||
Line 23: | Line 23: | ||
<code><nowiki>{{softredirect|gtm|Modifications}}</nowiki></code> | <code><nowiki>{{softredirect|gtm|Modifications}}</nowiki></code> | ||
If the destination page on the other wiki | 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: | ||
<code><nowiki>{{softredirect|gtm}}</nowiki></code> | <code><nowiki>{{softredirect|gtm}}</nowiki></code> | ||
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: | |||
<code><nowiki>{{softredirect|wp|Mod (video gaming)|Wikipedia}}</nowiki></code> | |||
That code will produce a link to [[wp:Mod (video gaming)|Mod]] on Wikipedia (because <code>wp</code> is the interwiki code used for Wikipedia. The thrd parameter, "Wikipedia", is used to provide the name of the wiki. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |