Template:Iw: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary Tag: Mobile edit |
(with 3 optional like this, we can use this instead of {{s}} in all interwiki cases, which makes selection of what template to use simpler) |
||
Line 1: | Line 1: | ||
[[:{{{1}}}:{{{2}}} ({{{3}}})|{{{2}}}]]<noinclude> | [[:{{{1}}}:{{{2}}}{{#if:{{{3|}}}| ({{{3}}})}}|{{{2}}}]]<noinclude> | ||
An interwiki-linking simplifier. Put in <code><nowiki>{{S|X|Y|Z}}</nowiki></code> for a shortcut of <code><nowiki>[[X:Y (Z)|Y]]</nowiki></code>. The Z is optional. | |||
For example, <code><nowiki>{{IW|mariowiki|Donkey Kong|game}}</nowiki></code> results in {{IW|mariowiki|Donkey Kong|game}}. | For example, <code><nowiki>{{IW|mariowiki|Donkey Kong|game}}</nowiki></code> results in {{IW|mariowiki|Donkey Kong|game}}. | ||
This template is similar to the | This template is similar to the {{t|s}} template. Unlike the "s" template, however, this can link to specific pages, rather than generic ones. | ||
[[Category:Shortcut templates]] </noinclude> | [[Category:Shortcut templates]]</noinclude> |
Revision as of 19:25, December 7, 2014
[[:{{{1}}}:{{{2}}}|{{{2}}}]]
An interwiki-linking simplifier. Put in {{S|X|Y|Z}}
for a shortcut of [[X:Y (Z)|Y]]
. The Z is optional.
For example, {{IW|mariowiki|Donkey Kong|game}}
results in Donkey Kong.
This template is similar to the {{s}} template. Unlike the "s" template, however, this can link to specific pages, rather than generic ones.