Jump to content

Template:Continentcode/doc

Kufuma Wikipedia

The continentcode template will return an abbreviation to sort tables by location. It uses the 7-continent system common in English-speaking countries. It has 3 advantages over typing any abbreviation into the table cell:

  • It creates <abbr> tags and wikilinks for accessibility.
  • For consistency, the template applies to all places on Earth. It uses the inclusive Oceania. Anywhere in the world can be prefixed by one of these seven designations. The template also includes two esoteric prefixes.
    • IC (intercontinental) covers entries between or across continents.
    • OS (outer space) covers entries beyond Earth.
  • To sort by country, use a country's name as the argument. The template will choose the continent abbreviation. It will also append hidden text for sorting. See the Country names section below for examples.

The template accepts one argument. This can be a 2-letter code listed below, a continent's name, or a country's name. Within a single table, only use the country or the continent for correct sorting.

Type Wikitext Output
code {{continentcode|NA}} NA
continent {{continentcode|North America}} NA
country {{continentcode|Mexico}} NA

Examples

[kulemba source]

2-letter continent codes

[kulemba source]
ContinentMarkupOutput
Africa
{{continentcode|AF}}
AF
Antarctica
{{continentcode|AN}}
AN
Asia
{{continentcode|AS}}
AS
Europe
{{continentcode|EU}}
EU
North America
{{continentcode|NA}}
NA
Oceania
{{continentcode|OC}}
OC
South America
{{continentcode|SA}}
SA
intercontinental
{{continentcode|IC}}
IC
outer space
{{continentcode|OS}}
OS

Continent names

[kulemba source]
Usage Markup Output
full name
{{continentcode|Oceania}}
OC
alternate name
{{continentcode|Australia}}
OC
island nation
{{continentcode|New Zealand}}
OC

Country names

[kulemba source]
Location Population
NA: Mexico City, Mexico 9,209,944
EU: London, England 8,799,800
NA: Buffalo, New York, U.S. 278,349
EU: Vienna, Austria 1,951,354
AF: Cairo, Egypt 10,100,166

See also

[kulemba source]