Module:Countries/Oceania/sandbox

From Multilingual Bookbinding Dictionary
Jump to navigation Jump to search

Documentation for this module may be created at Module:Countries/Oceania/sandbox/doc

--[=[
Data defining countries for {{#invoke:Countries|main|Oceania}}.

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 be alphanumeric [A-Za-z0-9] but are generally lowercase only.
]=]
return {
	titles = {
		main = {
			default = 'Countries of Oceania',
			ar = 'بلدان أوقيانوسيا',
			['be-tarask'] = 'Краіны Акіяніі',
			bn = 'ওশেনিয়া দেশসমূহ',
			ca = 'Països d’Oceania',
			de = 'Staaten in Ozeanien',
			en = 'Countries of Oceania',
			es = 'Países de Oceanía',
			fa = 'کشورهای اقیانوسیه',
			fr = 'Pays d’Océanie',
			he = 'ארצות אוקיאניה',
			hi = 'ओशिनिया के देश',
			id = 'Negara-negara Oceania',
			it = 'Paesi dell’Oceania',
			ja = 'オセアニアの国',
			ko = '오세아니아 국가',
			mk = 'Земји во Океанија',
			ml = 'ഓഷ്യാനിയയിലെ രാജ്യങ്ങൾ',
			nl = 'Landen van Oceanië',
			pl = 'Kraje Oceanii',
			pt = 'Países da Oceania',
			ru = 'Страны Океании',
			si = 'ඕෂනියා රටවල්',
			sr = 'Државе у Океанији',
			['sr-latn'] = 'Države u Okeaniji',
			th = 'ประเทศในโอเชียเนีย',
			uk = 'Країни Океанії',
			ur = 'اوکنیا ممالک',
			vi = 'Các nước Châu Đại Dương',
			['zh-hans'] = '大洋洲国家',
			['zh-hant'] = '大洋洲國家',
		},
		other = {
			default = 'Other areas',
			ar = 'أقاليم أخرى',
			['be-tarask'] = 'Іншыя тэрыторыі',
			bn = 'অন্যান্য অঞ্চল',
			ca = 'Altres territoris',
			de = 'Weitere Gebiete',
			en = 'Other areas',
			ml = 'മറ്റ് പ്രദേശങ്ങൾ',
			es = 'Otros territorios',
			fa = 'سرزمین های دیگر',
			fr = 'Autres territoires',
			he = 'טריטוריות אחרות',
			hi = 'अन्य क्षेत्र',
			id = 'Wilayah lain',
			it = 'Altri territori',
			ja = 'その他の地域',
			ko = '기타 지역',
			mk = 'Други подрачја',
			nl = 'Andere gebieden',
			pl = 'Inne terytoria',
			pt = 'Outros territórios',
			ru = 'Другие территории',
			si = 'වෙනත් ප්රදේශ',
			sr = 'Друге територије',
			['sr-latn'] = 'Druge teritorije',
			th = 'ดินแดนอื่น ๆ',
			uk = 'Інші території',
			ur = 'دیگر علاقوں',
			vi = 'Các lãnh thổ khác',
			['zh-hans'] = '其他地区',
			['zh-hant'] = '其他地區',
		},
		part = {
			default = 'Partly',
			['be-tarask'] = 'Часткова',
			ca = 'Parcialment',
			en = 'Partly',
			es = 'Parcialmente',
			fr = 'En partie',
			ml = 'ഭാഗികം',
			sr = 'Делимично',
			['sr-latn'] = 'Delimično',
			['zh-hans'] = '部分',
			['zh-hant'] = '部分',
		},
	},
	pattern = {
		{	'<div lang="{lang}" dir="{dir}" class="catlinks" ' ..
			' style="clear:none;margin:2px 0;padding:2px;font-size:88%;line-height:normal">',
				'mainlist',
				'otherlist',
				'partlist',
		},
		{	'<em>{maintitle}{colon}</em>',
				{ 'maintitle', 'mainlist', },
		},
			'{mainlist}',
		{	'<br />',
				{ 'mainlist', 'otherlist', },
				{ 'mainlist', 'partlist', },
		},
		{	'<em>{othertitle}{colon}</em>',
				{ 'othertitle', 'otherlist', },
		},
			'{otherlist}',
		{	'&nbsp;– ',
				{ 'otherlist', 'partlist', },
		},
		{	'<em>{parttitle}{colon}</em>',
				{ 'parttitle', 'partlist', },
		},
			'{partlist}',
		{	'</div>',
				'mainlist',
				'otherlist',
				'partlist',
		},
	},
	simple = {
		pattern = {
			{	'<div lang="{lang}" dir="{dir}" class="catlinks"' ..
				' style="margin:2px 0;padding:2px;font-size:88%;line-height:normal">',
					'mainlist',
			},
			{	'<em>{maintitle}{colon}</em>',
					{ 'maintitle', 'mainlist', },
			},
				'{mainlist}',
			{	'</div>',
					'mainlist',
			},
		},
		sections = {
			-- List of sections to be displayed if simple=yes.
			-- Each value is a table identifying any country code that is added to that section only if simple=yes.
			main = {
				AS = true,
				CC = true,
				CK = true,
				GU = true,
				MP = true,
				NF = true,
				NU = true,
				FROVS = true,
				TK = true,
				UKBOT = true,
				UM = true,
				USHI = true,
			},
		},
	},
	lists = {
		-- List of countries in an order suitable for display in the specified language.
		main = {
			-- Don't add keys from other sections, except when they are only displayed with simple=yes (see above).
			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   = 'AS AU UKBOT CK FJ FM USHI KI MH NR NZ NU NF MP PW FROVS PG WS SB TO TV UM VU',
			fr          = 'AS AU UKBOT CK FM FJ USHI MH SB KI NR NZ NU NF MP PW FROVS PG WS TO TV UM VU',
			['zh-hans'] = 'AU PG MP FROVS FJ KI CK MH UM AS FM NR NU NF PW WS SB TO TV VU USHI NZ UKBOT',
			['zh-hant'] = 'AU PG MP PW TO FROVS FJ KI CK MH UM AS FM NU NZ NR NF WS SB TV VU USHI UKBOT',
			['zh-hk']   = 'AU PG MP PW FROVS FJ KI CK MH UM AS FM NR NU NZ NF WS SB TO TV VU USHI UKBOT',
		},
		other = {
			default     = 'automatic sorted', -- currently unused because en is defined
			en          = 'automatic sorted',
			english     = 'automatic', -- this applies with uselang=en
			automatic   = 'AS CP CC CK PF GU USHI NC NU NF MP TK WF',
			fr          = 'GU USHI CP CC CK MP NU NF NC PF AS TK WF',
			['zh-hans'] = 'MP PF GU CC CP CK AS NU NF WF TK USHI NC',
			['zh-hant'] = 'MP PF GU CC CP CK AS NU NF WF TK USHI NC',
		},
		part = {
			default     = 'automatic sorted', -- currently unused because en is defined
			en          = 'automatic sorted',
			english     = 'automatic', -- this applies with uselang=en
			automatic   = 'UKBOT FROVS TF UM',
			fr          = 'FROVS UM TF UKBOT',
			['zh-hans'] = 'FROVS TF UM UKBOT',
			['zh-hant'] = 'FROVS TF UM UKBOT',
		},
	},
	countries = {
		-- Keys are arbitrarily but conveniently chosen as capital codes from ISO3166-1 (2 letters) or ISO3166-2 (without separator),
		-- or extensions for specific regions. They must just match keys used in lists above, and have no other meaning outside this module.
		AS    = { 'American Samoa',          qid = 'Q16641', },
		AU    = { 'Australia',               qid = 'Q408', subst = { ['by state'] = 'by state or territory', }, },
                CC    = { 'Cocos (Keeling) Islands', qid = 'Q36004', the = true, },
		CK    = { 'Cook Islands',            qid = 'Q26988', the = true, },
		CP    = { 'Clipperton Island',       qid = 'Q161258', },
		FJ    = { 'Fiji',                    qid = 'Q712', },
		FM    = { 'Federated States of Micronesia',
		                                     qid = 'Q702', the = true, },
		FROVS = { 'Overseas France',         qid = 'Q203396', },
		GU    = { 'Guam',                    qid = 'Q16635', },
		KI    = { 'Kiribati',                qid = 'Q710', },
		MH    = { 'Marshall Islands',        qid = 'Q709', the = true, },
		MP    = { 'Northern Mariana Islands',
		                                     qid = 'Q16644', the = true, },
		NC    = { 'New Caledonia',           qid = 'Q33788', },
		NF    = { 'Norfolk Island',          qid = 'Q31057', },
		NR    = { 'Nauru',                   qid = 'Q697', },
		NU    = { 'Niue',                    qid = 'Q34020', },
		NZ    = { 'New Zealand',             qid = 'Q664', },
		PF    = { 'French Polynesia',        qid = 'Q30971', },
		PG    = { 'Papua New Guinea',        qid = 'Q691', },
		PW    = { 'Palau',                   qid = 'Q695', },
		SB    = { 'Solomon Islands',         qid = 'Q685', the = true, },
		TF    = { 'French Southern and Antarctic Lands',
		                                     qid = 'Q129003', the = true, },
		TK    = { 'Tokelau',                 qid = 'Q36823', },
		TO    = { 'Tonga',                   qid = 'Q678', },
		TV    = { 'Tuvalu',                  qid = 'Q672', },
		UKBOT = { 'British Overseas Territories', 'British overseas territories',
		                                     qid = 'Q46395', the = true, },
		UM    = { 'United States Minor Outlying Islands',
		                                     qid = 'Q16645', the = true, },
		USHI  = { 'Hawaii',                  qid = 'Q782', },
		VU    = { 'Vanuatu',                 qid = 'Q686', },
		WF    = { 'Wallis and Futuna',       qid = 'Q35555', },
		WS    = { 'Samoa',                   qid = 'Q683', },
	},
}