Template:Country name
Appearance
Converts a country name, alias or ISO code into the standard country name, or (with file) into its Commons flag file name. Used by Template:Flag icon. Works without Lua; needs only ParserFunctions.
| Code | Result |
|---|---|
{{Country name|IND}} |
India |
{{Country name|usa}} |
United States |
{{Country name|UK|file}} |
Flag of the United Kingdom.svg |
Unknown names are returned unchanged, and their file becomes Flag of NAME.svg.
Returns the standard country name, or the Commons flag file name with 2=file.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Country | 1 | Country name, alias or ISO code (2 or 3 letters). | Line | required |
| Mode | 2 | Set to file to get the flag file name.
| Line | optional |