Module:Countries/Olympic teams

Lua

CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

This documentation is transcluded from Module:Countries/Olympic teams/doc.

Notes edit

Translation of items comes from Wikidata entries (whose determination is going on). Only section titles may need to be translated in this data module.

Be careful, those are not necessarily countries or dependant territories (i.e. they don't necessarily match ISO 3166-1). Look for the correct entry in Wikidata representing the Olympic delegation with their own distinctive names.

The codes displayed are those used by the International Olympic Comity. See also en:List of IOC country codes for references.

Rendering edit

translated entries (pointing to their categories only when they exist)
all entries (pointing to articles/gallery pages in the main namespace by default, may show red links)

This documentation is transcluded from Module:Countries/Africa/doc.

The countries and text displayed for a particular region are defined in a subpage of Module:Countries. For example, Module:Countries/Africa lists the countries in Africa and defines text such as "Countries of Africa" that is displayed if the user's language is en, and "Staaten in Afrika" if it is de. Country names are obtained from Wikidata.

How to create data modules edit

Translated section titles edit

Each section under titles defines text that depends on the current user's language. The procedures that apply to {{Fallback}} are used to determine which language should be used.

TODO: Standard titles should be defined in one module so they do not need to be duplicated for each countries submodule. Only items listed in each section are translated once from Wikidata labels. This may require adding also Wikidata entries for them (or locating existing Wikidata items for their topic), and being able to select their plural form when needed.

Pattern or ordered list of subpatterns edit

Module:Countries/Africa defines pattern twice. The first is a pattern for the text that is normally displayed by {{Countries of Africa}}, while the second applies when the parameter |simple=yes is used.

Each occurrence of {name} in the pattern is replaced with appropriate text. The names used for Africa when simple does not apply are:

Name Description
{lang} User's language from {{Int:Lang}} such as "en" or "de".
{dir} Direction "ltr" or "rtl" selected using lang.
{colon} Equivalent of ": " from {{Colon|lang={{Int:Lang}}}}; do not insert any space after it.
{maintitle} Title from titles.main selected using lang.
{othertitle} Title from titles.other selected using lang.
{mainlist} List of country codes from lists.main selected using lang.
{otherlist} List of country codes from lists.other selected using lang.
{partlylist} List of country codes from lists.partly used to render a note only (this list is not sorted by languages as it is not displayed, but it provides the condition for which the note will be added, i.e. when one of the other lists includes a country which is displayed with an extra mark calling for this note).

You can specify patterns in various ways, the simplest one being a single string containing all the layout wikitext and {name} placeholders described above. This will only generate a static list with a single layout.

But you can also split the pattern into multiple "conditional supatterns" (all of them containing arbitrary wikitext or {name} placeholders), and put them in an ordered table, in the order in which they must appear on the result. This allows some fragments of the layout to be removed (for example dropping the section title if the list after it in the same section is empty, or dropping the static separators between sections).

Each "conditional subpattern" is represented either:

  • as a simple string like 'subpattern with {name} placeholders' when there's no condition (this unconditional pattern will be always added to the result), or
  • as an ordered table, where:
    • first element is a string for the subpattern, and
    • the other elements represent an union of several (non-exclusive) "conditions"
    for example, { 'subpattern with {name} placeholders', condition1, condition2, ... }
    (if any one of the listed conditions evaluates to true (OR), the conditional subpattern will be used).

Each "condition" listed in a array after the initial subpattern may itself be represented either:

  • as a simple string for "simple conditions", or
  • as an ordered table of "subconditions", i.e. a conjunction of several (non-exclusive) simple conditions
    for example, { 'subpattern with {name} placeholders', { subcondition1, subcondition2, ... }, ... }
    (if any one of the subconditions evaluates to false (AND), the conditional subpattern will NOT be used according to this condition, but may be used if other conditions part of the union allow it).

Each "simple condition" is used to evaluate tests based on names of variables (usable in placeholders of patterns or subpatterns). A simple condition is represented by a string and can currently take one the following forms:

  • 'name'  : the simple condition is true if the variable with that name is non-empty (i.e. the subpattern {name} would be replaced by an actual text);
  • '!name' : the simple condition is true if the variable with that name is empty (i.e. the subpattern {name} would be replaced by nothing);

The variable names used in simple conditions don't need to be present within the "conditional subpattern" string to which the condition applies (indicated at start of the table describing the conditional subpattern). This means for example that a subpattern continaining only static wikitext and no {name} placeholder, can be conditional. This is useful notably

  • to generate static wikitext (for example breaks or punctuation or other presentational elements), that will be present in the result only if other conditional patterns actually generate text (depending on their own placeholders).
  • to suppress every layout elements surrounding the inner content, when there's nothing useful to display: the result can then be entirely empty.

Simple presentation in a single section edit

If the template that invokes the module has |simple=yes, the simple section is used.

  • simple.pattern replaces pattern
  • simple.sections specifies which sections from titles and lists will be processed.

In Module:Countries/Africa, simple.sections has

main = { EH = true, },

The fact that main is defined means that titles.main and lists.main will be used. The fact that other is not defined means that titles.other and lists.other will be ignored.

EH = true is used when simple does not apply. When the template is used normally (without |simple=yes), the country identified by EH is ignored. That is done because EH is included in the other section. However, with |simple=yes, EH will appear in the main section.

The simple version can also use a single pattern, or multiple conditional subpatterns like previously.

Orderable lists of items, one for each section edit

Each section under lists defines the list of country codes that will be used to display country names. Similarly to titles, the list depends on the current user's language.

Countries are listed in the order specified. If the default order is unsatisfactory for a particular language, an entry for the language can be added. The entry should include all the country codes in a suitable order.

For example, lists.main may include the following (... replaces some text omitted for simplicity).

main = {
    english   = 'automatic',
    default   = 'automatic sorted',
    en        = 'automatic sorted',
    mk        = 'DZ AO BJ BW BF BI CM CAVE CF TD KM CI ... SADR EH ZM ZW',
    automatic = 'DZ AO BJ BW BF BI CM CAVE CF TD KM CD ...   UG EH ZM ZW',
},

Each country code such as DZ is defined under countries. All lists should contain the same codes, only ordered differently depending on language; every localized list (keyed by language code) should then have exactly the same length as the one given for the 'automatic' list (which is required), or should be one of 'automatic sorted' or 'automatic'.

The following keys have special meaning when used before =.

automatic Must be defined if any other parameter is set to 'automatic' or 'automatic sorted'. The listed codes should be ordered according to the English names, so that they don't need sorting (see below).
default The fallback entry used if the user's language is not defined ({{Fallback}} falls back to en if it is defined and no more applicable entry is defined).
english The entry used if the user's language is en. This is an optimization to avoid the overhead of automatic processing for a commonly used language.

The following values have special meaning when used after =.

'automatic' This entry will use the list of country codes defined in the automatic = '...' parameter.
'automatic sorted' Same as 'automatic' but (unless option all is set) the country names will be reordered using a crude sorting algorithm.

A module is not able to properly collate names for a language other than en. However, Module:Countries can satisfactorily collates some names that use letters with diacritics which sort after their equivalent letters.

The collation (performed only when the option all is not set when calling the main function Module:Countries) is based on a function, defined in Module:MakeSortKey, creating sort keys from a translated label and the target language code (this language code could be later used to tailor the collation according to sorting rules for specific languages, but for now the sort order is locale-neutral). Generally, this sorting works for most languages, but the localisation may be needed to take into account ignorable prefixes, or for complex scripts that still have no support for a basic collation order.

Definitions of each list item edit

Several examples from a countries table follow.

countries = {
    CI    = { 'Ivory Coast', "Côte d'Ivoire",  qid = 'Q1008', },
    DZ    = { 'Algeria',                       qid = 'Q262', },
    EG    = { 'Egypt',                         qid = 'Q79', mark = '‡', },
    GM    = { 'Gambia',                        qid = 'Q1005', the = true, },
    XBRTW = { 'Bir Tawil',                     qid = 'Q620634', },
}

CI, DZ, EG, and GM are country codes that identify a particular country. Where available, ISO 3166-2 codes are used, but any code can be used as they only have a meaning within the module (you should use a private extension, starting by "X", of ISO 3166-1 if the territory is part of another recognized country but has no ISO 3166-2 code, or use one of the prefixes reserved in ISO 3166-1 for private use, like "AA", "QM" to "QZ", "X", or "ZZ").

The country names Algeria and Gambia are the titles of pages which should exist at Commons, and where the category page generally also exists. English names should be used but need to match names used in titles of titles in Commons. If several alternative names are used in Commons to refer to the same country in related page titles (such as "Côte d'Ivoire"), you may list these alternate names.

The qid codes identify the corresponding item at Wikidata. It allows translating the displayed label in the user's language (when option all is not set to render the box). For example,

  • d:Q262 on Wikidata is associated to Algeria on Commons, and will also be used to get the translated label for other related pages like Category:Algeria
  • d:Q1005 on Wikidata is associated to Gambia on Commons, and will also be used to get the translated label for other related pages like Category:Gambia

If the |all=yes option is not set to render the box, or if qid is not defined, or if qid is not found in Wikidata, or Wikidata does not define a label for it, then the first name listed in the data defining the country (normally in English and used in page titles in Commons) will be used as a default (untranslated) label.

Normally, a link is shown in the rendered bulleted lists only if the page exists.

But when rendering the list with |all=yes option, all possible page titles will be listed, without testing their existence, and without translating the displayed labels (this will frequently generate red links, but it allows the maintenance of page names on Commons, to find those that redirect to unexpected pages, or to facilitate the creation of missing pages with coherent titles that will be found and used when the |all=yes option will be removed to hide all possible aliases from the list and to get translated and sorted labels).

The entry for Gambia illustrates use of the optional the in country's data, whose effect is that the Gambia is tested for existence before Gambia: if a page exists in Commons using the in its title, this page will be selected as the target of the link.

The wikitext for each link has the following form:

[[PrefixTitleSuffix|<bdi>Label</bdi>]]
Prefix Consists of the specified prefix and separator (or space).
Title The name specified in the countries table, possibly prefixed by the (only if the data defining a country code includes the = true).
Suffix Consists of the specified separator (or space) and suffix.
bdi bidirectional isolation in HTML
Label The label from Wikidata for the specified qid in the current user's language.

The entry for Egypt illustrates use of the optional mark in country's data, whose effect is that a superscripted mark will be added after the label. This is used as a note call, which will be rendered at bottom of the table. If you use such marks, you should create a conditional section (such as "partly") which lists all concerned codes (in arbitrary code order); this list will not be rendered, but will appear conditionally if any one of the listed codes is displayed from the other lists.

Related modules and templates edit

This list (currently maintained in Module:Convert/tester) is partial but contains the most frequently used modules. It autodetects differences between the normal modules and templates and their sandbox version, and list their associated testcases and talk pages (when they exist).

It also shows that the main module is not necessarily used for listing countries (or territories), it could be used as well to create navigation boxes for lists of cities, chemical elements, and so on, provided that these lists are bounded, wellknown and stable over years (and not overlong) : if a list contains more than 200 items, consider generated separate modules and navbox for sublists using some criteria). New data modules also don't necessarily have to be created and named as subpages of Module:Countries.

