Template:Flag
Jump to navigation
Jump to search
Purpose
Displays a region's flag(s).
Usage
SyntaxBoilerplate
{{Flag|<code>|<size>}}
{{Flag|}}
Parameter | Status | Description | Accepted values | Default value | |
---|---|---|---|---|---|
1 | code | required | A code representing a region. For countries, this is the ISO 3166-1 alpha-2 code. | See Module:Region/Data | |
2 | size | optional | An image size. | 20px |
Displays a region's [[:Category:Flags|flag(s)]].
Parameter | Description | Type | Status | |
---|---|---|---|---|
code | 1 | A code representing a region. For countries, this is the {{Wp|ISO 3166-1 alpha-2}} code. | String | required |
size | 2 | An {{MediaWiki|Help:Images#Size_and_frame|image size}}. | String | optional |
_ | _ | Dummy parameter. Do not use. | Unknown | optional |
Examples
See Module:Region/Data for the full list of supported regions.
# | Input | Output | Categories added |
---|---|---|---|
1 | {{Flag|ca}} | ||
2 | {{Flag|thm}} | ||
3 | {{Flag|eur|40px}} | ||
4 | {{Flag|narnia}} | ||
5 | {{Flag|}} |
The above documentation is transcluded from Template:Flag/Documentation. (edit | history)