Jump to content

Template:Softredirect: Difference between revisions

Automatically detecting page name
(So that shortcut doesn't work in templates?)
(Automatically detecting page name)
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}}}|{{{2}}}]]</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}}}:|{{#ifeq: {{{1|}}} | igwn | Independent Gaming Wiki Network}}{{#ifeq: {{{1|}}} | gtm | Grand Theft Mods}}]].
Line 23: Line 23:
<code><nowiki>{{softredirect|gtm|Modifications}}</nowiki></code>
<code><nowiki>{{softredirect|gtm|Modifications}}</nowiki></code>


This produces:
If the destination page on the other wiki is the same name as the page being redirected, the page name can be omitted. For example:


{{softredirect|gtm|Modifications}}
<code><nowiki>{{softredirect|gtm}}</nowiki></code>


[[Category:Templates]]
[[Category:Templates]]


</noinclude>
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.