Template:Flag: Difference between revisions

From ChoralWiki
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}}}}}|}}<noinclude>
{{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

English.png

Usage: The normal syntax is:

{{flag|<language>}}

For example,

{{flag|Latvian}}

displays

Latvian.png

(the Latvian flag). If the first (language) parameter is omitted, then

{{flag}}

displays

English.png

(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

Norwegian.png

Alternatively,

{{flag|Norwegian|but my parents were really Swedish!}}

produces

Norwegian.png