Content deleted Content added
XK tricky |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 9:
== Template-protected edit request on 11 February 2024 ==
{{edit template-protected|Module:ISO 3166/data/National|answered=
<pre>
["GB-ENG"] = {alpha3="ENG",numeric="000",name="England"}, --Considered to be a country
Line 34:
::There is also the other way around, where England can be found using "ENG" and would break if this module is changed in this way. However, ENG could be added as an alias for England instead, so it doesn't break these cases. While ENG isn't a reserved code and could be used by any future country or dependency, the same can be said about other aliases such as UAE, CAR, which are also aliases.
::Is it possible in some way to find all pages outputting alpha3 and numeric for these five? [[User:Pon Pon the bon bon|Pon Pon the bon bon]] ([[User talk:Pon Pon the bon bon|talk]]) 12:11, 14 February 2024 (UTC)
:::@[[User:Pon Pon the bon bon|Pon Pon the bon bon]] I don't completely understand what you have written, but this request has stood for some time without opposition, so I have removed those lines from the template. Please check that nothing is broken — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:11, 20 February 2024 (UTC)
::::@[[User:MSGJ|MSGJ]] So far I've only seen that the ISO 3166 disappared from [[England]] and the others, but this was easily resolved by modifying [[Template:Infobox UK country]] to display the ISO 3166-2 code again. Aside from this, I've not been able to find any other page breaking.
::::I'm sorry for my previous mess of a message. [[User:Pon Pon the bon bon|Pon Pon the bon bon]] ([[User talk:Pon Pon the bon bon|talk]]) 23:28, 20 February 2024 (UTC)
:::::This change seems to have thrown up a massive problem at [[:Category:Infobox road instances in]] being populated by entries that should instead be in [[:Category:Infobox road instances without ___location]]. It's not clear just where the problem lies but any suggestions on how to fix it? [[User:Timrollpickering|Timrollpickering]] ([[User talk:Timrollpickering|talk]]) 13:48, 24 February 2024 (UTC)
::::::I have reverted my change pending further investigation. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:55, 24 February 2024 (UTC)
::::::@[[User:Timrollpickering|Timrollpickering]] @[[User:MSGJ|MSGJ]] Which entries was it populated by? That would help narrow the issue down. It was likely related to the UK. Looking at for example [[A1000 road]], it has the code <code>|country=ENG</code>, specifying England and not UK. Therefore when England was removed, it broke this.
::::::I instead suggest keeping the entries, but including aliases instead, writing the following:
<pre>
["GB-ENG"] = {alpha3="",numeric="",name="England",altnames={"ENG"}}, --Considered to be a country
["GB-NIR"] = {alpha3="",numeric="",name="Northern Ireland",altnames={"NIR"}}, --Considered to be a country
["GB-SCT"] = {alpha3="",numeric="",name="Scotland",altnames={"SCT"}}, --Considered to be a country
["GB-WLS"] = {alpha3="",numeric="",name="Wales",altnames={"WLS"}}, --Considered to be a country
["GB-EAW"] = {alpha3="",numeric="",name="England and Wales",altnames={"EAW"}}, --Considered to be a country
</pre>
::::::This way, <code><nowiki>{{ISO 3166 code-3|England}}</nowiki></code> would result in no output the same way <code><nowiki>{{ISO 3166 code-3|No place}}</nowiki></code> does, but it will still be valid to write <code><nowiki>{{ISO 3166 name|ENG}}</nowiki></code> like it is to write <code><nowiki>{{ISO 3166 name|UAE}}</nowiki></code>. This will no longer break [[Template:Infobox road]], hypothetically. [[User:Pon Pon the bon bon|Pon Pon the bon bon]] ([[User talk:Pon Pon the bon bon|talk]]) 07:44, 1 March 2024 (UTC)
== XK ==
XK for [[Kosovo]] is a unilateral "user assigned code" and not an ISO 3166 standard country code, but it should probably be added to support uses of the module — [[User:GhostInTheMachine|GhostInTheMachine]] <sup>[[User talk:GhostInTheMachine|talk to me]]</sup> 11:32, 5 February 2025 (UTC)
|