Template:Flag: Difference between revisions

From Inkipedia, the Splatoon wiki
(added cuba)
(making into module invocation)
Tag: Replaced
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[File:Flag{{#switch: {{{1}}}
<includeonly>{{#invoke:Flag|main}}</includeonly><noinclude>
|au=Australia
Template invocation of [[Module:Flag]].
|br=Brazil
|ca=Canada
|cafr=CanadaFrance
|cn=China
|cu=Cuba
|cz=CzechRepublic
|da=Denmark
|de=Germany
|gr=Greece
|es=Spain
|eu=Europe
|fi=Finland
|fr=France
|hk=Hong Kong
|hu=Hungary
|id=Indonesia
|ie=Ireland
|il=Israel
|in=India
|it=Italy
|jp=Japan
|kp=North Korea
|mx=Mexico
|my=Malaysia
|nl=Netherlands
|no=Norway
|ph=Philippines
|pl=Poland
|pt=Portugal
|qc=Quebec
|ro=Romania
|ru=Russia
|se=Sweden
|sg=Singapore
|kr=South Korea
|tw=Taiwan
|th=Thailand
|uk=United Kingdom
|us=USA
}}.svg{{!}}border{{!}}{{{2|20x20}}}px|link=|{{#switch: {{{1}}}
|au=Australia
|br=Brazil
|ca=Canada
|cafr=Canada and France
|cn=China
|cu=Cuba
|cz=Czech Republic
|da=Denmark
|de=Germany
|gr=Greece
|es=Spain
|eu=Europe
|fi=Finland
|fr=France
|hk=Hong Kong
|hu=Hungary
|id=Indonesia
|ie=Ireland
|il=Israel
|in=India
|it=Italy
|jp=Japan
|kp=North Korea
|mx=Mexico
|my=Malaysia
|nl=Netherlands
|no=Norway
|ph=Philippines
|pl=Poland
|pt=Portugal
|qc=Quebec
|ro=Romania
|ru=Russia
|se=Sweden
|sg=Singapore
|kr=South Korea
|tw=Taiwan
|th=Thailand
|uk=United Kingdom
|us=USA
|#default=Undisclosed
}}]]</includeonly><noinclude>
==Documentation==
{{t|flag|[[wikipedia:ISO 3166-1|2 letter abbreviation]]|size}}
Size is 20x20 by default. <code>px</code> is not necessary.
===Current regions supported===
Type the ISO 3166-1 code in '''lower-case''' for use in template.
{| class="wikitable sortable"
|-
!scope="col"| Region name
!scope="col"| ISO 3166-1 code
!scope="col"| Output
|-
|Australia
|AU
|{{flag|au}}
|-
|Brazil
|BR
|{{flag|br}}
|-
|Canada
|CA
|{{flag|ca}}
|-
|Canada and France
|CAFR<ref group="notes">Since "CF" already corresponds to the Central African Republic, both countries' ISO 3166-1 codes have been used instead.</ref>
|{{flag|cafr}}
|-
|China
|CN
|{{flag|cn}}
|-
|Cuba
|CU
|{{flag|cu}}
|-
|Czech Republic
|CZ
|{{flag|cz}}
|-
|Denmark
|DA
|{{flag|da}}
|-
|Europe
|EU
|{{flag|eu}}
|-
|Finland
|FI
|{{flag|fi}}
|-
|France
|FR
|{{flag|fr}}
|-
|Germany
|DE
|{{flag|de}}
|-
|Greece
|GR
|{{flag|gr}}
|-
|Hong Kong
|HK
|{{flag|hk}}
|-
|Hungary
|HU
|{{flag|hu}}
|-
|India
|IN
|{{flag|in}}
|-
|Indonesia
|ID
|{{flag|id}}
|-
|Ireland
|IE
|{{flag|ie}}
|-
|Israel
|IL
|{{flag|il}}
|-
|Italy
|IT
|{{flag|it}}
|-
|Japan
|JP
|{{flag|jp}}
|-
|Malaysia
|MY
|{{flag|my}}
|-
|Mexico
|MX
|{{flag|mx}}
|-
|Netherlands
|NL
|{{flag|nl}}
|-
|North Korea
|KP
|{{flag|kp}}
|-
|Norway
|NO
|{{flag|no}}
|-
|Philippines
|PH
|{{flag|ph}}
|-
|Poland
|PL
|{{flag|pl}}
|-
|Portugal
|PT
|{{flag|pt}}
|-
|Quebec
|QC<ref group="notes">Quebec does not have an ISO 3166-1 code; its Canadian postal abbreviation has been used instead.</ref>
|{{flag|qc}}
|-
|Romania
|RO
|{{flag|ro}}
|-
|Russia
|RU
|{{flag|ru}}
|-
|South Korea
|KR
|{{flag|kr}}
|-
|Spain
|ES
|{{flag|es}}
|-
|Sweden
|SE
|{{flag|se}}
|-
|Singapore
|SG
|{{flag|sg}}
|-
|Taiwan
|TW
|{{flag|tw}}
|-
|Thailand
|TH
|{{flag|th}}
|-
|United Kingdom
|UK
|{{flag|uk}}
|-
|United States
|US
|{{flag|us}}
|}
Uploading .svg files of country flags and adding them here is allowed. Optionally, you can ask [[Project:Staff|a staff member]] or user to upload and add a flag.


== Notes ==
{{:Module:Flag/doc}}
{{note list}}
</noinclude>
</noinclude>

Latest revision as of 12:37, 13 September 2023

Template invocation of Module:Flag.

{{flag|<2 letter abbreviation>|<size>}}

Size is 20x20 by default. px is not necessary.

Current regions supported

Type the ISO 3166-1 code in lower-case for use in template.

Region name ISO 3166-1 code Output
Argentina AR Argentina
Australia AU Australia
Austria AT Austria
Belgium BE Belgium
Brazil BR Brazil
Canada CA Canada
Canada and France CAFR[a] CanadaFrance
China CN China
Cuba CU Cuba
Czech Republic CZ CzechRepublic
Denmark DA Denmark
Europe EU Europe
Finland FI Finland
France FR France
Germany DE Germany
Greece GR Greece
Hong Kong HK Hong Kong
Hungary HU Hungary
India IN India
Indonesia ID Indonesia
Ireland IE Ireland
Israel IL Israel
Italy IT Italy
Japan JP Japan
Malaysia MY Malaysia
Mexico MX Mexico
Netherlands NL Netherlands
North Korea KP North Korea
Norway NO Norway
Philippines PH Philippines
Poland PL Poland
Portugal PT Portugal
Quebec QC[b] Quebec
Romania RO Romania
Russia RU Russia
South Korea KR South Korea
Spain ES Spain
Spain and Mexico ESMX SpainMexico
Sweden SE Sweden
Singapore SG Singapore
Taiwan TW Taiwan
Thailand TH Thailand
Ukraine UA Ukraine
United Arab Emirates AE UAE
United Kingdom UK United Kingdom
United States US USA

Uploading .svg files of country flags and adding them here is allowed. Optionally, you can ask a staff member or user to upload and add a flag.

Notes

  1. Since "CF" already corresponds to the Central African Republic, both countries' ISO 3166-1 codes have been used instead.
  2. Quebec does not have an ISO 3166-1 code; its Canadian postal abbreviation has been used instead.