Content deleted Content added
→Unexpected error in infobox: new section |
|||
(11 intermediate revisions by 3 users not shown) | |||
Line 219:
Looks like Kosovo (XK) is missing? [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 23:40, 24 August 2020 (UTC)
:Still missing — [[User:GhostInTheMachine|GhostInTheMachine]] <sup>[[User talk:GhostInTheMachine|talk to me]]</sup> 11:06, 5 February 2025 (UTC)
::@[[User:GhostInTheMachine|GhostInTheMachine]], [[User:Le Deluge|Le Deluge]]: XK is not actually in ISO 3166. There would need to be some consensus here before adding it (although it has been mentioned a few times over the years). <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 18:02, 5 February 2025 (UTC)
:::I know, but this module is used in a number of contexts where the absence of XK does cause problems — [[User:GhostInTheMachine|GhostInTheMachine]] <sup>[[User talk:GhostInTheMachine|talk to me]]</sup> 18:07, 5 February 2025 (UTC)
::::@[[User:GhostInTheMachine|GhostInTheMachine]] I went ahead and added it, we'll see if anyone complains. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 18:48, 5 February 2025 (UTC)
:::::{{kitty}} Did they also define any subdivision codes? — [[User:GhostInTheMachine|GhostInTheMachine]] <sup>[[User talk:GhostInTheMachine|talk to me]]</sup> 18:53, 5 February 2025 (UTC)
::::::@[[User:GhostInTheMachine|GhostInTheMachine]] I'm not aware of any standardized ones. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 19:38, 5 February 2025 (UTC)
:::::::Thanks. I could not find any either. At least the error messages have changed — [[User:GhostInTheMachine|GhostInTheMachine]] <sup>[[User talk:GhostInTheMachine|talk to me]]</sup> 20:26, 5 February 2025 (UTC)
== substitutable? ==
Line 263 ⟶ 270:
:All the [[Module_talk:ISO_3166/testcases|testcases]] seem to show improvement. Also pinging {{u|Frietjes}}, since he's the last to edit the module. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 17:48, 16 August 2024 (UTC)
::<code><nowiki>{{ISO 3166 code-3|Guinea-Bissau}}</nowiki></code> still returns nothing. I think the sandbox code may still need to be moved to the live module. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 01:04, 5 February 2025 (UTC)
:::@[[User:Jonesey95|Jonesey95]] {{done}} <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 18:07, 5 February 2025 (UTC)
== Kosovo still missing ==
Line 278 ⟶ 286:
<syntaxhighlight lang=wikitext inline>{{ISO 3166 code|{{{country|{{#property:P17}}}}}}}</syntaxhighlight> is code used in {{tl|Infobox station}}. At [[Qiziwan railway station]], <code>#property:P17</code> pulls "People's Republic of China" from property 17 for that article's Wikidata item, but the ISO template returns nothing. This appears to cause the article to be placed in {{cl|Wikipedia page with obscure country}} unnecessarily.
[[Module:ISO 3166/data/National]] contains "People's Republic of China" as one of China's <code>altnames</code>. <syntaxhighlight lang=wikitext inline>{{ISO 3166 code|Ivory Coast}}</syntaxhighlight> correctly returns "CI", apparently using an altname from that same module subpage. I haven't been able to figure out where this process is failing for "People's Republic of China". Any ideas? – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 01:09, 5 February 2025 (UTC)
:I think I figured out one thing. The property call to Wikidata is returning "<syntaxhighlight lang=wikitext inline>People's Republic of China</syntaxhighlight>", using an HTML entity for the apostrophe. Now I don't know where to ask about troubleshooting that problem. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 01:15, 5 February 2025 (UTC)
::@[[User:Jonesey95|Jonesey95]] {{fixed}} [[Special:Diff/1274160458|here]]. <span class="nowrap">--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<b style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</b>]])</span> 19:33, 5 February 2025 (UTC)
:::Wonderful. Thanks for figuring out where and how to fix it. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:45, 5 February 2025 (UTC)
== Unexpected error in infobox ==
Please see description of a bug, at [[Template talk:Infobox officeholder#ISO 3166-1 related error]]. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 11:42, 19 August 2025 (UTC)
|