Template:Flag: Difference between revisions
Jump to navigation
Jump to search
(add some functionality) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{filepath:{{{1|English}}}.png}}{{#ifexist: {{{2}}}|{{sp}}{{#switch: {{{2}}}|show={{{1|English}}}|{{{2}}}}} | {{filepath:{{{1|English}}}.png}}{{#ifexist: {{{2}}}|{{sp}}{{#switch: {{{2}}}|show={{{1|English}}}|{{{2}}}|}}}}<noinclude> | ||
{{prot-temp}} | {{prot-temp}} | ||
{{DisplayBox|text= | {{DisplayBox|text= |
Revision as of 16:42, 9 January 2009
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
Usage: The normal syntax is:
{{flag|<language>}}
For example,
{{flag|Latvian}}
displays
(the Latvian flag). If the first (language) parameter is omitted, then
{{flag}}
displays
(the English language flag) by default.
Optionally: one may add a second parameter:
{{flag|Norwegian|show}}
to make "Norwegian" appear after the flag, as in
Alternatively,
{{flag|Norwegian|but my parents were really Swedish!}}
produces