Difference between revisions of "Template:Flag/doc"
Jump to navigation
Jump to search
m (padding: 0.5em;) |
m (Padding) |
||
Line 49: | Line 49: | ||
| Geographical region or collectivity of countries | | Geographical region or collectivity of countries | ||
|} | |} | ||
− | {{Box|start}} | + | {{Box|start|padding=0.5em}} |
− | {| style="width: 33% | + | {| style="width: 33%;" |
{{Template:Flag/doc/table/a}} | {{Template:Flag/doc/table/a}} | ||
{{Template:Flag/doc/table/d}} | {{Template:Flag/doc/table/d}} | ||
Line 62: | Line 62: | ||
|} | |} | ||
{{Box|break}} | {{Box|break}} | ||
− | {| style="width: 33% | + | {| style="width: 33%;" |
{{Template:Flag/doc/table/b}} | {{Template:Flag/doc/table/b}} | ||
{{Template:Flag/doc/table/e}} | {{Template:Flag/doc/table/e}} | ||
Line 74: | Line 74: | ||
|} | |} | ||
{{Box|break}} | {{Box|break}} | ||
− | {| style="width: 33% | + | {| style="width: 33%;" |
{{Template:Flag/doc/table/c}} | {{Template:Flag/doc/table/c}} | ||
{{Template:Flag/doc/table/f}} | {{Template:Flag/doc/table/f}} |
Revision as of 23:09, 19 March 2016
Template:Flag displays a parameter defined flag icon that is 15px high and bordered. This template is used in conjunction with Template:Flag/Terms, which defines the terms that can be used in this template. All of the flag images used in this template can be found at Category:Flag Icons.
Usage
{{flag|name}}
name
This is the only parameter in the template and is used for defining which country's information should be used.
- The data entered here will provide the icon with its image and caption/tool tip text.
- Appropriate settings for this parameter are listed in the table below.
- Any text entered should be fully lowercase.
- Any special characters (å,é,ì,ô,ū) are not used as they conflict with the wiki's file retrieving system.
- If there is no setting or the setting is invalid (i.e. not listed in the table below) the template will display a placeholder flag, . This is used to keep alignment proper in other templates or to indicate an unknown country.
Examples
You type | You get | ||||
---|---|---|---|---|---|
{{flag|Spain}}
|
|||||
{{flag|es}}
|
|||||
{{flag|invalid}}
|
Template:Flag/invalid |
Valid settings
A flag can be displayed by either using a country's two letter abbreviation, another name for the country, or the full name of the country in the name parameter. An alternate list of two letter abbreviations for countries can be found here
United Nations recognised country | |
Unrecognised country | |
Geographical region or collectivity of countries |
Template:Flag/doc/table/aTemplate:Flag/doc/table/dTemplate:Flag/doc/table/gTemplate:Flag/doc/table/jTemplate:Flag/doc/table/mTemplate:Flag/doc/table/pTemplate:Flag/doc/table/sTemplate:Flag/doc/table/vTemplate:Flag/doc/table/y