5,680
edits
(+No colon (in instructions)) |
(+Examples) |
||
Line 22: | Line 22: | ||
<code><nowiki>{{softredirect|gtm|Modifications}}</nowiki></code> | <code><nowiki>{{softredirect|gtm|Modifications}}</nowiki></code> | ||
This code produces the following: | |||
<div style="float:left;border:1px solid #000;padding:5px 10px;"> | |||
{{softredirect|gtm|Modifications}} | |||
</div><br style="clear:both;" /> | |||
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: | 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|Modifications}}</nowiki></code> | ||
This code produces the following: | |||
<div style="float:left;border:1px solid #000;padding:5px 10px;"> | |||
{{softredirect|gtm}} | |||
</div><br style="clear:both;" /> | |||
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: | 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: | ||
Line 31: | Line 43: | ||
<code><nowiki>{{softredirect|wp|Mod (video gaming)|Wikipedia}}</nowiki></code> | <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. | That code will produce a link to [[wp:Mod (video gaming)|Mod (video gaming]] 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. This code will produce the following: | ||
<div style="float:left;border:1px solid #000;padding:5px 10px;"> | |||
{{softredirect|wp|Mod (video gaming)|Wikipedia}} | |||
</div><br style="clear:both;" /> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |