Module:Countries/Arab world/sandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Lua
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

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

Code

-- Data defining countries for {{#invoke:Countries|main|Arab world}}.

--[=[ 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 the Arab world',
			af = 'Lande van die Arabiese wêreld',
			ar = 'دول العالم العربي',
			az = 'Ərəb dünyası ölkələri',
			be = 'Краіны арабскага свету',
			['be-tarask'] = 'Краіны арабскага сьвету',
			bn = 'আরব বিশ্বের দেশসমূহ',
			ca = 'Països del món àrab',
			cs = 'Země arabského světa',
			da = 'Lande i den arabiske verden',
			de = 'Länder der arabischen Welt',
			es = 'Países del mundo árabe',
			eu = 'Mundu arabiarreko herrialdeak',
			fr = 'Pays du monde arabe',
			hi = 'अरब दुनिया के देश',
			hr = 'Aemlje arapskog svijeta',
			hu = 'Az arab világ országai',
			hy = 'Արաբական աշխարհի երկրներ',
			id = 'Negara-negara dunia Arab',
			it = 'Paesi del mondo arabo',
			ja = 'アラブ世界の国々',
			ko = '아랍 세계의 국가',
			ml = 'അറബ് ലോകത്തെ രാജ്യങ്ങൾ',
			ms = 'Negara-negara dunia Arab',
			nb = 'Land i den arabiske verden',
			nl = 'Landen van de Arabische wereld',
			nn = 'Land i den arabiske verda',
			no = 'Land i den arabiske verden',
			pl = 'Kraje świata arabskiego',
			pt = 'Países do mundo árabe',
			['pt-br'] = 'Países do mundo árabe',
			ro = 'Țările lumii arabe',
			ru = 'Страны арабского мира',
			sk = 'Krajiny arabského sveta',
			sq = 'Vendet e botës arabe',
			sl = 'Države arabskega sveta',
			sr = 'Земље арапског света',
			['sr-latn'] = 'Zemlje arapskog sveta',
			sv = 'länder i den arabiska världen',
			th = 'ประเทศของโลกอาหรับ',
			tr = 'Arap dünyasının ülkeleri',
			uk = 'Країни арабського світу',
			vi = 'các nước thuộc thế giới Ả Rập',
			['zh-hans'] = '阿拉伯国家',
			['zh-hant'] = '阿拉伯國家',
		},
	},
	pattern = {
		{	'<div lang="{lang}" dir="{dir}" class="catlinks"' ..
			' style="clear:none;display:table;box-sizing:border-box;max-width:100%;font-size:88%;line-height:normal;margin:2px 0;padding:2px"><div style="display:table-cell;width:100%">',
				'mainlist',
		},
		{	'<em>{maintitle}{colon}</em>',
				{ 'maintitle', 'mainlist', },
		},
			'{mainlist}',
		{	'</div></div>',
				'mainlist',
		},
	},
	lists = {
		-- List of countries in an order suitable for display in the specified language.
		main = {
			english     = 'automatic',  -- this applies with uselang=en
			default     = 'automatic sorted',  -- currently unused because en is defined
			en          = 'automatic sorted',  -- this applies with uselang=XX where XX is not defined here
			automatic   = 'DZ BH TD KM DJ EG ER IQ JO KW LB LY MR MA OM PS QA SA SO SD SY TN AE EH YE',
			nb          = 'DZ BH DJ EG ER AE IQ YE JO KM KW LB LY MA MR OM PS QA SA SO SD SY TD TN EH',
			nn          = 'DZ BH DJ EG ER IQ YE JO KM KW LB LY MA MR OM PS QA AE SA SO SD SY TD TN EH',
			no          = 'DZ BH DJ EG ER AE IQ YE JO KM KW LB LY MA MR OM PS QA SA SO SD SY TD TN EH',
			['zh-hans'] = 'DZ AE OM EG PS BH ER DJ QA KM KW LB LY MR MA SA SD SO TN EH SY YE IQ JO TD',
			['zh-hant'] = 'DZ AE OM EG PS BH TD ER KM DJ QA KW LB LY MR MA SA SD SO TN EH SY YE IQ JO',
			['zh-hk']   = 'DZ AE OM EG PS BH ER DJ QA KM KW LB LY MR MA SA SD SO TN EH SY YE IQ JO TD',
		},
	},
	countries = {
		-- Coded are based on ISO3166-1, extended (without separator) by ISO3166-2 or longer extension
		AE   = { 'United Arab Emirates',    qid = 'Q878', the = true, },
		BH   = { 'Bahrain',                 qid = 'Q398', },
		DJ   = { 'Djibouti',                qid = 'Q977', },
		DZ   = { 'Algeria',                 qid = 'Q262', },
		EG   = { 'Egypt',                   qid = 'Q79', },
		EH   = { 'Western Sahara',          qid = 'Q6250', },
		ER   = { 'Eritrea',                 qid = 'Q986', },
		IQ   = { 'Iraq',                    qid = 'Q796', },
		JO   = { 'Jordan',                  qid = 'Q810', },
		KM   = { 'Comoros',                 qid = 'Q970', the = true, },
		KW   = { 'Kuwait',                  qid = 'Q817', },
		LB   = { 'Lebanon',                 qid = 'Q822', },
		LY   = { 'Libya',                   qid = 'Q1016', },
		MA   = { 'Morocco',                 qid = 'Q1028', },
		MR   = { 'Mauritania',              qid = 'Q1025', },
		OM   = { 'Oman',                    qid = 'Q842', },
		PS   = { 'State of Palestine', 'Palestinian territories', 'Palestine',
		                                    qid = 'Q219060', the = true, },
		QA   = { 'Qatar',                   qid = 'Q846', },
		SA   = { 'Saudi Arabia',            qid = 'Q851', },
		SO   = { 'Somalia',                 qid = 'Q1045', },
		SD   = { 'Sudan',                   qid = 'Q1049', },
		SY   = { 'Syria',                   qid = 'Q858', },
		TD   = { 'Chad',                    qid = 'Q657', },
		TN   = { 'Tunisia',                 qid = 'Q948', },
		YE   = { 'Yemen',                   qid = 'Q805', },
	},
}