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

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

--[=[ 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 {
	pattern =
		'<div lang="{lang}" dir="{dir}" class="catlinks" style=' ..
		'"margin:2px 0;padding:2px;font-size:smaller;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:smaller;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 = { EH = true, },
		},
	},
	titles = {
		main = {
			default = 'Countries of Africa',
			bn = 'আফ্রিকার দেশসমূহ',
			de = 'Staaten in Afrika',
			en = 'Countries of Africa',
			mk = 'Земји во Африка',
		},
		other = {
			default = 'Other areas',
			bn = 'অন্যান্য অঞ্চলসমূহ',
			de = 'Weitere Gebiete',
			en = 'Other areas',
			mk = 'Други подрачја',
		},
	},
	lists = {
		-- List of countries in an order suitable for display in the specified language.
		main = {
			automatic = 'DZ AO BJ BW BF BI CM CAVE CF TD KM CD CG CI DJ EG GQ ER ET OVFR GA GM GH GN GW KE LS LR LY MG MW ML MR MU MA MZ NA NE NG RW SADR ST SN SC SL SO SMLD ZA SS SD SZ TZ TG TN UG EH ZM ZW',
			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
			mk = 'DZ AO BJ BW BF BI CM CAVE CF TD KM CI CD DJ EG GQ ER ET GA GM GH GN GW KE LS LR LY MG MW ML MR MU MA MZ NA NE NG CG RW ST SN SC SL SO SMLD SS ZA SD SZ TZ TG TN UG SADR EH ZM ZW',
		},
		other = {
			automatic = 'AZAW TF YT RE EH',
			english = 'automatic',
			default = 'automatic sorted',
			en = 'automatic sorted',
		},
	},
	countries = {
		-- Codes AZAW, CAVE, OVFR, SADR, SMLD are invented.
		DZ   = { 'Algeria',                 qid = 'Q262', },
		AO   = { 'Angola',                  qid = 'Q916', },
		BJ   = { 'Benin',                   qid = 'Q962', },
		BW   = { 'Botswana',                qid = 'Q963', },
		BF   = { 'Burkina Faso',            qid = 'Q965', },
		BI   = { 'Burundi',                 qid = 'Q967', },
		CM   = { 'Cameroon',                qid = 'Q1009', },
		CAVE = { 'Cape Verde',              qid = 'Q1011', },
		CF   = { 'Central African Republic', qid = 'Q929', the = true, },
		TD   = { 'Chad',                    qid = 'Q657', },
		KM   = { 'Comoros',                 qid = 'Q970', the = true, },
		CD   = { 'Democratic Republic of the Congo', qid = 'Q974', the = true, },
		CG   = { 'Republic of the Congo',   qid = 'Q971', the = true, },
		CI   = { 'Ivory Coast',             qid = 'Q1008', },
		DJ   = { 'Djibouti',                qid = 'Q977', },
		EG   = { 'Egypt',                   qid = 'Q79', },
		GQ   = { 'Equatorial Guinea',       qid = 'Q983', },
		ER   = { 'Eritrea',                 qid = 'Q986', },
		ET   = { 'Ethiopia',                qid = 'Q115', },
		OVFR = { 'Overseas France',         qid = 'Q203396', },
		GA   = { 'Gabon',                   qid = 'Q1000', },
		GM   = { 'Gambia',                  qid = 'Q1005', the = true, },
		GH   = { 'Ghana',                   qid = 'Q117', },
		GN   = { 'Guinea',                  qid = 'Q1006', },
		GW   = { 'Guinea-Bissau',           qid = 'Q1007', },
		KE   = { 'Kenya',                   qid = 'Q114', },
		LS   = { 'Lesotho',                 qid = 'Q1013', },
		LR   = { 'Liberia',                 qid = 'Q1014', },
		LY   = { 'Libya',                   qid = 'Q1016', },
		MG   = { 'Madagascar',              qid = 'Q1019', },
		MW   = { 'Malawi',                  qid = 'Q1020', },
		ML   = { 'Mali',                    qid = 'Q912', },
		MR   = { 'Mauritania',              qid = 'Q1025', },
		MU   = { 'Mauritius',               qid = 'Q1027', },
		MA   = { 'Morocco',                 qid = 'Q1028', },
		MZ   = { 'Mozambique',              qid = 'Q1029', },
		NA   = { 'Namibia',                 qid = 'Q1030', },
		NE   = { 'Niger',                   qid = 'Q1032', },
		NG   = { 'Nigeria',                 qid = 'Q1033', },
		RW   = { 'Rwanda',                  qid = 'Q1037', },
		SADR = { 'Sahrawi Arab Democratic Republic', qid = 'Q40362', the = true, },
		ST   = { 'São Tomé and Príncipe',   qid = 'Q1039', },
		SN   = { 'Senegal',                 qid = 'Q1041', },
		SC   = { 'Seychelles',              qid = 'Q1042', the = true, },
		SL   = { 'Sierra Leone',            qid = 'Q1044', },
		SO   = { 'Somalia',                 qid = 'Q1045', },
		SMLD = { 'Somaliland',              qid = 'Q34754', },
		ZA   = { 'South Africa',            qid = 'Q258', },
		SS   = { 'South Sudan',             qid = 'Q958', },
		SD   = { 'Sudan',                   qid = 'Q1049', },
		SZ   = { 'Swaziland',               qid = 'Q1050', },
		TZ   = { 'Tanzania',                qid = 'Q924', },
		TG   = { 'Togo',                    qid = 'Q945', },
		TN   = { 'Tunisia',                 qid = 'Q948', },
		UG   = { 'Uganda',                  qid = 'Q1036', },
		ZM   = { 'Zambia',                  qid = 'Q953', },
		ZW   = { 'Zimbabwe',                qid = 'Q954', },
		AZAW = { 'Azawad',                  qid = 'Q43937', },
		TF   = { 'French Southern and Antarctic Lands', qid = 'Q129003', the = true, },
		YT   = { 'Mayotte',                 qid = 'Q17063', },
		RE   = { 'Réunion',                 qid = 'Q17070', },
		EH   = { 'Western Sahara',          qid = 'Q6250', },
	},
}
Community content is available under CC-BY-SA unless otherwise noted.