Note: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:Flag/doc.
Template:Flag: Difference between revisions
From Elwiki
mNo edit summary |
IceSoulMOG (talk | contribs) No edit summary |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File:{{#switch:{{{1|}}} | <includeonly>[[File:Flag - {{#switch:{{{1|{{{countrycode|}}}}}} | ||
|South Korea | |South Korea|Korea|KR|kr|KOR|kor = South Korea | ||
|Taiwan | |Japan|JA|ja|JP|jp|JPN|jpn = Japan | ||
|Hong Kong|HK|hk|HKG|hkg = Hong | |Taiwan|TW|tw|TWN|twn = China (Taiwan) | ||
|China | |Hong Kong|HK|hk|HKG|hkg = China (Hong Kong) | ||
|America | |China|CN|cn|CH|ch|CHN|chn = China (Mainland) | ||
|Europe | |United States|America|NA|na|US|us|USA|usa = United States | ||
|Germany | |European Union|Europe|EU|eu|EUE|eue = European Union | ||
|Spain | |Germany|GM|gm|DE|de|DEU|deu = Germany | ||
|France | |Spain|SP|sp|ES|es|ESP|esp = Spain | ||
|Italy | |France|FR|fr|FRA|fra = France | ||
|Poland | |Italy|IT|it|ITA|ita = Italy | ||
|United Kingdom| | |Poland|PL|pl|POL|pol = Poland | ||
|Thailand | |United Kingdom|Great Britain|Britain|UK|uk|GB|gb|GBR|gbr = United Kingdom | ||
|Indonesia | |Thailand|TH|th|THA|tha = Thailand | ||
|Brazil | |Indonesia|ID|id|IDN|idn = Indonesia | ||
|Philippines | |Brazil|BR|br|BRA|bra = Brazil | ||
|India | |Philippines|RP|rp|PH|ph|PHL|phl = Philippines | ||
|India|IN|in|IND|ind = India | |||
|Saudi Arabia|SA|sa|SAU|sau = Saudi Arabia | |Saudi Arabia|SA|sa|SAU|sau = Saudi Arabia | ||
|Russia | |Russia|RS|rs|RU|ru|RUS|rus = Russia | ||
|Canada | |Canada|CA|ca|CAN|can = Canada | ||
| | |Mexico|MX|mx|MEX|mex = Mexico | ||
|#default = | |#default = United States | ||
}} | }}.png{{#if:{{{2|{{{size|}}}}}}|{{!}}{{{2|{{{size|}}}}}}px|{{!}}24px}}{{#if:{{{link|}}}|{{!}}link={{{link|}}}|{{!}}link=}}{{#if:{{{alt|}}}|{{!}}{{{alt|}}}|}}|{{{3|{{{label|}}}}}}]]</includeonly><noinclude>{{DISPLAYTITLE:Flag Template}}{{Doc}}</noinclude> |
Latest revision as of 17:09, 11 May 2025
Usage:
{{Flag | countrycode = | size = | label = | link = }}
Country Code
You can enter the country code in either ISO 3166-1 alpha-2 or alpha-3. (Recommended to use alpha-2)
The following flags have been uploaded to ElWiki.
ISO 3166-1 alpha-2 Code | ISO 3166-1 alpha-3 Code | Country/Region | Flag |
---|---|---|---|
BR | BRA | Brazil | ![]() |
CA | CAN | Canada | ![]() |
CN | CHN | China | ![]() |
DE | DEU | Germany | ![]() |
ES | ESP | Spain | ![]() |
EU | EUE | European Union | ![]() |
FR | FRA | France | ![]() |
GB | GBR | United Kingdom | ![]() |
UK | |||
HK | HKG | Hong Kong | ![]() |
ID | IDN | Indonesia | ![]() |
IN | IND | India | ![]() |
IT | ITA | Italy | ![]() |
JP | JPN | Japan | ![]() |
KR | KOR | South Korea | ![]() |
MX | MEX | Mexico | ![]() |
PH | PHL | Philippines | ![]() |
PL | POL | Poland | ![]() |
RU | RUS | Russia | ![]() |
SA | SAU | Saudi Arabia | ![]() |
TH | THA | Thailand | ![]() |
TW | TWN | Taiwan | ![]() |
US | USA | United States | ![]() |
- If you want to add the flag of the country/region where you live, please contact Boxsnake. (You can only apply after exceeding a certain number of edits.)
Size
The size of the flag image. (default is 24)