Difference between revisions of "Template:Flag/doc"

From comp.tf
Jump to navigation Jump to search
m
m (Added note about Usage of United Kingdom flag)
Line 57: Line 57:
 
*{{flag|pn}} Pitcairn: <code>pitcairn islands</code>
 
*{{flag|pn}} Pitcairn: <code>pitcairn islands</code>
 
*{{flag|us}} United States: <code>united states of america</code>
 
*{{flag|us}} United States: <code>united states of america</code>
 +
=== Usage of {{flag|uk}} ===
 +
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.
 
{| class=wikitable style="align: center;"
 
{| class=wikitable style="align: center;"
 
|+ Key
 
|+ Key

Revision as of 01:36, 11 April 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,
    Error creating thumbnail: Unable to save thumbnail to destination
    . 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 abbreviations

These abbreviations are additional to those listed in the tables.

  • Error creating thumbnail: Unable to save thumbnail to destination
    England: en
  • Error creating thumbnail: Unable to save thumbnail to destination
    English Language: ukus
  • Error creating thumbnail: Unable to save thumbnail to destination
    United Arab Emirates: uae
  • Error creating thumbnail: Unable to save thumbnail to destination
    United Kingdom: gb
  • Error creating thumbnail: Unable to save thumbnail to destination
    United States: usa
  • Error creating thumbnail: Unable to save thumbnail to destination
    Wales: wa

Alternate names

These names are additional to those listed in the tables.

  • Error creating thumbnail: Unable to save thumbnail to destination
    The Bahamas: bahamas
  • Error creating thumbnail: Unable to save thumbnail to destination
    Cape Verde: cabo verde
  • Error creating thumbnail: Unable to save thumbnail to destination
    East Timor: timor-leste
  • Error creating thumbnail: Unable to save thumbnail to destination
    Gambia: the gambia
  • Error creating thumbnail: Unable to save thumbnail to destination
    Ivory Coast: cote d'ivoire
  • Error creating thumbnail: Unable to save thumbnail to destination
    Macau: macao
  • Error creating thumbnail: Unable to save thumbnail to destination
    Oceania: australasia
  • Template:Flag/pn Pitcairn: pitcairn islands
  • Error creating thumbnail: Unable to save thumbnail to destination
    United States: united states of america

Usage of
Error creating thumbnail: Unable to save thumbnail to destination

The usage of the

Error creating thumbnail: Unable to save thumbnail to destination

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

Error creating thumbnail: Unable to save thumbnail to destination

United Kingdom flag be used. Otherwise the flags of

Error creating thumbnail: Unable to save thumbnail to destination

England,

Error creating thumbnail: Unable to save thumbnail to destination

Northern Ireland,

Error creating thumbnail: Unable to save thumbnail to destination

Scotland and

Error creating thumbnail: Unable to save thumbnail to destination

Wales take preference.

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

Country names in 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.

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