Loading AI tools
This template was considered for deletion on 19 July 2024. The result of the discussion was "keep". |
This is the talk page for discussing improvements to the Infobox country template. |
|
Archives: Index, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Auto-archiving period: 90 days |
Template:Infobox country is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||
|
I am proposing to add greenhouse gas (GHG) emissions to the country infobox.
GHGs include any gases which contribute to climate change. Different gases affect our climate in different ways, the most impactful GHGs being carbon dioxide and methane. Although different gases contribute differently, conversion factors known as global warming potential can be used to sum their contributions, and express the total in carbon dioxide equivalent (CO2e). This allows for an objective measure of countries' contributions to climate change.
Our World in Data provides a complete list of national emissions in CO2e here
I believe readers would value this information in the infobox, given the increasing impact of climate, international agreements (most importantly the Paris Agreement), and the geopolitical significance of GHG emissions.
I am interested to know what you think. 20WattSphere (talk) 01:12, 24 March 2024 (UTC)
I am strongly in favour of including CO₂ emmissions since Climate Change is probably the most critical risk issue facing not only mankind, but also the entire planetary ecosystem. We are already at the threshold of +1.5°C warming - beyond which the planet is at risk of crossing one, or more, "tipping points" which risk pushing the climatic system into uncharted territory, with the potential to lead to profound global climatic sytem shifts. For example:
References[1][2]
In short, climate change presents an existential risk to life on Earth, with the potential to render economics as we know it largely irrelevant. As such, it would be irresponsible not to include CO₂ emmissions in Template:Infobox_country. To omit climate change indicators only plays into the narrative of denialists.
Besides, we can't control what we don't measure. While there is, to some degree If Wikipedia took a lead in condensing the disparate sources of data into, maybe the following:
This would really help to ensure that these key indicators are being measured and tracked.
There are, actually a number of sources for reliable data, including:
Enquire (talk) 22:08, 28 May 2024 (UTC)
References
I made a proposal to include greenhouse gas emissions in the infobox (see thread above). Users were not convinced, and I'm happy to accept that.
Instead, I'd like to suggest CO2 emissions per capita. I think this is preferable because it is adjusted for population size, making it more relevant to understanding a country's economy. Using CO2 only is also more clear and understandable than GHGs.
By way of explanation, I think it would be valued by:
If Wikipedians like the idea but disagree with the particular metric, I think the above readers would also be very interested in carbon intensity, which is total kilograms of CO2 emissions per dollar of GDP (link)
Keen to hear your thoughts. 20WattSphere (talk) 08:33, 11 April 2024 (UTC)
Can the parameters for |sovereignty_type=
and |sovereignty_note=
be expanded so that multiple ones can be added to a certain country's infobox?
For example, I should be able to add the different periods when a country was a vassal of various different empires at various points in its history. That would require the addition of a |sovereignty_date=
parameter for these too. Antiquistik (talk) 09:29, 23 June 2024 (UTC)
This edit request to Template:Infobox country, Template:Infobox settlement and Template:Infobox political division has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I'd like to please request for the {{subst:tfm|type=infobox}}
tag to be added so I can nominate this template for merging with {{Infobox settlement}}. PK2 (talk; contributions) 07:36, 18 July 2024 (UTC)
I have two concerns with how this template uses color in the Gini section. I've added a new set of testcases so y'all can try out my changes in the sandbox or experiment with alternatives. Once there's consensus for how to address these MOS:COLOR accessibility issues, I'll make a formal edit request.
Using the distinction between red and green as the sole hint that "high is bad" is... not great. Even readers with full color vision are going to miss this sometimes. Few will click through to Gini coefficient, then resume reading the infobox understanding that Gini measures inequality and high means unequal.
The solution I'm trying is to use more descriptive category names, e.g. "high" becomes "high inequality". The category name is already on its own line, so there is enough space.
Gini may be an imperfect measure of inequality, but as long as we're including it and expressing its valence in colors, we might as well explain what it's trying to measure.
Orange on white-ish is hard to read due to low contrast.
So, what color could be used to indicate a neutral sentiment?
I'm trying the gray, even though we usually aim for AAA-level contrast in templates. Jruderman (talk) 12:38, 20 July 2024 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Looks like my section on Gini colors and accessibility didn't get a lot of discussion, so I'm going ahead with a formal edit request.
Please apply my changes in the sandbox (without the other sandbox differences before my changes). That is, change the orange to the shade of grey I chose, and add the word "inequality" to each descriptor.
You can apply similar changes to the "development index" row too (keeping in mind that higher is good for this one). Or we can leave that for later; IMO gini is more confusing and more important.
Bringing this up once again as it seems this topic keeps occurring on many talk pages for countries such as China and Russia where people keep discussing whether or not to put "under an authoritarian dictatorship" or similar language under the Government section in the infobox. My understanding is that this section should be reserved for the form of government, rather than the character of the government. Thus, the Government section should simply list what the country officially is, while a separate section below it should list what the country actually is. Two indices for consideration would be the V-Dem Democracy Index and The Economist Democracy Index owing to their wide use among scholars and academic research journals. BootsED (talk) 01:04, 21 July 2024 (UTC)
Recently some changes to formatting were added- looking at the INDIA page there are changes such as President and whatever other data having bullet points, as well as Dominion/Republic in the Independence subsection being in their own rows in a table. The Population title is centred, but the GDP sections wouldn't fall under this Population section but it looks like it does too.
I don't know when these were added as I'm pretty sure that formatting changes are added elsewhere, but they look the data look clumpy in my opinion. I think that the format changes should be reverted, but what do you think? — Karnataka 07:55, 6 August 2024 (UTC)
People's Democratic Republic of Algeria | |
---|---|
ISO 3166 code | DZ |
Hi, Izno, thanks for this edit adding template styles. I have a question about how the code continues to use inline style, in particular in subtemplate {{Infobox country/imagetable}}.
This arose because I was having trouble separating out the edges of the flag image against the Infobox background at Algeria, because the flag is half white, and the Infobox bg color is #f8f9fa, near enough to white that I can't easily distinguish it (even with the faint border) especially if my laptop screen isn't perfectly oriented, as it tends to wash out faint colors.
I started to look at the code to see if I could add user-configurable flag border style, so I could darken it a bit more at Algeria, and at other country articles whose flags have some white near an edge. I discovered param |flag_border=
in the code, but it's just a yes-no param, and ends up as a param to Module:InfoboxImage, and it's surrounded by a lot of squirrely code that was way more than I felt like dealing with:
Excerpt of Infobox country code snippet for param 'image1', using /imagetable: | ||
---|---|---|
| image1 = {{#if:{{{image_coat|}}}{{{image_symbol|}}}{{{image_flag|}}}{{{image_flag2|}}} |{{infobox country/imagetable |image1a = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder={{main other||no}}|image={{{image_flag|}}}|sizedefault=125px|size={{{flag_width|{{{flag_size|}}}}}}|maxsize=250|border={{yesno |{{{flag_border|}}}|yes=yes|blank=yes}}|alt={{{alt_flag|{{{flag_alt|}}}}}}|title=Flag of {{{common_name|{{{name|{{{linking_name|{{PAGENAME}}}}}}}}}}}}} |image1b = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder={{main other||no}}|image={{{image_flag2|}}}|sizedefault=125px|size={{{flag_width|}}}|maxsize=250|border={{yesno |{{{flag2_border|}}}|yes=yes|blank=yes}}|alt={{{alt_flag2|{{{flag_alt2|}}}}}}}} |caption1= {{#ifexist:{{if empty |{{{flag_type_article|}}} |{{{flag|}}} | {{if empty |{{{flag_type|}}} |Flag}} of {{if empty |{{{linking_name|}}} |{{{common_name|}}} |{{{name|}}} |{{PAGENAME}} }} }} |[[{{if empty |{{{flag_type_article|}}} |{{{flag|}}} |{{if empty |{{{flag_type|}}} |Flag}} of {{if empty |{{{linking_name|}}} |{{{common_name|}}} |{{{name|}}} |{{PAGENAME}} }} }}|{{if empty |{{{flag_caption|}}} |{{{flag_type|}}} |Flag}}]] |{{if empty |{{{flag_caption|}}} |{{{flag_type|}}} |Flag}} }} |image2 = {{#invoke:InfoboxImage|InfoboxImage|suppressplaceholder={{main other||no}}|image={{if empty|{{{image_coat|}}}|{{{image_symbol|}}}}} |size={{{symbol_width|{{{coa_size|}}}}}}|sizedefault=85px|alt={{#if:{{{image_coat|}}}|{{{alt_coat|{{{coat_alt|}}}}}}|{{{alt_symbol|}}}}}|title={{{symbol_type|Coat of arms}}} of {{{common_name|{{{name|{{{linking_name|{{PAGENAME}}}}}}}}}}}}} |caption2= {{#ifexist:{{if empty |{{{symbol_type_article|}}} |{{{symbol|}}} |{{if empty |{{{symbol_type|}}} |Coat of arms}} of {{if empty |{{{linking_name|}}} |{{{common_name|}}} |{{{name|}}} |{{PAGENAME}} }} }} |[[{{if empty |{{{symbol_type_article|}}} |{{{symbol|}}} |{{if empty |{{{symbol_type|}}} |Coat of arms}} of {{if empty |{{{linking_name|}}} |{{{common_name|}}} |{{{name|}}} |{{PAGENAME}} }} }} | {{if empty |{{{symbol_type|}}} |Coat of arms}}]] |{{if empty |{{{symbol_type|}}} |Coat of arms}} }} }} }} For clarity, a copy of the invocation of the InfoboxImage module (3rd line above) with newlines added looks like this:
|
so I just dropped the whole idea of adding configurable flag border style, and I'm okay with that.
But I noticed that the code transcludes {{infobox country/imagetable}}, and that's where you come in (if you're willing) because that entire subtemplate is pure in-line style that probably should be using classes in the /styles page instead. If you decide to take that on, and you happen to see some kind of easy win for flag_border being more than just a yesno so I could style it, that would be nice, too, but not a must-have, so please don't lose any sleep over it. Thanks, Mathglot (talk) 03:19, 17 August 2024 (UTC)
I was having trouble separating out the edges of the flag image against the Infobox background at Algeria, because the flag is half white, and the Infobox bg color is #f8f9faI agree, that's pretty rough (and I'd guess most white flags suffer this issue in light mode). I think this would be pretty easy to fix if you marked up the container for the flag with a class, added a one liner to override
@media screen { .mw-image-border .mw-file-element { border: 1px solid #eaecf0; }}
[[File:Flag of Algeria.svg|125px|border|Flag of Algeria]]
(either with, or without the 'border' param, depending on the presence/absence of |flag_border=
in the infobox), and that syntax does not allow any value for border. The generated html will have a <td> with class="infobox-image", and under that three nested div's, and a <span class="mw-image-border" typeof="mw:File">
in the |flag_border=yes
case, and I don't see a way around this without altering the syntax of File. Unless maybe a local Template style could override the value of class mw-image-border
, but even then, I don't see how it could attach border style to the image; perhaps with a before:: element, but not sure if that would work. Here's a snippet of the generated Html:Generated Html for the flag in the Infobox_country |
---|
Html snippet from Infobox_country from the Algeria article; newlines and indentation added for clarity:
<tr><td colspan="2" class="infobox-image"> <div class="noresize" style="display:table; width:100%;"> <div style="display:table-cell; vertical-align:middle; padding-left:5px;"> <div style="padding-bottom:3px;"> <span class="mw-image-border" typeof="mw:File"> <a href="/wiki/File:Flag_of_Algeria.svg" class="mw-file-description" title="Flag of Algeria"> <img alt="Flag of Algeria" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/77/Flag_of_Algeria.svg/125px-Flag_of_Algeria.svg.png" decoding="async" width="125" height="83" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/77/Flag_of_Algeria.svg/188px-Flag_of_Algeria.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/77/Flag_of_Algeria.svg/250px-Flag_of_Algeria.svg.png 2x" data-file-width="900" data-file-height="600" /> </a> </span> </div> <div> <a href="/wiki/Flag_of_Algeria" title="Flag of Algeria">Flag</a> </div> </div> Note: 'emblem' is the next td cell (also an image) which is why there is a colspan="2 above, and then the end of the tr row. |
mw-image-border
was MediaWiki:Gadget-NewImageThumb.css, but that doesn't seem like where it's getting it from. More later. Mathglot (talk) 22:25, 17 August 2024 (UTC)
I have amended the template so it says "Drives on" instead of "Driving side". This is for clarity. "Driving side" is often understood to mean the side the driver sits in a car, while "drives on" is understood to mean the side of the road the car is driven on. I have noted, as in Talk:Sri Lanka, that using "Driving side" can lead to confusion. SilkTork (talk) 15:26, 25 August 2024 (UTC)
Here are four possibilities that avoid the ambiguity in various ways:
Traffic side | Left |
Traffic | Drives on the left |
Drive on | Left side of the road |
Driving | Left side of the road |
(Based on skimming the list of redirects to the article Left- and right-hand traffic)
— Jruderman (talk) 23:33, 26 August 2024 (UTC)
For {{infobox former country}}, the "Preceded by" and "Succeeded by" text generated from Template:Infobox country/formernext is showing up as black text on black background when I have dark mode enabled in my preferences. (By "black" I mean "rgb(32, 33, 34)".) The CSS is a bit tangled, so I'm not exactly sure how to fix this without doing a lot of research. In case it's helpful, there are recommended fixes at mw:Recommendations for night mode compatibility on Wikimedia wikis. -- Beland (talk) 17:42, 2 September 2024 (UTC)
Someone reported an issue, where there are additional lines below subheadings on the page United Kingdom. This is because the template adds empty rows. Empty rows are an accessibility issue and when the styling doesn't take them into account, they also cause visual effects like these. —TheDJ (talk • contribs) 10:24, 4 September 2024 (UTC)
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.