Template:Flag: Difference between revisions
Jump to navigation
Jump to search
Available language flags
(add some functionality) |
No edit summary |
||
(48 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{filepath:{{{1|English}}}.png}}{{# | {{filepath:{{#switch:{{{1|}}} | ||
| =English | |||
|Alsatian =Alsatian | |||
|Aymara =Quechua | |||
|Filipino =Tagalog | |||
|Scottish Gaelic =Lowland Scots | |||
|#default = {{{1}}}}}.png}}{{#switch:{{{2|}}} | |||
|show={{sp}}{{{1|English}}} | |||
| = | |||
|#default ={{sp}}{{{2}}}}}<noinclude> | |||
{{prot-temp}} | {{prot-temp}} | ||
{{DisplayBox|text= | {{DisplayBox|text= | ||
Line 6: | Line 15: | ||
For example, | For example, | ||
<pre>{{flag|Latvian}}</pre> | <pre>{{flag|Latvian}}</pre> | ||
displays | displays the Latvian flag | ||
:{{flag|Latvian}} | :{{flag|Latvian}} | ||
If the first (language) parameter is omitted, then | If the first (language) parameter is omitted, then | ||
<pre>{{flag}}</pre> | <pre>{{flag}}</pre> | ||
displays | displays the English language flag by default | ||
:{{flag}} | :{{flag}} | ||
'''Optionally:''' one may add a second parameter: | '''Optionally:''' one may add a second parameter: | ||
Line 19: | Line 27: | ||
to make "Norwegian" appear after the flag, as in | to make "Norwegian" appear after the flag, as in | ||
:{{flag|Norwegian|show}} | :{{flag|Norwegian|show}} | ||
Alternatively, | '''Alternatively,''' | ||
<pre>{{flag|Norwegian|but my parents were really Swedish!}}</pre> | <pre>{{flag|Norwegian|but my parents were really Swedish!}}</pre> | ||
produces | produces | ||
:{{flag|Norwegian|but my parents were really Swedish!}} | :{{flag|Norwegian|but my parents were really Swedish!}} | ||
}} | }} | ||
{{DisplayBox|text= | |||
<center>'''Available language flags'''</center> | |||
{{top}} | |||
*{{flag|Alsatian|show}} | |||
*{{flag|Aragonese|show}} | |||
*{{flag|Armenian|show}} | |||
*{{flag|Asturian|show}} | |||
*{{flag|Basque|show}} | |||
*{{flag|Bosnian|show}} | |||
*{{flag|Catalan|show}} | |||
*{{flag|Chinese|show}} | |||
*{{flag|Church Slavonic|show}} | |||
*{{flag|Cornish|show}} | |||
*{{flag|Corsican|show}} | |||
*{{flag|Croatian|show}} | |||
*{{flag|Czech|show}} | |||
*{{flag|Danish|show}} | |||
*{{flag|Dutch|show}} | |||
*{{flag|Emilian|show}} | |||
{{middle|4}} | |||
*{{flag|English|show}} | |||
**{{flag|Old English|show}} | |||
**{{flag|Middle English|show}} | |||
*{{flag|Extremaduran|show}} | |||
*{{flag|Finnish|show}} | |||
*{{flag|Flemish|show}} | |||
*{{flag|French|show}} | |||
*{{flag|Friulian|show}} | |||
*{{flag|Galician|show}} | |||
**{{flag|Galician-Portuguese|show}} | |||
*{{flag|Georgian|show}} | |||
*{{flag|German|show}} | |||
*{{flag|Greek|show}} | |||
**{{flag|Ancient Greek|show}} | |||
*{{flag|Guanche|show}} | |||
*{{flag|Hebrew|show}} | |||
{{middle|4}} | |||
*{{flag|Hungarian|show}} | |||
*{{flag|Icelandic|show}} | |||
*{{flag|Indonesian|show}} | |||
*{{flag|Irish|show}} | |||
*{{flag|Italian|show}} | |||
*{{flag|Japanese|show}} | |||
*{{flag|Korean|show}} | |||
*{{flag|Latin|show}} | |||
*{{flag|Latvian|show}} | |||
*{{flag|Lombard|show}} | |||
*{{flag|Lowland Scots|show}} | |||
*{{flag|Mochica|show}} | |||
*{{flag|Nahuatl|show}} | |||
*{{flag|Neapolitan|show}} | |||
*{{flag|Norwegian|show}} | |||
*{{flag|Occitan|show}} | |||
*{{flag|Polish|show}} | |||
{{middle|4}} | |||
*{{flag|Piedmontese|show}} | |||
*{{flag|Portuguese|show}} | |||
*{{flag|Romanian|show}} | |||
*{{flag|Russian|show}} | |||
*{{flag|Sardinian|show}} | |||
*{{flag|Serbian|show}} | |||
*{{flag|Sicilian|show}} | |||
*{{flag|Slovenian|show}} | |||
*{{flag|Slovak|show}} | |||
*{{flag|Spanish|show}} | |||
*{{flag|Swahili|show}} | |||
*{{flag|Swedish|show}} | |||
*{{flag|Tagalog|show}} | |||
*{{flag|Ukrainian|show}} | |||
*{{flag|Venetian|show}} | |||
*{{flag|Welsh|show}} | |||
*{{flag|Zulu|show}} | |||
{{bottom}} | |||
}} | |||
[[Category:Icon templates]] | |||
</noinclude> | </noinclude> |
Revision as of 05:35, 21 June 2020
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
- Norwegian
Alternatively,
{{flag|Norwegian|but my parents were really Swedish!}}
produces
- but my parents were really Swedish!
|
|
|
|