Module talk:ISO 3166/data/National

This is an old revision of this page, as edited by PonPonTheDreambunny (talk | contribs) at 10:03, 11 February 2024 (Template-protected edit request on 11 February 2024: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 1 year ago by Pon Pon the bon bon in topic Template-protected edit request on 11 February 2024

Edit request - add "U.S." as an alternate for United States

U.S. is a commonly used abbreviation (explicitly listed as acceptable in MOS:ABBREVIATIONS. But "U.S." is not included as an alternate here (altnames={"US","USA"}). This causes articles to be added to Category:Wikipedia page with obscure country if "U.S." is used in infoboxes that perform a check with {{#invoke:ISO 3166|function}} while "U.S." is OK in other infoboxes that do not perform this check. Please add "U.S." the the list of altnames on line 239. MB 21:03, 26 July 2022 (UTC)Reply

  Done. P.I. Ellsworth , ed. put'r there 05:08, 28 July 2022 (UTC)Reply

Template-protected edit request on 11 February 2024

	 ["GB-ENG"] = {alpha3="ENG",numeric="000",name="England"}, --Considered to be a country
	 ["GB-NIR"] = {alpha3="NIR",numeric="000",name="Northern Ireland"}, --Considered to be a country
	 ["GB-SCT"] = {alpha3="SCT",numeric="000",name="Scotland"}, --Considered to be a country
	 ["GB-WLS"] = {alpha3="WLS",numeric="000",name="Wales"}, --Considered to be a country
	 ["GB-EAW"] = {alpha3="EAW",numeric="000",name="England and Wales"}, --Considered to be a country

Subnational regions of United Kingdom are listed with alpha3-codes, when they do not have alpha3-codes. There is therefore no easy way to exclude these regions when automatically fetching valid alpha3-codes. There are also no reserved numerical codes. It is perhaps better to leave these values blank, so it's easier to run a code such as {{#if:{{ISO 3166 code-3|{{{common_name}}}|nocat=true}} (from Template:Infobox country) for generating valid values. Here would be the suggested edit:

	 ["GB-ENG"] = {alpha3="",numeric="",name="England"}, --Considered to be a country
	 ["GB-NIR"] = {alpha3="",numeric="",name="Northern Ireland"}, --Considered to be a country
	 ["GB-SCT"] = {alpha3="",numeric="",name="Scotland"}, --Considered to be a country
	 ["GB-WLS"] = {alpha3="",numeric="",name="Wales"}, --Considered to be a country
	 ["GB-EAW"] = {alpha3="",numeric="",name="England and Wales"}, --Considered to be a country

Alternatively removing these entries completely since these entries are already accessible through the same means as for subnational entities of other countries: {{ISO 3166 code|GB|England}} = GB-ENG Pon Pon the bon bon (talk) 10:03, 11 February 2024 (UTC)Reply