Jump to content

Module talk:ISO 3166/data/National: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 6: Line 6:
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 <code>{{mli|ISO 3166}}</code> 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. [[User:MB|<b style="color:#034503">MB</b>]] 21:03, 26 July 2022 (UTC)
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 <code>{{mli|ISO 3166}}</code> 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. [[User:MB|<b style="color:#034503">MB</b>]] 21:03, 26 July 2022 (UTC)
:{{done}}. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I.&nbsp;Ellsworth</span>]]'''''&thinsp;,&nbsp;[[Editor|<span style="color:black">ed.</span>]]&nbsp;[[User talk:Paine Ellsworth|<sup>put'r&nbsp;there</sup>]]&nbsp;<small>05:08, 28 July 2022 (UTC)</small>
:{{done}}. '''''[[User:Paine Ellsworth|<span style="font-size:92%;color:darkblue;font-family:Segoe Script">P.I.&nbsp;Ellsworth</span>]]'''''&thinsp;,&nbsp;[[Editor|<span style="color:black">ed.</span>]]&nbsp;[[User talk:Paine Ellsworth|<sup>put'r&nbsp;there</sup>]]&nbsp;<small>05:08, 28 July 2022 (UTC)</small>

== Template-protected edit request on 11 February 2024 ==

{{edit template-protected|Module:ISO 3166/data/National|answered=no}}
<pre>
["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
</pre>

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 <code><nowiki>{{#if:{{ISO 3166 code-3|{{{common_name}}}|nocat=true}}</nowiki></code> (from [[Template:Infobox country]]) for generating valid values. Here would be the suggested edit:

<pre>
["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
</pre>

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

Revision as of 10:03, 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]