Module:Country label/data/doc
Introduction
This submodule provides data to Module:Country label. Data entries are formatted as Lua tables within the return function. For example, the entry for England can be formatted as:
["England"] = { q = "Q21", cont1 = "Europe", partof = "United Kingdom", partofindex = "constituent country", status = "current", type = "country", sub1 = "county", sub2 = "historic country", subname = "county", adj = "English", flag = "Flag of England.svg" },
This is the entry for England expanded into a multiline expression:
["England"] = {
q = "Q21",
cont1 = "Europe",
partof = "United Kingdom",
partofindex = "constituent country",
status = "current",
type = "country",
sub1 = "county",
sub2 = "historic country",
subname = "county",
adj = "English",
flag = "Flag of England.svg"
},
Table of keys
Note that each entry should be a subclass of administrative territorial entity type (Q15617994).
| Key | Wikidata entry | Description | Example value(s) |
|---|---|---|---|
| q | Wikidata Q identifier (Q43649390) | the Wikidata QID of the entry | Q668 |
| art | article (Q103184) | the grammatical article before the name of the entry, such as the United States | the |
| hemie | Eastern Hemisphere (Q186198) | whether or not the entry is in the Eastern Hemisphere | yes |
| hemin | Northern Hemisphere (Q39061) | whether or not the entry is in the Northern Hemisphere | yes |
| hemis | Southern Hemisphere (Q41228) | whether or not the entry is in the Southern Hemisphere | yes |
| hemiw | Western Hemisphere (Q181982) | whether or not the entry is in the Western Hemisphere | yes |
| overseas | overseas territory (Q107721276) | whether or not the place is an overseas territory | y |
| million | million city (Q1637706) | if the entry is a city, whether or not the city has over one million inhabitants | y |
| cat | Commons category (P373) | the Commons category associated with the entry | Chihuahua (state) |
| country | country (P17) | if the entry is a country subdivision, the country of which the entry is a part | United Kingdom |
| capital | capital (P36) | whether or not the entry is a capital city | y |
| countryflag | flag image (P41) | ||
| locmap | locator map image (P242) | image of the entry within some larger entity | Mississippi in United States.svg |
| contn | continent (P30) | the continent(s) that contain the entry |
|
| regionn | region (Q82794) | the geographical region(s) that contain the entry | Polynesia |
| oceann | inverse (Q7017933) of basin country (P205) | the ocean(s) that partially surround the entry |
|
| pren | replaces (P1365) | the administrative territorial entities that precede the entry | West Germany |
| predecessor | replaces (P1365) | the administrative territorial entities that directly precede the entry | West Germany |
| sucn | replaced by (P1366) | the administrative territorial entities that directly succeed the entry | Ottoman Empire |
| successorn | replaced by (P1366) | the administrative territorial entities that directly succeed the entry | Ottoman Empire |
| sort | sort key (Q59155893) | how the entry should be sorted, if different from the entry name | Delhi, National Capital Territory of |
| presentn | present day country (Q140068185) | ||
| todayn | present day country (Q140068185) | ||
| subn | subclass of administrative territorial entity of a single country (Q12076836) | ||
| subname | meta category criterion (Q24571886) | ||
| flag | flag image (P41) | ||
| adj | demonym (P1549) | ||
| adjective | demonym (P1549) | ||
| parentn | subproperty of located in the administrative territorial entity (P131) | ||
| partofn | subproperty of located in the administrative territorial entity (P131) | ||
| partofindexn | administrative territorial entity type (Q15617994) and applies to jurisdiction (P1001) or country (P17) | ||
| partofnrelation | dependent territory (Q161243) or disputed territory (Q15239622) | ||
| status | former or current state (Q96196009) | ||
| type | administrative territorial entity type (Q15617994) |