Template:Flag: Difference between revisions
Jump to navigation
Jump to search
(Clean Up) |
m (→top: replaced: Category:Inline Templates → Category:Inline templates) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Region|Flag}}</includeonly><noinclude> | ||
| | |||
{{Documentation}} | {{Documentation}} | ||
[[Category:Inline | [[Category:Inline templates]] |
Latest revision as of 14:50, 9 July 2023
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)