Template:Sm: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(adding option to resize icons) |
Serpent King (talk | contribs) (added p parameter for parenthesis links. Should have been done a long time ago) |
||
Line 1: | Line 1: | ||
{{#if:{{{2|}}}|{{Flag|{{{2}}}}} }}[[Smasher:{{{1}}}|{{{1}}}]]{{#if:{{{c1|}}}{{{c2|}}}{{{c3|}}}| {{#if:{{{g|}}}|{{#if:{{{c1|}}}|{{Head|c={{{c1}}}|g={{{g}}}|s={{{size|20}}}x{{{size|20}}}px|l={{{c1}}} ({{{g}}})}}}}{{#if:{{{c2|}}}|{{Head|c={{{c2}}}|g={{{g}}}|s={{{size|20}}}x{{{size|20}}}px|l={{{c2}}} ({{{g}}})}}}}{{#if:{{{c3|}}}|{{Head|c={{{c3}}}|g={{{g}}}|s={{{size|20}}}x{{{size|20}}}px|l={{{c3}}} ({{{g}}})}}}}|<span class="error">[Chars but no game specified]</span>}}}}<noinclude> | {{#if:{{{2|}}}|{{Flag|{{{2}}}}} }}[[Smasher:{{#if:{{{p|}}}|{{{1}}} ({{{p}}})|{{{1}}}}}|{{{1}}}]]{{#if:{{{c1|}}}{{{c2|}}}{{{c3|}}}| {{#if:{{{g|}}}|{{#if:{{{c1|}}}|{{Head|c={{{c1}}}|g={{{g}}}|s={{{size|20}}}x{{{size|20}}}px|l={{{c1}}} ({{{g}}})}}}}{{#if:{{{c2|}}}|{{Head|c={{{c2}}}|g={{{g}}}|s={{{size|20}}}x{{{size|20}}}px|l={{{c2}}} ({{{g}}})}}}}{{#if:{{{c3|}}}|{{Head|c={{{c3}}}|g={{{g}}}|s={{{size|20}}}x{{{size|20}}}px|l={{{c3}}} ({{{g}}})}}}}|<span class="error">[Chars but no game specified]</span>}}}}<noinclude> | ||
Type <code><nowiki>{{Sm|Name}}</nowiki></code> to link to a page in the Smasher namespace. For example, <code><nowiki>{{Sm|Mew2King}}</nowiki></code> results in {{Sm|Mew2King}}. | Type <code><nowiki>{{Sm|Name}}</nowiki></code> to link to a page in the Smasher namespace. For example, <code><nowiki>{{Sm|Mew2King}}</nowiki></code> results in {{Sm|Mew2King}}. |
Revision as of 23:41, August 2, 2016
[[Smasher:{{{1}}}|{{{1}}}]]
Type {{Sm|Name}}
to link to a page in the Smasher namespace. For example, {{Sm|Mew2King}}
results in Mew2King.
A second parameter can be given in order to display a flag to the left of the link, so {{Sm|Mew2King|USA}}
produces Mew2King.
Additional parameters can be used to display up to three character heads for a given game. For example, {{Sm|Mew2King|c1=Sheik|c2=Marth|c3=Fox|g=SSBM}}
results in Mew2King .