Template talk:Infobox country

Change "Calling code" to "Telephone country code"

[edit]

This template has a parameter calling_code, which for unknown reasons disregards all standards that name this the "country code", per ITU nomenclature. But country code might be ambiguous, so change its label to telephone country code. kbrose (talk)

Darkmode Issue

[edit]

In the template "Infobox geopolitical organization", the "background:transparent" in the "titlestyle" makes the text invisible for users in dark mode.

I have a few examples:

Steps to reproduce:

  1. In the Appearance tab, enable "Dark" in the Color section.
  1. Go to Template:Infobox country#Examples and open "Geopolitical organization".
  1. The text will be invisible in dark mode, but works correctly in light mode.

85.218.213.213 (talk) 12:09, 29 August 2025 (UTC)[reply]

This is not an issue with this template; the style "background:transparent" should never be used, as it breaks in dark mode. The fix is to remove it wherever you find it, as you did. – Jonesey95 (talk) 13:45, 31 August 2025 (UTC)[reply]
It's in the examples. I'm not sure why it's there, but it should be removed 85.218.213.213 (talk) 12:31, 2 September 2025 (UTC)[reply]

ISO 3166-1 script warnings

[edit]

This seems to be an issue for some former countries. See for example:

  • Kingdom of Sardinia: Script warning: UNIQ ("?'"`UNIQ") is not a recognized country in ISO 3166-1 (Module:ISO 3166).
  • Savoyard state: Script warning: SAVOY ("Savoy") is not a recognized country in ISO 3166-1 (Module:ISO 3166).

Mellk (talk) 14:36, 21 September 2025 (UTC)[reply]

This might also be relevant: Template talk:Infobox officeholder#ISO 3166-1 related error. Mellk (talk) 17:15, 21 September 2025 (UTC)[reply]

Caption for image_flag2

[edit]

Can we get this modified to display separate captions for |image_flag= & |image_flag2=? Taken from Sultanate of Bacan

Infobox country
Flag of Infobox country
Under dutch protectorate in 1609
{{Infobox country
| image_flag             = Ayyubid Flag.png
| flag_type              = Under dutch protectorate in 1609
| image_flag2            = Bendera Sultan Bacan.svg
| flag2_type             = After becoming Dutch protectorate in 1609
}}

Note how |flag_type= displays as the caption for both flags while |flag_type2= is not a valid parameter at all. –Zackmann (Talk to me/What I been doing) 05:12, 22 September 2025 (UTC)[reply]

I managed to cheat it with {{multiple images}}… —Zackmann (Talk to me/What I been doing) 09:39, 22 September 2025 (UTC)[reply]

We should add armies etc. to infoboxes

[edit]

Army, navy, police, etc. Lowersilesian (talk) 12:51, 29 September 2025 (UTC)[reply]

These are likely not due infobox weight, they may not even appear in article bodies. CMD (talk) 14:31, 29 September 2025 (UTC)[reply]
I agree with Chipmunkdavis. Way too much going on in this infobox already, last thing we need is more. Zackmann (Talk to me/What I been doing) 18:55, 29 September 2025 (UTC)[reply]

Is the default map size really 250px?

[edit]
Resolved

Moxy🍁 15:34, 6 October 2025 (UTC)[reply]

Because it clearly isn't. The documentation says that the default map size is (supposed to be) 250px, but, if anything, it's probably in the 300s and needs to be fixed. Adding a map to this infobox just makes the thing fat and pushes text around 𐩣𐩫𐩧𐩨 Abo Yemen (𓃵) 13:45, 6 October 2025 (UTC)[reply]

This is an effect of the default image size of the entire en.wiki increasing from 220px to 250px. The code currently expands the map through |upright=1.15, which at the base 220px brought the map to about 250px. Now that the base is 250px, I suppose simply removing the upright code would bring the map back down to 250px. CMD (talk) 14:18, 6 October 2025 (UTC)[reply]
Ok.....dont want to edit till coding change is sure ......what needs to change? Moxy🍁 15:05, 6 October 2025 (UTC)[reply]
@Moxy all "|upright=1.15"s need to be removed 𐩣𐩫𐩧𐩨 Abo Yemen (𓃵) 15:12, 6 October 2025 (UTC)[reply]
X3? lets make sure this is correct Moxy🍁 15:20, 6 October 2025 (UTC)[reply]
Yep, it worked. Thank you! 𐩣𐩫𐩧𐩨 Abo Yemen (𓃵) 15:29, 6 October 2025 (UTC)[reply]