Template:Sm: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
(adding ability to show flags easily - I'm not adding a "display character heads" ability since it's much more unpredictable)
Line 1: Line 1:
[[Smasher:{{{1}}}|{{{1}}}]]<noinclude>
{{#if:{{{2|}}}|{{Flag|{{{2}}}}}&nbsp;}}[[Smasher:{{{1}}}|{{{1}}}]]<noinclude>


Type <code><nowiki>{{Sm|Name}}</nowiki></code> to link to a page in the Smasher namespace.
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}}.
For example, <code><nowiki>{{Sm|Mew2King}}</nowiki></code> results in {{Sm|Mew2King}}.
A second parameter can be given in order to display a [[Template:Flag|flag]] to the left of the link, so <code><nowiki>{{Sm|Mew2King|USA}}</nowiki></code> produces {{Sm|Mew2King|USA}}.


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 11:48, January 10, 2013

[[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 USA Mew2King.