Difference between revisions of "Template:Flag/doc"

From comp.tf
Jump to navigation Jump to search
(Re-uploading)
 
m (Re-uploading)
Line 45: Line 45:
 
  | Geographical region or collectivity of countries
 
  | Geographical region or collectivity of countries
 
|}
 
|}
 +
{| class=wikitable style="text-align: center"
 +
|+ List of flags
 +
! style="color: white; background-color: #1c1c1c;" | Flag
 +
! style="color: white; background-color: #1c1c1c;" | {{Abbr|Abbr|Abbreviation}}
 +
! style="color: white; background-color: #1c1c1c;" | Full country name
 +
! style="color: white; background-color: #1c1c1c;" | Alternate name/code
 +
|-
 +
| {{flag|abkhazia}}
 +
| style="background-color: #b2b2b2" |
 +
| style="background-color: #ffeae6" | Abkhazia
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ax}}
 +
| <code>ax</code>
 +
| style="background-color: #ffeae6" | Aland
 +
| style="background-color: #ffeae6" | <code>aland islands</code>
 +
|-
 +
| {{flag|af}}
 +
| <code>af</code>
 +
| Afghanistan
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|al}}
 +
| <code>al</code>
 +
| Albania
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|Alderney}}
 +
| style="background-color: #b2b2b2" |
 +
| style="background-color: #ffeae6" | Alderney
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|dz}}
 +
| <code>dz</code>
 +
| Algeria
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|as}}
 +
| <code>as</code>
 +
| style="background-color: #ffeae6" | American Samoa
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ad}}
 +
| <code>ad</code>
 +
| Andorra
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ao}}
 +
| <code>ao</code>
 +
| Angola
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ai}}
 +
| <code>ai</code>
 +
| style="background-color: #ffeae6" | Anguilla
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|aq}}
 +
| <code>aq</code>
 +
| style="background-color: #e6eeff" | Antarctica
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ag}}
 +
| <code>ag</code>
 +
| Antigua and Barbuda
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ar}}
 +
| <code>ar</code>
 +
| Argentina
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|am}}
 +
| <code>am</code>
 +
| Armenia
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|aw}}
 +
| <code>aw</code>
 +
| style="background-color: #ffeae6" | Aruba
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|au}}
 +
| <code>au</code>
 +
| Australia
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|at}}
 +
| <code>at</code>
 +
| Austria
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|az}}
 +
| <code>az</code>
 +
| Azerbaijan
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bs}}
 +
| <code>bs</code>
 +
| Bahamas
 +
| <code>the bahamas</code>
 +
|-
 +
| {{flag|bh}}
 +
| <code>bh</code>
 +
| Bahrain
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bd}}
 +
| <code>bd</code>
 +
| Bangladesh
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bb}}
 +
| <code>bb</code>
 +
| Barbados
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|by}}
 +
| <code>by</code>
 +
| Belarus
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|be}}
 +
| <code>be</code>
 +
| Belgium
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bz}}
 +
| <code>bz</code>
 +
| Belize
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bj}}
 +
| <code>bj</code>
 +
| Benin
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bm}}
 +
| <code>bm</code>
 +
| Bermuda
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bt}}
 +
| <code>bt</code>
 +
| Bhutan
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bo}}
 +
| <code>bo</code>
 +
| Bolivia
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ba}}
 +
| <code>ba</code>
 +
| Bosnia and Herzegovina
 +
| <code>bosnia</code>
 +
|-
 +
| {{flag|bw}}
 +
| <code>bw</code>
 +
| Botswana
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|br}}
 +
| <code>br</code>
 +
| Brazil
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|io}}
 +
| <code>io</code>
 +
| style="background-color: #ffeae6" | British Indian Ocean Territory
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bn}}
 +
| <code>bn</code>
 +
| Brunei
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bg}}
 +
| <code>bg</code>
 +
| Bulgaria
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bf}}
 +
| <code>bf</code>
 +
| Burkina Faso
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|bi}}
 +
| <code>bi</code>
 +
| Burundi
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|kh}}
 +
| <code>kh</code>
 +
| Cambodia
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|cm}}
 +
| <code>cm</code>
 +
| Cameroon
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ca}}
 +
| <code>ca</code>
 +
| Canada
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|cv}}
 +
| <code>cv</code>
 +
| Cape Verde
 +
| style="background-color: #b2b2b2" |
 +
|-
 +
| {{flag|ky}}
 +
| <code>ky</code>
 +
| style="background-color: #ffeae6" | Cayman Islands
 +
| style="background-color: #b2b2b2" |
 +
|-

Revision as of 07:41, 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. Any text entered should be fully lowercase. Appropriate settings for this parameter are listed in the table below. 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|Spain}} Spain
{{flag|es}} Spain
{{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.

  • Any special characters (å,é,ì,ô,ū) are not used as they conflict with the wiki's file retrieving system.
  • An alternate list of two letter abbreviations for countries can be found here
Key
United Nations recognised country
Unrecognised country
Geographical region or collectivity of countries
List of flags
Flag Abbr Full country name Alternate name/code
Template:Flag/abkhazia Abkhazia
Template:Flag/ax ax Aland aland islands
Afghanistan af Afghanistan
Albania al Albania
Template:Flag/alderney Alderney
Algeria dz Algeria
Template:Flag/as as American Samoa
Andorra ad Andorra
Angola ao Angola
Template:Flag/ai ai Anguilla
Template:Flag/aq aq Antarctica
Antigua and Barbuda ag Antigua and Barbuda
Argentina ar Argentina
Armenia am Armenia
Template:Flag/aw aw Aruba
Australia au Australia
Austria at Austria
Azerbaijan az Azerbaijan
The Bahamas bs Bahamas the bahamas
Bahrain bh Bahrain
Bangladesh bd Bangladesh
Barbados bb Barbados
Belarus by Belarus
Belgium be Belgium
Belize bz Belize
Benin bj Benin
Template:Flag/bm bm Bermuda
Bhutan bt Bhutan
Bolivia bo Bolivia
Bosnia and Herzegovina ba Bosnia and Herzegovina bosnia
Botswana bw Botswana
Brazil br Brazil
Template:Flag/io io British Indian Ocean Territory
Brunei bn Brunei
Bulgaria bg Bulgaria
Burkina Faso bf Burkina Faso
Burundi bi Burundi
Cambodia kh Cambodia
Cameroon cm Cameroon
Canada ca Canada
Cape Verde cv Cape Verde
Template:Flag/ky ky Cayman Islands