Template:InterwikiInfobox: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary |
m (Text replacement - "]] </noinclude>" to "]]</noinclude>") |
||
(4 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
</noinclude> | </noinclude> | ||
|- | |- | ||
|style="background-color:#{{InterwikiColour|{{{2}}}}}"|'''Article on {{{1}}}''' | |style="background-color:#{{InterwikiColour|{{{2}}}|bg}}"|'''Article{{#if:{{{page2|}}}|s}} on {{{1}}}''' | ||
|[[{{{2}}}:{{{3}}}|{{{4}}}]] | |colspan="{{{colspan|1}}}"|[[{{{2}}}:{{{3}}}|{{{4}}}]]{{#if:{{{page2|}}}|<br>[[{{{2}}}:{{{page2}}}|{{{title2}}}]]}} | ||
|- | |- | ||
<noinclude> | <noinclude> | ||
Line 12: | Line 12: | ||
Stick this template before the <nowiki>|}</nowiki> of an infobox (like a stage infobox) like this: | Stick this template before the <nowiki>|}</nowiki> of an infobox (like a stage infobox) like this: | ||
<code><nowiki>{{InterwikiInfobox|name of wiki|interwiki prefix|article name on that wiki|desired title of link}}</nowiki></code> | <code><nowiki>{{InterwikiInfobox|name of wiki|interwiki prefix|article name on that wiki|desired title of link|colspan=1}}</nowiki></code> | ||
[[Category:Meta-templates]] | The colspan part is optional, for infoboxes like {{t|Infobox Enemy}} that use multicolumns. | ||
</noinclude> | |||
To link to two pages at once: | |||
<code><nowiki>{{InterwikiInfobox|name of wiki|interwiki prefix|article name on that wiki|desired title of link|page2=second page|title2=second title}}</nowiki></code> | |||
The page2 and title2 names must be present to elimiate confusion with the colspan ability. | |||
[[Category:Meta-templates]]</noinclude> |
Latest revision as of 01:43, August 30, 2019
Article on {{{1}}} | [[{{{2}}}:{{{3}}}|{{{4}}}]] |
Usage
Stick this template before the |} of an infobox (like a stage infobox) like this:
{{InterwikiInfobox|name of wiki|interwiki prefix|article name on that wiki|desired title of link|colspan=1}}
The colspan part is optional, for infoboxes like {{Infobox Enemy}} that use multicolumns.
To link to two pages at once:
{{InterwikiInfobox|name of wiki|interwiki prefix|article name on that wiki|desired title of link|page2=second page|title2=second title}}
The page2 and title2 names must be present to elimiate confusion with the colspan ability.