Difference between revisions of "Template:Flag/doc"

From comp.tf
Jump to navigation Jump to search
m
Line 51: Line 51:
 
*{{flag|un}} United Nations: <code>global</code>, <code>international</code>
 
*{{flag|un}} United Nations: <code>global</code>, <code>international</code>
 
*{{flag|us}} United States: <code>united states of america</code>
 
*{{flag|us}} United States: <code>united states of america</code>
{{box|break}}
+
{{box|break|padding=4em}}
 
=== Alternate abbreviations ===
 
=== Alternate abbreviations ===
 
These abbreviations are additional to those listed in the tables.
 
These abbreviations are additional to those listed in the tables.
Line 61: Line 61:
 
*{{flag|wa}} Wales: <code>wa</code>
 
*{{flag|wa}} Wales: <code>wa</code>
 
{{box|end}}
 
{{box|end}}
=== Usage of {{flag|uk}} ===
+
{{box|break}}
The usage of the '''{{flag|uk}} United Kingdom''' flag should be suppressed in all possible circumstances. Only if the associated ''"thing"'' spans across multiple constituent countries within the United Kingdom or the specific constituent country is unknown should the {{flag|uk}} United Kingdom flag be used. Otherwise the flags of '''{{flag|uken}} England''', '''{{flag|ukni}} Northern Ireland''', '''{{flag|uksc}} Scotland''' and '''{{flag|ukwa}} Wales''' take preference.
+
=== {{flag|uk}} vs. {{flag|uken}} {{flag|ukni}} {{flag|uksc}} {{flag|ukwa}} ===
 +
The '''{{flag|uk}} United Kingdom''' flag should take preference in all circumstances minus usage in Infoboxes, where the flags of '''{{flag|uken}} England''', '''{{flag|ukni}} Northern Ireland''', '''{{flag|uksc}} Scotland''', and '''{{flag|ukwa}} Wales''' should be used.
 +
{{box|end}}
 +
<big>
 +
{| class=wikitable style="width: 100%; text-align: center;"
 +
|[[Template:Flag#A | A]] · [[Template:Flag#B | B]] · [[Template:Flag#C | C]] · [[Template:Flag#D | D]] · [[Template:Flag#E | E]] · [[Template:Flag#F | F]] · [[Template:Flag#G | G]] · [[Template:Flag#H | H]] · [[Template:Flag#I | I]] · [[Template:Flag#J | J]] · [[Template:Flag#K | K]] · [[Template:Flag#L | L]] · [[Template:Flag#M | M]] · [[Template:Flag#N | N]] · [[Template:Flag#O | O]] · [[Template:Flag#P | P]] · [[Template:Flag#Q | Q]] · [[Template:Flag#R | R]] · [[Template:Flag#S | S]] · [[Template:Flag#T | T]] · [[Template:Flag#U | U]] · [[Template:Flag#V | V]] · [[Template:Flag#W | W]] · [[Template:Flag#X | X]] · [[Template:Flag#Y | Y]] · [[Template:Flag#Z | Z]]
 +
</big>
 
{| class=wikitable style="align: center;"
 
{| class=wikitable style="align: center;"
 
|+ Key
 
|+ Key
Line 74: Line 80:
 
  | Geographical region or collectivity of countries or sovereign states
 
  | Geographical region or collectivity of countries or sovereign states
 
|}
 
|}
Country names in {{abbr|this format}} are shortened versions. These shortened versions cannot be used as name settings for the country. To find the full country name, hover over the text.
 
{| class=wikitable style="width: 100%; text-align: center;"
 
|[[Template:Flag#A | A]] · [[Template:Flag#B | B]] · [[Template:Flag#C | C]] · [[Template:Flag#D | D]] · [[Template:Flag#E | E]] · [[Template:Flag#F | F]] · [[Template:Flag#G | G]] · [[Template:Flag#H | H]] · [[Template:Flag#I | I]] · [[Template:Flag#J | J]] · [[Template:Flag#K | K]] · [[Template:Flag#L | L]] · [[Template:Flag#M | M]] · [[Template:Flag#N | N]] · [[Template:Flag#O | O]] · [[Template:Flag#P | P]] · [[Template:Flag#Q | Q]] · [[Template:Flag#R | R]] · [[Template:Flag#S | S]] · [[Template:Flag#T | T]] · [[Template:Flag#U | U]] · [[Template:Flag#V | V]] · [[Template:Flag#W | W]] · [[Template:Flag#X | X]] · [[Template:Flag#Y | Y]] · [[Template:Flag#Z | Z]]
 
 
|}
 
|}
 
{{Box|start|padding=1em}}
 
{{Box|start|padding=1em}}

Revision as of 07:44, 14 May 2016

Template:Flag displays a 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, Unknown. This is used to keep alignment proper in other templates or to indicate an unknown country.

Examples

You type You get
{{flag|antarctica}} Template:Flag/antarctica
{{flag|aq}} Template:Flag/aq
{{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

Alternate names

These names are additional to those listed in the tables.

  • The Bahamas The Bahamas: bahamas
  • Cape Verde Cape Verde: cabo verde
  • East Timor East Timor: timor-leste
  • Gabon Gambia: the gambia
  • Côte d'Ivoire Ivory Coast: cote d'ivoire
  • Macau Macau: macao
  • Oceania Oceania: australasia
  • Template:Flag/pn Pitcairn: pitcairn islands
  • United Nations United Nations: global, international
  • United States United States: united states of america

Alternate abbreviations

These abbreviations are additional to those listed in the tables.

  • England England: en
  • English Language English Language: ukus
  • United Arab Emirates United Arab Emirates: uae
  • United Kingdom United Kingdom: gb
  • United States United States: usa
  • Wales Wales: wa

United Kingdom vs. England Northern Ireland Scotland Wales

The United Kingdom United Kingdom flag should take preference in all circumstances minus usage in Infoboxes, where the flags of England England, Northern Ireland Northern Ireland, Scotland Scotland, and Wales Wales should be used.

A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z

Key
United Nations recognised country or sovereign state
Unrecognised country or sovereign state
Geographical region or collectivity of countries or sovereign states