Module:Countries/North America (subcontinent)
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Countries/North America (subcontinent)/doc
-- Data defining countries for {{#invoke:Countries|main|North America (subcontinent)}}.
--[=[ Output is pattern after making these substitutes:
{lang} User's language from {{int:lang}} such as 'en' or 'de'.
{dir} Language direction 'ltr' or 'rtl'.
{colon} Language equivalent of ": " from {{colon|lang}}.
{XYZtitle} Title for lang from XYZ section of defined titles.
{XYZlist} List of countries for lang from XYZ section of defined lists.
XYZ must consist of en alphabetic characters [A-Za-z].
]=]
return {
titles = {
main = {
default = 'Countries of North America (without the Caribbean)',
['be-tarask'] = 'Краіны Паўночнай Амэрыкі (без Карыбаў)',
ca = 'Països d’Amèrica del Nord (sense el Carib)',
de = 'Staaten in Nordamerika (ohne die Karibik)',
en = 'Countries of North America (without the Caribbean)',
es = 'Países de América del Norte (sin el Caribe)',
fr = 'Pays d’Amérique du Nord (hors de la Caraïbe)',
ml = 'വടക്കേ അമേരിക്കയിലെ രാജ്യങ്ങൾ (കരീബിയൻ ഉൾപ്പെടുത്താതെ)',
sr = 'Државе у Северној Америци (без Кариба)',
['sr-latn'] = 'Države u Severnoj Americi (bez Kariba)',
['zh-hans'] = '北美洲国家(无加勒比)',
['zh-hant'] = '北美洲國家(無加勒比)',
},
other = {
default = 'Other areas',
['be-tarask'] = 'Іншыя тэрыторыі',
ca = 'Altres territoris',
de = 'Weitere Gebiete',
en = 'Other areas',
es = 'Otros territorios',
fr = 'Autres territoires',
ml = 'മറ്റ് പ്രദേശങ്ങൾ',
sr = 'Друге територије',
['sr-latn'] = 'Druge teritorije',
['zh-hans'] = '其他地区',
['zh-hant'] = '其他地區',
},
},
pattern =
'<div lang="{lang}" dir="{dir}" class="catlinks" style=' ..
'"margin:2px 0;padding:2px;font-size:88%;line-height:normal">' ..
'<em>{maintitle}{colon}</em>{mainlist}' ..
'<br /><em>{othertitle}{colon}</em>{otherlist}' ..
'</div>',
simple = {
pattern =
'<div lang="{lang}" dir="{dir}" class="catlinks" style=' ..
'"margin:2px 0;padding:2px;font-size:88%;line-height:normal">' ..
'<em>{maintitle}{colon}</em>{mainlist}' ..
'</div>',
sections = {
-- List of sections to be displayed if simple=yes.
-- Each value is a table identifying any country codes that are
-- displayed only if simple=yes.
main = { GL = true, },
},
},
lists = {
-- List of countries in an order suitable for display in the specified language.
main = {
default = 'automatic sorted', -- currently unused because en is defined
en = 'automatic sorted', -- this applies with uselang=XX where XX is not defined here
english = 'automatic', -- this applies with uselang=en
automatic = 'CA MX US',
['zh-hans'] = 'CA US MX',
['zh-hant'] = 'CA US MX',
},
other = {
default = 'automatic sorted',
en = 'automatic sorted',
english = 'automatic',
automatic = 'BM GL PM',
['zh-hans'] = 'BM GL PM', --without repeating, it would wrongly shown as PM GL BM with "automatic sorted"
['zh-hant'] = 'BM GL PM', --without repeating, it would wrongly shown as PM GL BM with "automatic sorted"
},
},
countries = {
BM = { 'Bermuda', qid = 'Q23635', },
CA = { 'Canada', qid = 'Q16', },
GL = { 'Greenland', qid = 'Q223', },
MX = { 'Mexico', qid = 'Q96', },
PM = { 'Saint-Pierre and Miquelon', qid = 'Q34617', },
US = { 'United States', qid = 'Q30', the = true, },
},
}