The sandbox versions of modules should be identical, except temporarily for testing changes (rendered with the sandbox template, in their comparative test cases)

Modules in Commons

Templates in Commons using these modules

The sandbox versions of these templates should be different as they use the sandbox version of the modules.

How to make changes and preview them using sandboxes edit

For example, {{Countries of Africa/sandbox}} displays:

If the user's language is en, Module:Countries/Africa/sandbox could be edited and

en = 'Countries of Africa',

changed to

en = 'African countries',

Do not save the change. Instead, under "Preview page with this template" enter the title of this page

Module:Countries/Africa/doc

then click "Show preview". That will display this documentation page including the output from the above {{Countries of Africa/sandbox}} template. The output will start with "African countries" instead of "Countries of Africa". In the same manner, other changes could be made and previewed before saving the changes. Close the current browser window without saving the changes to discard them (or get back to a previous page using the button of the browser navigating in the session history).

Before updating the main data module, changes should be made in the sandbox data module and tested with the sandbox template.

Code

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

--[=[ 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 = 'Olympic teams',
			af = 'Olimpiese spanne',
			am = 'የኦሎምፒክ ቡድኖች',
			ar = 'الفرق الاولمبية',
			az = 'Olimpiya komandaları',
			be = 'Алімпійскія каманды',
			['be-tarask'] = 'Алімпійскія каманды',
			bg = 'Олимпийски отбори',
			bn = 'অলিম্পিক দল',
			bs = 'Olimpijske ekipe',
			ca = 'Equips olímpics',
			ceb = 'Mga koponan sa Olimpiada',
			co = 'Squadre olimpiche',
			cs = 'Olympijské týmy',
			cy = 'Timau Olympaidd',
			da = 'Olympiske hold',
			de = 'Olympische Mannschaften',
			el = 'Ολυμπιακές ομάδες',
			en = 'Olympic teams',
			eo = 'Olimpikaj teamoj',
			es = 'Equipos olimpicos',
			et = 'Olümpiamängijad',
			eu = 'Olinpiar taldeak',
			fa = 'تیم های المپیک',
			fi = 'Olympiajoukkueet',
			fr = 'Délégations olympiques',
			fy = 'Olympyske ploegen',
			ga = 'Foirne Oilimpeacha',
			gd = 'Sgiobaidhean Oiliompaigeach',
			gl = 'Equipos olímpicos',
			gu = 'ઓલિમ્પિક ટીમો',
			ha = 'Ƙungiyar Olympics',
			haw = 'ʻO nā hui’Epepe',
			he = 'צוותים אולימפיים',
			hi = 'ओलंपिक की टीमें',
			hmn = 'Olympic pawg',
			hr = 'Olimpijske momčadi',
			ht = 'Ekip Olympic',
			hu = 'Olimpiai csapatok',
			hy = 'Օլիմպիական թիմեր',
			id = 'Tim Olimpiade',
			ig = 'Egwuregwu Olympic',
			is = 'Ólympíuleikarnir',
			it = 'Squadre olimpiche',
			ja = 'オリンピックチーム',
			jv = 'Tim Olimpiade',
			ka = 'ოლიმპიური გუნდები',
			kk = 'Олимпиада командалары',
			km = 'ក្រុមអូឡាំពិក',
			kn = 'ಒಲಂಪಿಕ್ ತಂಡಗಳು',
			ko = '올림픽 팀',
			ku = 'Tîmên Olîmpîk',
			ky = 'Олимпиада командалар',
			mm = 'အိုလံပစ်အဖွဲ့များ',
			la = 'Olympiae turmae',
			lb = 'Olympeschen Équipen',
			lt = 'Olimpinės komandos',
			lv = 'Olimpiskās komandas',
			mg = 'Mpilalao olympika',
			mi = 'Ngā tīma o te Olympics',
			mk = 'Олимписки екипи',
			ml = 'ഒളിമ്പിക് ടീമുകൾ',
			mn = 'Олимпийн багууд',
			mr = 'ओलंपिक संघ',
			ms = 'Pasukan Olimpik',
			mt = 'Timijiet Olimpiċi',
			ne = 'ओलम्पिक टोलीहरू',
			nb = 'Olympiske lag',
			nl = 'Olympische ploegen',
			nn = 'Olympiske lag',
			no = 'Olympiske lag',
			ny = 'Magulu a Olimpiki',
			pa = 'ਓਲੰਪਿਕ ਟੀਮਾਂ',
			pl = 'Zespoły olimpijskie',
			ps = 'د المپیک ټیمونه',
			pt = 'Equipes olímpicas',
			ro = 'Echipe olimpice',
			ru = 'Олимпийские команды',
			sd = 'اولمپڪ ٽيمون',
			si = 'ඔලිම්පික් කණ්ඩායම්',
			sk = 'Olympijské tímy',
			sl = 'Olimpijske ekipe',
			sm = 'Taaloga Olimipeka',
			sn = 'Olympic mapoka',
			so = 'Kooxaha Olombikada',
			sq = 'Ekipet olimpike',
			sr = 'Олимпијски тимови',
			['sr-latn'] = 'Olimpijski timovi',
			st = 'Lihlopha tsa Liolimpiki',
			su = 'Tim Olimpiade',
			sv = 'Olympiska lagen',
			sw = 'Timu ya Olimpiki',
			ta = 'ஒலிம்பிக் அணிகள்',
			te = 'ఒలింపిక్ జట్లు',
			tg = 'Дастаҳои олимпӣ',
			th = 'ทีมโอลิมปิก',
			tl = 'Mga koponan ng Olimpiko',
			tr = 'Olimpiyat takımları',
			uk = 'Олімпійські збірні',
			ur = 'اولمپکس ٹیمیں',
			uz = 'Olimpiya jamoalari',
			vi = 'Đội Olympic',
			xh = 'Amaqela eOlimpiki',
			yi = 'אָלימפּיק טימז',
			yo = 'Ẹgbẹ olympic',
			['zh-hans'] = '奥运队伍',
			['zh-hant'] = '奧運隊伍',
			zu = 'Amaqembu e-Olimpiki',
		},
		special = {
			default = 'Special teams',
			af = 'Spesiale spanne',
			['be-tarask'] = 'Спэцыяльныя каманды',
			bn = 'বিশেষ দল',
			de = 'Speziellen Mannschaften',
			en = 'Special teams',
			es = 'Equipos especiales',
			fr = 'Délégations spéciales',
			mk = 'Специјални екипи',
			ml = 'പ്രത്യേക ടീമുകൾ',
			nb = 'Spesielle lag',
			nl = 'Speciale teams',
			nn = 'Spesielle lag',
			no = 'Spesielle lag',
			sl = 'Posebne ekipe',
			sr = 'Специјални тимови',
			['sr-latn'] = 'Specijalni timovi',
			['zh-hans'] = '特殊队伍',
			['zh-hant'] = '特別隊伍',
			zu = 'Amaqembu akhethekile',

		},
		former = {
			default = 'Former teams',
			af = 'Oud spanne',
			['be-tarask'] = 'Колішнія каманды',
			bn = 'সাবেক দল',
			de = 'Ehemaligen Mannschaften',
			en = 'Former teams',
			es = 'Antiguos equipos',
			fr = 'Anciennes délégations',
			mk = 'Поранешни екипи',
			ml = 'മുമ്പുണ്ടായിരുന്ന ടീമുകൾ',
			nb = 'Tidligere lag',
			nl = 'Voormalige teams',
			nn = 'Tidlegare lag',
			no = 'Tidligere lag',
			sl = 'Nekdanje ekipe',
			sr = 'Бивши тимови',
			['sr-latn'] = 'Bivši timovi',
			['zh-hans'] = '既往队伍',
			['zh-hant'] = '既往隊伍',
			zu = 'Amaqembu akade eyiwona',
		},
	},
	pattern = {
		{	'<div lang="{lang}" dir="{dir}" class="catlinks"' ..
			' style="clear:none;margin:2px 0;padding:2px;font-size:88%;line-height:normal">',
				'mainlist',
				'speciallist',
				'formerlist',
		},
		{	'<em>{maintitle}{colon}</em>',
				{ 'maintitle', 'mainlist', },
		},
			'{mainlist}',
		{	'<br /> ',
				{ 'mainlist', 'speciallist', },
				{ 'mainlist', 'formerlist', },
		},
		{	'<em>{specialtitle}{colon}</em>',
				{ 'specialtitle', 'speciallist', },
		},
			'{speciallist}',
		{	'<br /> ',
				{ 'speciallist', 'formerlist', },
		},
		{	'<em>{formertitle}{colon}</em>',
				{ 'formertitle', 'formerlist', },
		},
			'{formerlist}',
		{	'</div>',
				'mainlist',
				'speciallist',
				'formerlist',
		},
	},
	simple = {
		pattern = {
			{	'<div lang="{lang}" dir="{dir}" class="catlinks"' ..
				' style="clear:none;margin:2px 0;padding:2px;font-size:88%;line-height:normal">',
					'mainlist',
			},
			{	'<em>{maintitle}{colon}</em>',
					{ 'maintitle', 'mainlist', },
			},
				'{mainlist}',
			{	'</div>',
					'mainlist',
			},
		},
		sections = {
			main = {
			},
		},
	},
	lists = {
		-- List of countries in an order suitable for display in the specified language.
		main = {
			default     = 'automatic sorted',  -- unused if en is defined
			automatic   = 'AFG ALB ALG ASA AND ANG ANT ARG ARM ARU AUS AUT AZE BAH BRN BAN BAR BEL BIZ BEN BER BHU BOL BIH BOT BRA IVB BRU BUL BUR BDI CAM CMR CAN CPV CAY CAF CHA CHI CHN TPE COL COM COK CRC CRO CUB CYP CZE COD DEN DJI DMA DOM TLS ECU EGY ESA GEQ ERI EST ETH FRO FSM FIJ FIN FRA GAB GAM GEO GER GHA GBR GRE GRN GUM GUA GUI GBS GUY HAI HON HKG HUN ISL IND INA IRI IRQ IRL ISR ITA CIV JAM JPN JOR KAZ KEN KIR KOS KUW KGZ LAO LAT LBN LES LBR LBA LIE LTU LUX MAC MAD MAW MAS MDV MLI MLT MHL MTN MRI MEX MDA MON MGL MNE MAR MOZ MYA NAM NRU NEP NED NZL NCA NIG NGR PRK MKD NOR OMA PAK PLW PLE PAN PNG PAR PER PHI POL POR PUR QAT CGO ROU RWA SKN LCA VIN SAM SMR STP KSA SEN SRB SEY SLE SGP SVK SLO SOL SOM RSA KOR SSD ESP SRI SUD SUR SWZ SWE SUI SYR TJK TAN THA TOG TGA TTO TUN TUR TKM TUV UGA UKR UAE USA URU UZB VAN VEN VIE ISV YEM ZAM ZIM',
			['zh-hans'] = 'ALB ALG AFG ARG UAE ARU OMA AZE IRL EGY ETH EST AND ANG ANT AUS AUT GBR MAC BAR PNG BAH PAK PAR PLE BRN PAN BRA BER BUL MKD BEN BEL PER ISL BOT PUR POL BOL BIZ BIH BHU BUR BDI PRK KOR GEQ DEN GER TLS TOG DOM DMA ECU ERI FRA FRO FIJ FIN PHI CPV GAM CGO COD GRN GEO COL CRC CUB GUM GUY KAZ HAI NEL MNE HON DJI KGZ KIR GUI GBS GHA CAN GAB CAM CZE ZIM CMR QAT CAY CRO COM KOS CIV KUW KEN COK LAT LES LAO LBN LBR LBA LTU LIE LUX RWA ROU MAD MDV MLT MAW MAS MLI MHL MRI MTN USA ASA ISV MGL BAN FSM MYA MDA MAR MON MOZ MEX NAM RSA SSD NRU NEP NIG NGR NCA NOR PLW POR JPN SWE SUI ESA SAM SRB SLE SEN CYP SEY KSA STP SKN LCA SMR VIN SRI SVK SLO SWZ SUD SUR SOL SOM TJK TAN TGA THA TTO TUR TKM TUN TUV VAN VEN BRU UGA UKR URU UZB GUA ESP GRE HKG SGP NZL HUN SYR JAM ARM YEM ITA IRQ IRI ISR IND INA IVB JOR VIE ZAM CHA CHI CAF CHN TPE',
		},
		special = {
			default     = 'automatic sorted',  -- unused if en is defined
			automatic   = 'IOC ANZ IOA IOP IPP IPA COR AIN ZZX MIX NPA OAR EOR RPT ROC RPC EUN EUA',
			['zh-hans'] = 'EOR RPT ROC RPC AIN EUN EUA NPA ANZ IOA IOP ZZX IPA COR IPP IOC MIX OAR',
		},
		former = {
			default     = 'automatic sorted',  -- unused if en is defined
			automatic   = 'BOH GUY0 HBR BLR BWI CEY TCH DAH IHO GDR GHA0 KHM MAL AHO NBO YAR NRH ROC1 RHO RUS RU1 SAA SCG YMD URS RAU UAR VOL FRG YUG ZAI',
			['zh-hans'] = 'RAU UAR YAR NRH BLR NBO BOH GDR RUS RU1 DAH KHM AHO IHO TCH RHO MAL YUG SCG SAA ZAI VOL URS FRG CEY YMD GUY0 HBR GHA0 BWI ROC1',
		},
	},
	countries = {
		-- List ordered by 3-letter IOC code of national, special or former delegations (see [[w:en:List of IOC country codes]])
		-- Possibly extended by disambiguating digit for former former codes reassigned later
		ADE  = { 'East Germany',                        qid = 'Q16957', note = '<small>(1968)</small>', },
		AFC  = { 'Central African Republic',            qid = 'Q929', the = true, note = '<small>(1968)</small>', },
		AFG  = { 'Afghanistan',                         qid = 'Q889', },
		AGL  = { 'Algeria',                             qid = 'Q262', note = '<small>(1968)</small>', },
		AGR  = { 'Algeria',                             qid = 'Q262', note = '<small>(1964)</small>', },
		AHO  = { 'Netherlands Antilles',                qid = 'Q25227', the = true, note = '<small>(1952–2008)</small>', },
		     --[[1952: AHO; 1960: ATO; 1964: NAN; 1968–1984: AHO; 1988–2008: AHO+ARU; 2012: ARU+IOA+NED; 2014–: ARU+NED]]
		AIN  = { 'Individual Neutral Athletes',         qid = 'Q123751791', the = true, note = '<small>(2024)</small>', },
			 --See BLR and RUS for history of codes
		ALB  = { 'Albania',                             qid = 'Q222', },
		ALE  = { 'West Germany',                        qid = 'Q713750', note = '<small>(1968)</small>', },
		ALG  = { 'Algeria',                             qid = 'Q262', },
		     --[[1896–1960: part of FRA; 1964: AGR; 1968: AGL; 1972–: ALG]]
		ALL  = { 'West Germany',                        qid = 'Q713750', note = '<small>(1968)</small>', },
		AND  = { 'Andorra',                             qid = 'Q228', },
		ANG  = { 'Angola',                              qid = 'Q916', },
		ANT  = { 'Antigua and Barbuda',                 qid = 'Q781', },
		ANZ  = { 'Australasia',                         qid = 'Q45256', note = '<small>(1908–1912)</small>', },
		ARG  = { 'Argentina',                           qid = 'Q414', },
		ARM  = { 'Armenia',                             qid = 'Q399', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1994–: ARM]]
		ARS  = { 'Saudi Arabia',                        qid = 'Q851', note = '<small>(1972–1976)</small>', },
		ARU  = { 'Aruba',                               qid = 'Q21203', },
		ASA  = { 'American Samoa',                      qid = 'Q16641', },
		AUS  = { 'Australia',                           qid = 'Q408', },
			 --[[1900–1904: AUS; 1908–1912: part of ANZ; 1920–: AUS]]
		AUT  = { 'Austria',                             qid = 'Q40', },
		AZE  = { 'Azerbaijan',                          qid = 'Q227', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1996–: AZE]]
		BAH  = { 'Bahamas',                             qid = 'Q778', the = true, },
		BAN  = { 'Bangladesh',                          qid = 'Q902', },
		BAR  = { 'Barbados',                            qid = 'Q244', },
		     --[[1960: part of BWI; 1968–: BAR]]
		BDI  = { 'Burundi',                             qid = 'Q967', },
		BEL  = { 'Belgium',                             qid = 'Q31', },
		BEN  = { 'Benin',                               qid = 'Q962', },
		     --[[1972: DAH; 1980–: BEN]]
		BER  = { 'Bermuda',                             qid = 'Q23635', },
		BHU  = { 'Bhutan',                              qid = 'Q917', },
		BIH  = { 'Bosnia and Herzegovina',              qid = 'Q225', },
		     --[[1920–1992(Winter): part of YUG; 1992 (Summer): BSH; 1994–: BIH]]
		BIR  = { 'Burma',                               qid = 'Q836', note = '<small>(1948–1960, 1968–1988)</small>', },
		     --See MYA for history of codes
		BIZ  = { 'Belize',                              qid = 'Q242', },
		     --[[1968–1972: HBR; 1976–: BIZ]]
		BLR  = { 'Belarus',                             qid = 'Q184', note = '<small>(1994–2022)</small>', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1994–2022: BLR; 2024–: part of AIN]]
		BOH  = { 'Bohemia',                             qid = 'Q39193', note = '<small>(1900–1912)</small>', },
		     --See CZE for history of codes
		BOL  = { 'Bolivia',                             qid = 'Q750', },
		BOT  = { 'Botswana',                            qid = 'Q963', },
		BRA  = { 'Brazil',                              qid = 'Q155', },
		BRN  = { 'Bahrain',                             qid = 'Q398', },
		BRU  = { 'Brunei',                              
		         'Brunei Darussalam',                   qid = 'Q921', },
		BSH  = { 'Bosnia and Herzegovina',              qid = 'Q225', note = '<small>(1992)</small>', },
		BUL  = { 'Bulgaria',                            qid = 'Q219', },
		BUR  = { 'Burkina Faso',                        
		         'Burkina',                             qid = 'Q965', },
		     --[[1972: VOL; 1988–: BUR]]
		BWI  = { 'British West Indies',                 qid = 'Q920396', the = true, note = '<small>(1960–1968)</small>', },
		     --See BAR, JAM and TOO for history of codes
		CAB  = { 'Cambodia',                            qid = 'Q424', note = '<small>(1964)</small>', },
		CAF  = { 'Central African Republic',            qid = 'Q929', the = true, },
			 --[[1968: AFC; 1984–: CAF]]
		CAM  = { 'Cambodia',                            qid = 'Q424', },
			 --[[1896–1952: part of FRA; 1956: CAM; 1964: CAB; 1972: KHM; 1996–: CAM]]
			 --no participation during Khmer Rouge (1976–1992)
		CAN  = { 'Canada',                              qid = 'Q16', },
		CAY  = { 'Cayman Islands',                      qid = 'Q5785', the = true, },
		CEI  = { 'Ceylon',                              id = 'Q2670092', note = '<small>(1968)</small>', },
		CEY  = { 'Ceylon',
		         'Dominion of Ceylon',
		         'British Ceylon', --[[1815–1948]]     qid = 'Q2670092', note = '<small>(1948–1964, 1972)</small>', },
		     --See SRI for history of codes
		CGO  = { 'Republic of the Congo',               
		         'Congo-Brazzaville',                   
		         'Congo',                               qid = 'Q971', the = true, },
		CHA  = { 'Chad',                                qid = 'Q657', },
			 --[[1964: CHD; 1968–: CHA]]
		CHD  = { 'Chad',                                qid = 'Q657', note = '<small>(1964)</small>', },
		CHI  = { 'Chile',                               qid = 'Q298', },
			 --[[1896–1952: CHI; 1956 (Winter),1960 (Summer): CIL; 1964–: CHI]]
		CHN  = { 'China',                         
		         "People's Republic of China",          qid = 'Q148', },
			 --[[1932–1948: part of "China"; 1952 (Summer): PRC; 1980–: CHN]]
			 --temporary withdrawn from IOC during 1956–1976, and boycotted in 1980 Summer
		CIL  = { 'Chile',                               qid = 'Q298', note = '<small>(1956, 1960)</small>', },
		CIV  = { 'Ivory Coast',                         
		         "Côte d'Ivoire",                       qid = 'Q1008', },
			 --[[1964: IVC; 1968: CML; 1972–: CIV]]
		CML  = { 'Ivory Coast',                         qid = 'Q1008', note = '<small>(1968)</small>', },
		CMR  = { 'Cameroon',                            
		         'Cameroun',                            qid = 'Q1009', },
		COD  = { 'Democratic Republic of the Congo',
		         'Congo-Kinshasa',
		         'Zaire',                               qid = 'Q974', the = true, },
		     --[[1968: COK; 1984-1996: ZAI; 2000–: COD]]
		COK  = { 'Cook Islands',                        qid = 'Q26988', the = true, },
		COL  = { 'Colombia',                            qid = 'Q739', },
		COM  = { 'Comoros',                             qid = 'Q970', the = true, },
		COR  = { 'Korea',                               qid = 'Q18097', note = '<small>(2018)</small>', },
		     --See KOR for history of codes
		COS  = { 'Costa Rica',                          qid = 'Q800', note = '<small>(1964)</small>', },
		CPV  = { 'Cape Verde',                          qid = 'Q1011', },
		CRC  = { 'Costa Rica',                          qid = 'Q800', },
			 --[[1936: CRC; 1964: COS; 1968–: CRC]]
		CRO  = { 'Croatia',                             qid = 'Q224', },
			 --[[1912: part of AUT; 1920–1988: YUG; 1992–: CRO]]
		CSL  = { 'Czechoslovakia',                      qid = 'Q282392', note = '<small>(1956)</small>', },
		CSV  = { 'Czechoslovakia',                      qid = 'Q1883820', note = '<small>(1960)</small>', },
		CUB  = { 'Cuba',                                qid = 'Q241', },
		CYP  = { 'Cyprus',                              qid = 'Q229', },
		CZE  = { 'Czech Republic',                      qid = 'Q213', the = true, },
		     --[[1900–1912: BOH; 1920–1952: TCH; 1956 (Winter): CSL; 1960 (Winter): CZE; 1960 (Summer): CSV;
		     1964 (Summer): CZS; 1968 (Summer): CHE; 1972–1992: TCH; 1994–: CZE]]
		CZS  = { 'Czechoslovakia',                      qid = 'Q740178', note = '<small>(1964)</small>', },
		DAH  = { 'Dahomey',                             qid = 'Q797505', note = '<small>(1972)</small>', },
			 --See BEN for history of codes
		DAN  = { 'Denmark',                             qid = 'Q35', note = '<small>(1960, 1968)</small>', },
		DEN  = { 'Denmark',                             qid = 'Q35', },
			 --[[1896–1956: DEN; 1960 (Summer), 1968 (Winter): DAN; 1968 (Summer): DIN; 1972–: DEN]]
		DIN  = { 'Denmark',                             qid = 'Q35', note = '<small>(1968)</small>', },
		DJI  = { 'Djibouti',                            qid = 'Q977', },
		DMA  = { 'Dominica',                            qid = 'Q784', },
		DOM  = { 'Dominican Republic',                  qid = 'Q786', the = true, },
		ECU  = { 'Ecuador',                             qid = 'Q736', },
		EGY  = { 'Egypt',                               qid = 'Q79', },
		     --[[1912–1956: EGY; 1960: RAU; 1964: UAR; 1968: RAU; 1972–: EGY]]
		EOR  = { 'Refugee Olympic Team',                qid = 'Q23017582', the = true, note = '<small>(2020–)</small>', },
		     --[[2016: ROT; 2020–: EOR]]
		ERI  = { 'Eritrea',                             qid = 'Q986', },
		ESA  = { 'El Salvador',                         qid = 'Q792', },
			 --[[1968–1972: SAL; 1984–: ESA]]
		ESP  = { 'Spain',                               qid = 'Q29', },
			 --[[1900–1952: ESP; 1956–1968 (Winter): SPA; 1972–: ESP]]
		EST  = { 'Estonia',                             qid = 'Q191', },
			 --[[1900–1912: part of RU1; 1920–1936: EST; 1952–1988: part of URS; 1992–: EST]]
		ETH  = { 'Ethiopia',                            qid = 'Q115', },
			 --[[1956: ETH; 1960: ETI; 1964: ETH; 1968: ETI; 1972–: ETH]]
		ETI  = { 'Ethiopia',                            qid = 'Q115', note = '<small>(1960, 1968)</small>', },
		EUA  = { 'United Team of Germany',              qid = 'Q31657', the = true, note = '<small>(1956–1964)</small>', },
			 --See GER for history of codes
		EUN  = { 'Unified Team',                        qid = 'Q517439', the = true, note = '<small>(1992)</small>', },
		     --See ARM, AZE, BLR, GEO, KAZ, KGZ, MDA, RUS, TJK, TKM, UKR and UZB for history of codes
		FIG  = { 'Fiji',                                qid = 'Q712', note = '<small>(1960)</small>', },
		FIJ  = { 'Fiji',                                qid = 'Q712', },
			 --[[1956: FIJ; 1960: FIG; 1964–: FIJ]]
		FIL  = { 'Philippines',                         qid = 'Q928', the = true, note = '<small>(1960, 1968)</small>', },
		FIN  = { 'Finland',                             qid = 'Q33', },
		FRA  = { 'France',                              qid = 'Q142', },
		FRG  = { 'West Germany',                        qid = 'Q713750', note = '<small>(1980–1988)</small>', },
		     --See GER for history of codes
		FRO  = { 'Faroe Islands',                       qid = 'Q4628', },
		FSM  = { 'Federated States of Micronesia',      qid = 'Q702', the = true, },
		GAB  = { 'Gabon',                               qid = 'Q1000', },
		GAM  = { 'Gambia',                              qid = 'Q1005', the = true, },
		GBI  = { 'Great Britain',                       qid = 'Q749109', note = '<small>(1964)</small>', },
		GBR  = { 'Great Britain',                       qid = 'Q749109', },
		     --[[1896–1952: GBR; 1956–1960: GRB; 1964: GBI; 1968–: GBR]]
		GBS  = { 'Guinea-Bissau',                       qid = 'Q1007', },
		GDR  = { 'East Germany',                        qid = 'Q16957', note = '<small>(1972–1988)</small>', },
		GEO  = { 'Georgia',                             qid = 'Q230', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1994–: GEO]]
		GEQ  = { 'Equatorial Guinea',                   qid = 'Q983', },
		GER  = { 'Germany',                             qid = 'Q183', },
		     --[[1896–1936: GER; 1952: GER+SAA; 1956-1964: EUA (GER in some sports);
		     1968 (Winter): ALL+ADE; 1968 (Summer): ALE+ADE; 1972–1976: GER+GDR; 1980–1988: FRG+GDR; 1992–: GER]] 
		GHA  = { 'Ghana',                               qid = 'Q117', },
		GHA0 = { 'British Gold Coast',                  qid = 'Q503623', the = true, note = '<small>(1952)</small>', },
		     --[[1956–: GHA]]
		GIA  = { 'Japan',                               qid = 'Q17', note = '<small>(1956–1960)</small>', },
		GRB  = { 'Great Britain',                       qid = 'Q749109', note = '<small>(1956–1960)</small>', },
		GRE  = { 'Greece',                              qid = 'Q41', },
		GRN  = { 'Grenada',                             qid = 'Q769', },
		GUA  = { 'Guatemala',                           qid = 'Q774', },
		GUI  = { 'Guinea',                              qid = 'Q1006', },
		GUM  = { 'Guam',                                qid = 'Q16635', },
		GUY  = { 'Guyana',                              qid = 'Q734', },
			 --[[1948–1956: GUY0; 1960: GUA; 1964: GUI; 1968–: GUY]]
		GUY0 = { 'British Guiana',                      qid = 'Q918126', note = '<small>(1948–1964)</small>', },
		HAI  = { 'Haiti',                               qid = 'Q790', },
		HBR  = { 'British Honduras',                    qid = 'Q1643555', note = '<small>(1968–1972)</small>', },
		     --See BIZ for history of codes
		HKG  = { 'Hong Kong',                           qid = 'Q8646', },
			 --[[1952–1956: HKG; 1960–1968: HOK; 1972–: GUY]]
		HOK  = { 'Hong Kong',                           qid = 'Q8646', note = '<small>(1960–1968)</small>', },
		HOL  = { 'Netherlands',                         qid = 'Q55', the = true, note = '<small>(1968–1988)</small>', },
		HON  = { 'Honduras',                            qid = 'Q783', },
		HUN  = { 'Hungary',                             qid = 'Q28', },
			 --[[1896–1952: HUN; 1952 (Winter), 1960 (Summer): UNG; 1964–: HUN]]
		ICE  = { 'Iceland',                             qid = 'Q189', note = '<small>(1960–1964)</small>', },
		IHO  = { 'Dutch East Indies',                   qid = 'Q188161', the = true, note = '<small>(1934–1938)</small>', },
		INA  = { 'Indonesia',                           qid = 'Q252', },
		     --[[1952–1956: INA; 1960: INS; 1964–: INA]]
		IND  = { 'India',                               qid = 'Q668', },
			 --[[1900–2012: IND; 2014: IND+IOP; 2016–: IND]]
		INS  = { 'Indonesia',                           qid = 'Q252', note = '<small>(1960)</small>', },
		IOA  = { 'Independent Olympic Athletes',        qid = 'Q6587910', the = true, },
		     --See AHO, KUW, SSD and TLS for history of codes
		IOC  = { 'Athletes from Kuwait',                qid = 'Q2556665', the = true, },
		     --[[1968–2008: KUW; 2010–2011: IOC(KUW); 2012–2015: KUW; 2016–2017: IOA(KUW); 2018–: KUW]]
		IOP  = { 'Independent Olympic Participants',    qid = 'Q258438', the = true, note = '<small>(1992, 2014)</small>', },
		     --See IND, KOS, MKD, MNE, SRB for history of codes
		IPA  = { 'Individual Paralympic Athletes',      qid = 'Q2203138', the = true, note = '<small>(2000)</small>', },
		     --See TLS for history of codes
		IPA0 = { 'Individual Paralympic Athletes',      qid = 'Q26262661', the = true, note = '<small>(2016)</small>', },
		IPP  = { 'Independent Paralympic Participants', qid = 'Q6016952', the = true, note = '<small>(1992)</small>', },
			 --See KOS, MKD, MNE and SRB for history of codes
		IRA  = { 'Iran',                                qid = 'Q794', note = '<small>(1968)</small>', },
		IRI  = { 'Iran',                                qid = 'Q794', },
		     --[[1900–1952: IRI; 1956–1988: IRN (except 1968 Winter which uses IRA); 1992–: IRI]]
		IRK  = { 'Iraq',                                qid = 'Q796', note = '<small>(1960, 1968)</small>', },
		IRL  = { 'Ireland',                             qid = 'Q27', },
		IRN  = { 'Iran',                                qid = 'Q794', note = '<small>(1956–1988)</small>', },
		IRQ  = { 'Iraq',                                qid = 'Q796', },
		     --[[1948: IRQ, 1960: IRK, 1964: IRQ, 1968: IRK; 1980–: IRQ]]
		ISL  = { 'Iceland',                             qid = 'Q189', },
		     --[[1908–1956: ISL, 1960 (Winter), 1964 (Summer): ICE, 1968–: ISL]]
		ISR  = { 'Israel',                              qid = 'Q801', },
		ISV  = { 'United States Virgin Islands',
		         'US Virgin Islands',                   qid = 'Q11703', the = true, },
		ITA  = { 'Italy',                               qid = 'Q38', },
		IVB  = { 'British Virgin Islands',              qid = 'Q25305', the = true, },
		IVC  = { 'Ivory Coast',                         qid = 'Q1008', note = '<small>(1964)</small>', },
		JAM  = { 'Jamaica',                             qid = 'Q766', },
			 --[[1948–1956: JAM; 1960: part of BWI; 1964–: JAM]]
		JAP  = { 'Japan',                               qid = 'Q17', note = '<small>(1960)</small>', },
		JOR  = { 'Jordan',                              qid = 'Q810', },
		JPN  = { 'Japan',                               qid = 'Q17', },
			 --[[1912–1952: JPN; 1956 (Winter), 1960 (Summer): GIA; 1960 (Winter): JAP; 1964–: JPN]]
		JUG  = { 'Yugoslavia',                          qid = 'Q36704', note = '<small>(1956–1960, 1968)</small>', },
		KAZ  = { 'Kazakhstan',                          qid = 'Q232', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1994–: KAZ]]
		KEN  = { 'Kenya',                               qid = 'Q114', },
		KGZ  = { 'Kyrgyzstan',                          qid = 'Q813', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1994–: KGZ]]
		KHM  = { 'Khmer Republic',                      qid = 'Q1054184', the = true, note = '<small>(1972)</small>', },
			 --See CAM for history of codes
		KIR  = { 'Kiribati',                            qid = 'Q710', },
		KOR  = { 'South Korea',                         qid = 'Q884', },
		     --[[1912–1936: part of JPN; 1948–1952: KOR; 1956 (Winter), 1960 (Summer): COR; 1964: KOR; 1968–1972 (both Summer):COR; 1976–: KOR]]
		KOS  = { 'Kosovo',                              qid = 'Q1246', },
			 --[[1912: part of SRB; 1920–1992 (Winter): part of YUG; 1992 (Summer): IOP; 
			 1996–2006: SCG (some sports still use YUG); 2008–2014: part of SRB; 2016–: KOS]]
		KSA  = { 'Saudi Arabia',                        qid = 'Q851', },
			 --[[1972–1976: ARS; 1984: SAU; 1988–: KSA]]
		KUW  = { 'Kuwait',                              qid = 'Q817', },
		     --[[1968–2008: KUW; 2010–2011: IOC; 2012–2015: KUW; 2016–2017: IOA; 2018–: KUW]]
		LAO  = { 'Laos',                                qid = 'Q819', },
		LAT  = { 'Latvia',                              qid = 'Q211', },
			 --[[1900–1912: part of RU1; 1924–1936: LTU; 1952–1988: part of URS; 1992–: LAT]]
		LBA  = { 'Libya',                               qid = 'Q1016', },
			 --[[1964: LYA; 1968–: LBA]]
		LBN  = { 'Lebanon',                             qid = 'Q822', },
			 --[[1948–1956: LBN; 1960(Winter), 1964 (Summer): LEB; 1964–2016: LIB; 2018–: LBN]]
		LBR  = { 'Liberia',                             qid = 'Q1014', },
		LCA  = { 'Saint Lucia',                         qid = 'Q760', },
		LEB  = { 'Lebanon',                             qid = 'Q822', note = '<small>(1960–1964)</small>', },
		LES  = { 'Lesotho',                             qid = 'Q1013', },
		LIB  = { 'Lebanon',                             qid = 'Q822', note = '<small>(1964–2016)</small>', },
		LIC  = { 'Liechtenstein',                       qid = 'Q347', note = '<small>(1956, 1964–1968)</small>', },
		LIE  = { 'Liechtenstein',                       qid = 'Q347', },
			 --[[1936–1952: LIE; 1956 (Winter): LIC; 1960: LIE; 1964 (Summer), 1968 (Winter): LIC; 1972–: LIE]]
		LIT  = { 'Lithuania',                           qid = 'Q37', note = '<small>(1992)</small>', },
		LTU  = { 'Lithuania',                           qid = 'Q37', },
			 --[[1900–1912: part of RU1; 1924–1928: LTU; 1952–1988: part of URS; 1992 (Winter): LIT; 1994–: LTU]]
		LUX  = { 'Luxembourg',                          
		         'Grand Duchy of Luxembourg',           qid = 'Q32', },
		LYA  = { 'Libya',                               qid = 'Q1016', note = '<small>(1964)</small>', },
		MAC  = { 'Macau',                               qid = 'Q14773', },
		MAD  = { 'Madagascar',                          qid = 'Q1019', },
			 --[[1964: MAG; 1968–: MAD]]
		MAG  = { 'Madagascar',                          qid = 'Q1019', note = '<small>(1964)</small>', },
		MAL  = { 'Malaya',                          
		         'Malaysia',                            qid = 'Q1479726', note = '<small>(1960–1988)</small>', },
		MAR  = { 'Morocco',                             qid = 'Q1028', },
			 --[[1960: MAR; 1964: MRC; 1968–: MAR]]
		MAS  = { 'Malaysia',                            qid = 'Q833', },
		     --[[1956: MAL+NBO; 1960–1988: MAL; 1992–: MAS]]
		MAT  = { 'Malta',                               qid = 'Q233', note = '<small>(1960)</small>', },
		MAW  = { 'Malawi',                              qid = 'Q1020', },
		MDA  = { 'Moldova',                             qid = 'Q217', },
			 --[[1900–1912: part of RU1; 1924–1936: part of ROU; 1952–1988: part of URS; 1992: part of EUN; 1994: MLD; 1996–: MDA]]
		MDV  = { 'Maldives',                            qid = 'Q826', the = true, },
		MEX  = { 'Mexico',                              qid = 'Q96', },
		MGL  = { 'Mongolia',                            qid = 'Q711', },
			 --[[1964: MGL; 1968 (Winter): MON; 1972–: MGL]]
		MHL  = { 'Marshall Islands',                    qid = 'Q709', the = true, },
		MIX  = { 'Mixed-NOCs',
		         'Mixed-NOCs at the Youth Olympics',    qid = 'Q25316417', the = true, note = '<small>(2010–)</small>', },
		MKD  = { 'North Macedonia',
		         'Former Yugoslav Republic of Macedonia',
		                                                qid = 'Q221', },
		     --[[1920–1988: part of YUG; 1992: IOP; 1996–: MKD]]
		MLD  = { 'Moldova',                             qid = 'Q217', note = '<small>(1994)</small>', },
		MLI  = { 'Mali',                                qid = 'Q912', },
		MLT  = { 'Malta',                               qid = 'Q233', },
			 --[[1928–1948: MLT; 1960: MAT; 1968–: MLT]]
		MNE  = { 'Montenegro',                          qid = 'Q236', },
			 --[[1912: SRB; 1920–1992 (Winter): YUG; 1992 (Summer): IOP+IPP; 
			 1996–2006: SCG (some sports still use YUG); 2008–: MNE]]
		MON  = { 'Monaco',                              qid = 'Q235', },
		MOZ  = { 'Mozambique',                          qid = 'Q1029', },
		MRC  = { 'Morocco',                             qid = 'Q1028', note = '<small>(1964)</small>', },
		MRI  = { 'Mauritius',                           qid = 'Q1027', },
		MTN  = { 'Mauritania',                          qid = 'Q1025', },
		MYA  = { 'Myanmar',                             qid = 'Q836', },
		     --[[1896–1936: part of British Raj; 1948–1960: BIR; 1964: BUR; 1968–1988: BIR; 1992–: MYA]]
		NAM  = { 'Namibia',                             qid = 'Q1030', },
		NBO  = { 'North Borneo',                        qid = 'Q16933920', note = '<small>(1956)</small>', },
			 --See MAS for history of codes
		NCA  = { 'Nicaragua',                           qid = 'Q811', },
			 --[[1968: NIC; 1972–: NCA]]
		NED  = { 'Netherlands',                         qid = 'Q55', the = true, },
			 --[[1900–1952: NED; 1956 (Winter): OLA; 1960 (Winter): NET; 1960 (Summer): PBA; 1964 (Summer): NLD; 1968–1988: HOL; 1992–: NED]]
		NEP  = { 'Nepal',                               qid = 'Q837', },
		NET  = { 'Netherlands',                         qid = 'Q55', the = true, note = '<small>(1960)</small>', },
		NGA  = { 'Nigeria',                             qid = 'Q1033', note = '<small>(1964)</small>', },
		NGR  = { 'Nigeria',                             qid = 'Q1033', },
			 --[[1952–1952: NGR; 1960 (Summer): NIG; 1964: NGA; 1968–: NGR]]
		NGU  = { 'Papua New Guinea',                    qid = 'Q691', note = '<small>(1984–1988)</small>', },
		NGY  = { 'Papua New Guinea',                    qid = 'Q691', note = '<small>(1976)</small>', },
		NIC  = { 'Nicaragua',                           qid = 'Q811', note = '<small>(1968)</small>', },
		NIG  = { 'Niger',                               qid = 'Q1032', the = true, },
			 --[[1964: NGR; 1968–: NIG]]
		NLD  = { 'Netherlands',                         qid = 'Q55', the = true, note = '<small>(1964)</small>', },
		NOR  = { 'Norway',                              qid = 'Q20', },
		NPA  = { 'Neutral Paralympic Athletes',         qid = 'Q47544962', the = true, note = '<small>(2018)</small>', },
		     --See RUS for history of codes
		NRH  = { 'Northern Rhodesia',                   qid = 'Q953903', note = '<small>(1964)</small>', },
		     --See ZAM for history of codes
		NRU  = { 'Nauru',                               qid = 'Q697', },
		NZE  = { 'New Zealand',                         qid = 'Q664', note = '<small>(1960, 1968)</small>', },
		NZL  = { 'New Zealand',                         qid = 'Q664', },
			 --[[1908–1912: part of ANZ; 1920–1956: NZL; 1960: NZE; 1964: NZL; 1964 (Winter): NZE; 1968–: NZL]]
		OAR  = { 'Olympic Athletes from Russia',        qid = 'Q28155263', the = true, note = '<small>(2018)</small>', },
		     --See RUS for history of codes
		OLA  = { 'Netherlands',                         qid = 'Q55', the = true, note = '<small>(1956)</small>', },
		OMA  = { 'Oman',                                qid = 'Q842', },
		PAK  = { 'Pakistan',                            qid = 'Q843', },
		PAN  = { 'Panama',                              qid = 'Q804', },
		PAR  = { 'Paraguay',                            qid = 'Q733', },
		PBA  = { 'Netherlands',                         qid = 'Q55', the = true, note = '<small>(1960)</small>', },
		PER  = { 'Peru',                                qid = 'Q419', },
		PHI  = { 'Philippines',                         qid = 'Q928', the = true, },
			 --[[1897–1920: part of ESP+USA; 1924–1956: PHI; 1960: FIL; 1964: PHI; 1968: FIL; 1972–: PHI]]
		PLE  = { 'Palestine',                           qid = 'Q219060', },
		PLW  = { 'Palau',                               qid = 'Q695', },
		PNG  = { 'Papua New Guinea',                    qid = 'Q691', },
			 --[[1976: NGY; 1984–1988: NGU; 1992–: PNG]]
		POL  = { 'Poland',                              qid = 'Q36', },
		POR  = { 'Portugal',                            qid = 'Q45', },
		PRC  = { "People's Republic of China",          qid = 'Q148', the = true, note = '<small>(1952)</small>', },
		PRI  = { 'Puerto Rico',                         qid = 'Q1183', note = '<small>(1960)</small>', },
		PRK  = { 'North Korea',                         qid = 'Q423', },
		     --[[1932–1936: part of JPN; 1964–: PRK]]
		PRO  = { 'Puerto Rico',                         qid = 'Q1183', note = '<small>(1968)</small>', },
		PUR  = { 'Puerto Rico',                         qid = 'Q1183', },
			 --[[1948–1956: PUR; 1960: PRI; 1964: PUR; 1968: PRO; 1972–: PUR]]
		QAT  = { 'Qatar',                               qid = 'Q846', },
		RAU  = { 'United Arab Republic',                qid = 'Q170468', the = true, note = '<small>(1960, 1968)</small>', },
		     --See EGY and SYR for history of codes
		RCF  = { 'Republic of China',
		         'Formosa',                             qid = 'Q10942619', note = '<small>(1956–1960)</small>', },
		RHO  = { 'Rhodesia',                            qid = 'Q217169', note = '<small>(1960–1972)</small>', },
		     --See ZAM and ZIM for history of codes
		ROC  = { 'Russian Olympic Committee',           qid = 'Q783625', the = true, note = '<small>(2020–2022)</small>', },
		ROC1 = { 'Republic of China',                   qid = 'Q10942619', the = true, note = '<small>(1972–1976)</small>', },--code changed here with extra digit to avoid confusion
		     --See TPE for history of codes
		ROM  = { 'Romania',                             qid = 'Q218', note = '<small>(1956–1960, 1972–2006)</small>', },
		ROT  = { 'Refugee Olympic Team',                qid = 'Q23310046', the = true, note = '<small>(2016)</small>', },
		     --See EOR for history of codes
		ROU  = { 'Romania',                             qid = 'Q218', },
			 --[[1900–1952: ROU; 1956–1960: ROM; 1964–1968: RUM; 1972–2006: ROM; 2008–: ROU]]
		RPC  = { 'Russian Paralympic Committee',        qid = 'Q4344898', the = true, note = '<small>(2020)</small>', },
		RPT  = { 'Refugee Paralympic Team',             qid = 'Q107723429', the = true, note = '<small>(2021–)</small>', },
		RSA  = { 'South Africa',                        qid = 'Q258', },
			 --[[1904–1956: RSA; 1960: SAF; 1992–: RSA]]
		RU1  = { 'Russian Empire',                      qid = 'Q34266', the = true, note = '<small>(1900–1912)</small>', },
		     --See ARM, AZE, BLR, EST, GEO, KAZ, KGZ, LAT, LTU, MDA, RUS, TJK, TKM, UKR and UZB for history of codes
		RUM  = { 'Romania',                             qid = 'Q218', note = '<small>(1964–1968)</small>', },
		RUS  = { 'Russia',                              qid = 'Q159', note = '<small>(1994–2016)</small>', },
		     --[[1900–1912: RU1; 1952–1988: URS; 1992: EUN; 1994–2016: RUS; 2018: OAR (Olympic)/NPA (Paralympic);
		         2020: ROC (Olympic)/RPC (Paralympic); 2022: ROC; 2024–: part of AIN]]
		     --Completely banned in 2016 and 2022 Paralympic
		RWA  = { 'Rwanda',                              qid = 'Q1037', },
		SAA  = { 'Saar Protectorate',                   
		         'Saar',                                qid = 'Q310293', the = true, note = '<small>(1952)</small>', },
		     --See GER for history of codes
		SAF  = { 'South Africa',                        qid = 'Q258', note = '<small>(1960)</small>', },
		SAL  = { 'El Salvador',                         qid = 'Q792', note = '<small>(1968–1972)</small>', },
		SAM  = { 'Samoa',                               qid = 'Q683', },
			 --[[1984–1996: WSM; 2000–: SAM]]
		SAU  = { 'Saudi Arabia',                        qid = 'Q851', note = '<small>(1984)</small>' },
		SCG  = { 'Serbia and Montenegro',               qid = 'Q37024', note = '<small>(2004)</small>', },
		     --[[1912: SER; 1920–1992W: YUG; 1992S–1994W: IOP; 1996–2002: YUG; 2004: SCG; 2008: SER+MNE; 2016–: SER+MNE+KSV]]
		SEN  = { 'Senegal',                             qid = 'Q1041', },
			 --[[1964: SGL; 1968–: SEN]]
		SEY  = { 'Seychelles',                          qid = 'Q1042', the = true, },
		SGL  = { 'Senegal',                             qid = 'Q1041', note = '<small>(1964)</small>', },
		SGP  = { 'Singapore',                           qid = 'Q334', },
			 --[[1948–1956: SGP; 1960–2016: SIN; 2018–: SGP]]
		SIN  = { 'Singapore',                           qid = 'Q334', note = '<small>(1960–2016)</small>', },
		SIR  = { 'Syria',                               qid = 'Q858', note = '<small>(1968)</small>', },
		SKN  = { 'Saint Kitts and Nevis',               qid = 'Q763', },
		SLA  = { 'Sierra Leone',                        qid = 'Q1044', note = '<small>(1968)</small>', },
		SLE  = { 'Sierra Leone',                        qid = 'Q1044', },
			 --[[1968: SLA; 1980–: SLE]]
		SLO  = { 'Slovenia',                            qid = 'Q215', },
			 --[[1912: part of AUT; 1920–1988: part of YUG; 1992–: SLO]]
		SMA  = { 'San Marino',                          qid = 'Q238', note = '<small>(1960)</small>', },
		SMR  = { 'San Marino',                          qid = 'Q238', },
			 --[[1960: SMA; 1968–: SMR]]
		SOL  = { 'Solomon Islands',                     qid = 'Q685', the = true, },
		SOM  = { 'Somalia',                             qid = 'Q1045', },
		SOV  = { 'Soviet Union',                        qid = 'Q15180', the = true, note = '<small>(1968)</small>', },
		SPA  = { 'Spain',                               qid = 'Q29', note = '<small>(1956–1968)</small>', },
		SRB  = { 'Serbia',                              qid = 'Q403', },
			 --[[1912: SRB; 1920–1992 (Winter): YUG; 1992 (Summer): IOP+IPP; 
			 1996–2006: SCG (some sports still use YUG); 2008–: SRB]]
		SRI  = { 'Sri Lanka',                           qid = 'Q854', },
		     --[[1948–1964: CEY; 1968 (Summer): CEI; 1972: CEY; 1980–: SRI]]
		SSD  = { 'South Sudan',                         qid = 'Q958', },
		     --[[1960–2008: SUD; 2012: IOA; 2016–: SSD]]
		STP  = { 'São Tomé and Príncipe',               qid = 'Q1039', },
		SUA  = { 'United States',                       qid = 'Q30', the = true, note = '<small>(1960)</small>', },
		SUD  = { 'Sudan',                               qid = 'Q1049', },
		SUE  = { 'Sweden',                              qid = 'Q34', note = '<small>(1968)</small>', },
		SUI  = { 'Switzerland',                         qid = 'Q39', },
			 --[[1896–1952: SUI; 1956 (Winter), 1960 (Summer): SVI; 1960 (Winter), 1964 (Summer): SWI; 1968–: SUI]]
		SUR  = { 'Suriname',                            qid = 'Q730', },
		SVE  = { 'Sweden',                              qid = 'Q34', note = '<small>(1956, 1960)</small>', },
		SVI  = { 'Switzerland',                         qid = 'Q39', note = '<small>(1956, 1960)</small>', },
		SVK  = { 'Slovakia',                            qid = 'Q214', },
		     --[[1918–1952: TCH; 1956: CSL; 1960S: CZE; 1960W: CSV; 1964S: CZS; 1968S: CHE; 1972–1994: TCH; 1996–: SVK]]
		SWE  = { 'Sweden',                              qid = 'Q34', },
			 --[[1896–1952: SWE; 1956 (Winter), 1960 (Summer): SVE; 1964: SWE; 1968 (Summer): SUE; 1972–: SWE]]
		SWI  = { 'Switzerland',                         qid = 'Q39', note = '<small>(1960, 1964)</small>', },
		SWZ  = { 'Eswatini',                            
		         'Swaziland',                           qid = 'Q1050', },
		SYR  = { 'Syria',                               qid = 'Q858', },
			 --[[1948: SYR; 1960: part of RAU; 1968: SIR; 1972–: SYR]]
		TAN  = { 'Tanzania',                            qid = 'Q924', },
		TCH  = { 'Czechoslovakia',                      qid = 'Q33946', note = '<small>(1920–1992)</small>', },
		     --See CZE and SVK for history of codes
		TGA  = { 'Tonga',                               qid = 'Q678', },
			 --[[1984: TON; 1988–: TGA]]
		THA  = { 'Thailand',                            qid = 'Q869', },
		TJK  = { 'Tajikistan',                          qid = 'Q863', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1996–: TJK]]
		TKM  = { 'Turkmenistan',                        qid = 'Q874', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1996–: TKM]]
		TLS  = { 'East Timor',                          qid = 'Q574', },
		      --[[1976–1996: INA; 2000: IOA+IPA; 2004–: TLS]]
		TOG  = { 'Togo',                                qid = 'Q945', },
		TON  = { 'Tonga',                               qid = 'Q678', note = '<small>(1984)</small>', },
		TPE  = { 'Chinese Taipei',                      qid = 'Q216923', },
		     --[[1932–1936: part of JPN; 1948: part of "China"; 1956–1960: RCF; 1964–1968: TWN;
		     1972–1976: ROC; 1984–: TPE]]
		TRI  = { 'Trinidad and Tobago',                 qid = 'Q754', note = '<small>(1972–2012)</small>', },
		TRT  = { 'Trinidad and Tobago',                 qid = 'Q754', note = '<small>(1964–1968)</small>', },
		TTO  = { 'Trinidad and Tobago',                 qid = 'Q754', },
			 --[[1948–1956: TTO; 1960: part of BWI; 1964–1968: TRT; 1972–2012: TRI; 2016–: TTO]]
		TUN  = { 'Tunisia',                             qid = 'Q948', },
		TUR  = { 'Turkey',                              qid = 'Q43', },
		TUV  = { 'Tuvalu',                              qid = 'Q672', },
		TWN  = { 'Taiwan',                              qid = 'Q865', note = '<small>(1964–1968)</small>', },
		UAE  = { 'United Arab Emirates',                qid = 'Q878', the = true, },
		UAR  = { 'United Arab Republic',                qid = 'Q170468', the = true, note = '<small>(1964)</small>', },
		     --See EGY for history of codes
		UGA  = { 'Uganda',                              qid = 'Q1036', },
		UKR  = { 'Ukraine',                             qid = 'Q212', },
			 --[[1896–1912: AUT+HUN+RU1; 1920: part of TCH; 1924–1936: POL+ROM+TCH; 1952–1988: part of URS
			 1992: part of EUN; 1994–: UKR]]
		UNG  = { 'Hungary',                             qid = 'Q28', note = '<small>(1956)</small>', },
		URG  = { 'Uruguay',                             qid = 'Q77', note = '<small>(1968)</small>', },
		URS  = { 'Soviet Union',                        qid = 'Q15180', the = true, note = '<small>(1952–1964, 1972–1988)</small>', },
		     --See ARM, AZE, BLR, EST, GEO, KAZ, KGZ, LAT, LTU, MDA, RUS, TJK, TKM, UKR and UZB for history of codes
			 --[[1952–1964: URS; 1968 (Winter): SOV; 1972–1988: URS]]
		URU  = { 'Uruguay',                             qid = 'Q77', },
			 --[[1924–1964: URU; 1968: URG; 1972–: URU]]
		USA  = { 'United States',                       qid = 'Q30', the = true, },
			 --[[1896–1956: USA; 1960 (Summer): SUA; 1964: USA; 1968 (Summer): EUA; 1972–: USA]]
		UZB  = { 'Uzbekistan',                          qid = 'Q265', },
			 --[[1900–1912: part of RU1; 1952–1988: part of URS; 1992: part of EUN; 1994–: UZB]]
		VAN  = { 'Vanuatu',                             qid = 'Q686', },
		VEN  = { 'Venezuela',                           qid = 'Q717', },
		VET  = { 'Republic of Vietnam',
			     'South Vietnam',                       qid = 'Q180573', note = '<small>(1964)</small>', },
		VIE  = { 'Vietnam',                             qid = 'Q881', },
			 --[[1952–1960: VNM; 1964: VET; 1968–1972: VNM; 1980–: VIE]]
		VIN  = { 'Saint Vincent and the Grenadines',    qid = 'Q757', },
		VNM  = { 'Republic of Vietnam',
			     'South Vietnam',                       qid = 'Q180573', note = '<small>(1952–1960, 1968–1972)</small>', },
		VOL  = { 'Upper Volta',                         qid = 'Q797422', the = true, note = '<small>(1972)</small>', },
			 --See BUR for history of codes
		WSM  = { 'Western Samoa',                       qid = 'Q683', note = '<small>(1984–1996)</small>', },
		YAR  = { 'North Yemen',                         qid = 'Q267584', note = '<small>(1984–1988)</small>', },
		YEM  = { 'Yemen',                               qid = 'Q805', },
			 --[[1984: YAR; 1988: YAR+YMD; 1992–: YEM]]
		YMD  = { 'South Yemen',                         qid = 'Q199841', note = '<small>(1988)</small>', },
		YUG  = { 'Yugoslavia',                          qid = 'Q36704', note = '<small>(1920–1952, 1964, 1972–1992)</small>', },
		     --See BIH, CRO, KOS, MKD, MNE, SLO and SRB for history of codes
		     --[[1920–1952: YUG; 1956–1960: JUG; 1964: YUG; 1968 (Winter): JUG; 1972–1992: YUG]]
		ZAI  = { 'Zaire',                               qid = 'Q6500954', note = '<small>(1984–1996)</small>', },
		     --See COD for history of codes
		ZAM  = { 'Zambia',                              qid = 'Q953', },
			 --[[1960: part of RHO; 1964: NRH; 1968–: ZAM]]
		ZIM  = { 'Zimbabwe',                            qid = 'Q954', },
			 --[[1928: ZIM; 1960–1964: RHO; 1968–: ZIM]]
		ZZX  = { 'Mixed teams',                         
		         'Mixed teams at the Olympics',         qid = 'Q460039', the = true, note = '<small>(1896–1906)</small>', },
	},
}