Template:Flag icon
Appearance
Preview
| Code | Result |
|---|---|
{{Flag icon|India}} |
|
{{Flag icon|IND}} |
|
{{Flag icon|USA}} |
|
{{Flag icon|UK|name=yes}} |
|
{{Flag icon|Japan|size=40px}} |
|
{{Flag icon|Nepal|border=no|link=no}} |
Shows a small country flag. Works without Lua/Scribunto; needs ParserFunctions and the flag images (InstantCommons, or uploaded locally).
Parameters
- 1 (required): country name, alias or ISO code, e.g.
India,IN,IND,USA,UK,UAE. - 2 (optional): page to link to instead of the country article, e.g.
India national cricket team. - name:
yesalso shows the country name after the flag (like {{flag}}). - size: default
23x15px. - link:
nofor no link, or a page name. - border:
noremoves the thin border (use for Nepal). - file: use a specific flag file, e.g.
Flag of India (1931).svgfor a historical flag. - alt: alt text for screen readers.
TemplateData
Shows a small flag icon for a country, optionally with its name.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Country | 1 | Country name, alias or ISO code, e.g. India, IN, IND. | Line | required |
| Link target | 2 | Page to link to instead of the country article. | Page name | optional |
| Show name | name | yes = also show the country name. | Boolean | optional |
| Size | size | Image size.
| Line | optional |
| Link | link | no = no link, or a page name. | Line | optional |
| Border | border | no = no border.
| Line | optional |
| Flag file | file | Use a specific flag file instead of the default. | File | optional |
| Alt text | alt | no description | Line | optional |