Template:Flag/doc
Shows a country's flag icon, linked to that country's page. If no flag is known for the given country, falls back to plain linked text (using Tag) instead.
{{flag|<country>|<size>}}
Country is not case-sensitive; see Template:Flag/id for accepted names/aliases. Size is optional and follows normal image syntax (e.g. 50px); it defaults to 22px. The image is always shown frameless.
{{flag|uk}} →
{{flag|united kingdom}} →
{{flag|uk|50px}} →
To add a new country: upload the flag image (or reuse one already in ), add a line to Template:Flag/image mapping the country's exact page title to the file name (without the File: prefix), then add the lowercase name/aliases to Template:Flag/id pointing at that same page title. The id value is used both as the image lookup key and as the link target, so it must exactly match a page title in .
Supported countries
| Code | Output |
|---|---|
| {{flag|uk}} | |
| {{flag|us}} | |
| {{flag|albania}} | Error creating thumbnail: File missing |
| {{flag|armenia}} | |
| {{flag|australia}} | |
| {{flag|austria}} | |
| {{flag|azerbaijan}} | |
| {{flag|belgium}} | |
| {{flag|canada}} | |
| {{flag|china}} | |
| {{flag|colombia}} | |
| {{flag|cuba}} | |
| {{flag|czech republic}} | |
| {{flag|dominican republic}} | |
| {{flag|france}} | |
| {{flag|georgia}} | |
| {{flag|germany}} | |
| {{flag|ghana}} | |
| {{flag|haiti}} | |
| {{flag|honduras}} | |
| {{flag|iran}} | |
| {{flag|iraq}} | |
| {{flag|ireland}} | |
| {{flag|israel}} | |
| {{flag|italy}} | |
| {{flag|jamaica}} | |
| {{flag|japan}} | |
| {{flag|malaysia}} | |
| {{flag|mexico}} | |
| {{flag|netherlands}} | |
| {{flag|new zealand}} | |
| {{flag|north korea}} | |
| {{flag|panama}} | |
| {{flag|peru}} | |
| {{flag|philippines}} | |
| {{flag|puerto rico}} | |
| {{flag|russia}} | |
| {{flag|saudi arabia}} | |
| {{flag|senegal}} | |
| {{flag|serbia}} | |
| {{flag|south korea}} | |
| {{flag|soviet union}} | |
| {{flag|spain}} | |
| {{flag|switzerland}} | |
| {{flag|syria}} | |
| {{flag|thailand}} | |
| {{flag|uae}} | |
| {{flag|vietnam}} | |
| {{flag|eu}} |
Countries with no flag image mapped yet (text fallback)
| Code | Output |
|---|---|
| {{flag|no such country}} |