Template:Flag: Difference between revisions
Jump to navigation
Jump to search
(Adding new countries based on Nintendo's marketing regions) |
(More Countries) |
||
Line 4: | Line 4: | ||
|us | usa = United States of America Flag.png{{!}}United States of America | |us | usa = United States of America Flag.png{{!}}United States of America | ||
|ar = Argentine Republic Flag.png{{!}}Argentine Republic | |ar = Argentine Republic Flag.png{{!}}Argentine Republic | ||
|at = Austria Flag.svg{{!}}Republic of Austria | |||
|au | aus = Commonwealth of Australia Flag.png{{!}}Commonwealth of Australia | |au | aus = Commonwealth of Australia Flag.png{{!}}Commonwealth of Australia | ||
|be = Belgium Flag.svg{{!}}Kingdom of Belgium | |||
|br = Brazil Flag.png{{!}}Federative Republic of Brazil | |br = Brazil Flag.png{{!}}Federative Republic of Brazil | ||
|ca | can = Canada Flag.png{{!}}Canada | |ca | can = Canada Flag.png{{!}}Canada | ||
|ch = Switzerland Flag.svg{{!}}Swiss Confederation (Switzerland) | |||
|cn = China Flag.png{{!}}People's Republic of China | |cn = China Flag.png{{!}}People's Republic of China | ||
|cl = Chile Flag.svg{{!}}Republic of Chile | |cl = Chile Flag.svg{{!}}Republic of Chile | ||
Line 13: | Line 16: | ||
|de | ger = Germany Flag.png{{!}}Federal Republic of Germany | |de | ger = Germany Flag.png{{!}}Federal Republic of Germany | ||
|dk = Kingdom of Denmark Flag.png{{!}}Kingdom of Denmark | |dk = Kingdom of Denmark Flag.png{{!}}Kingdom of Denmark | ||
|el = Greece Flag.svg{{!}}Hellenic Republic (Greece) | |||
|es = Spain Flag.png{{!}}Kingdom of Spain | |es = Spain Flag.png{{!}}Kingdom of Spain | ||
|fi = Republic of Finland Flag.png{{!}}Republic of Finland | |fi = Republic of Finland Flag.png{{!}}Republic of Finland | ||
Line 33: | Line 37: | ||
|se = Kingdom of Sweden Flag.png{{!}}Kingdom of Sweden | |se = Kingdom of Sweden Flag.png{{!}}Kingdom of Sweden | ||
|sg = Singapore Flag.svg{{!}}Republic of Singapore | |sg = Singapore Flag.svg{{!}}Republic of Singapore | ||
|sk = Slovakia Flag.svg{{!}}Slovak Republic | |||
|th = Thailand Flag.svg{{!}}Kingdom of Thailand | |th = Thailand Flag.svg{{!}}Kingdom of Thailand | ||
|tw = Taiwan Flag.svg{{!}}Republic of China (Taiwan) | |tw = Taiwan Flag.svg{{!}}Republic of China (Taiwan) | ||
|uk = United Kingdom Flag.jpg{{!}}United Kingdom of Great Britain and Northern Ireland | |uk = United Kingdom Flag.jpg{{!}}United Kingdom of Great Britain and Northern Ireland|{{{2|20px}}}|link=]][[File:Ireland Flag.svg|United Kingdom of Great Britain and Northern Ireland|{{{2|20px}}}|link=]] | ||
|za = South Africa Flag.svg{{!}}Republic of South Africa | |||
|#default= No Image.png{{!}}ERROR: You must enter a country code. | |#default= No Image.png{{!}}ERROR: You must enter a country code. | ||
}}|{{{2|20px}}}|link=]]</includeonly><noinclude> | }}|{{{2|20px}}}|link=]]</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Inline Templates]] | [[Category:Inline Templates]] |
Revision as of 20:29, 24 March 2022
Purpose
Displays a region's flag(s).
Usage
SyntaxBoilerplate
{{Flag|<code>|<size>}}
{{Flag|}}
Parameter | Status | Description | Accepted values | Default value | |
---|---|---|---|---|---|
1 | code | required | A code representing a region. For countries, this is the ISO 3166-1 alpha-2 code. | See Module:Region/Data | |
2 | size | optional | An image size. | 20px |
Displays a region's [[:Category:Flags|flag(s)]].
Parameter | Description | Type | Status | |
---|---|---|---|---|
code | 1 | A code representing a region. For countries, this is the {{Wp|ISO 3166-1 alpha-2}} code. | String | required |
size | 2 | An {{MediaWiki|Help:Images#Size_and_frame|image size}}. | String | optional |
_ | _ | Dummy parameter. Do not use. | Unknown | optional |
Examples
See Module:Region/Data for the full list of supported regions.
# | Input | Output |
---|---|---|
1 | {{Flag|ca}} | |
2 | {{Flag|thm}} | |
3 | {{Flag|eur|40px}} | |
4 | {{Flag|narnia}} | |
5 | {{Flag|}} |
The above documentation is transcluded from Template:Flag/Documentation. (edit | history)