Content deleted Content added
XK tricky |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 39:
:::::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)
|