Jump to content

Template talk:Flag icon

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Template-protected edit request on 2 June 2024[edit]

Since the names of several flag-related templates, including this one, have recently been changed, there are now a number of unnecessary redirects within this template. Pleae fix these as shown.

  • flagicon/core --> flag icon/core
  • flagdeco/core --> flag decoration/core
  • flagdeco --> flag decoration

Colonies Chris (talk) 08:16, 2 June 2024 (UTC)[reply]

Just quickly noting that this request is not strictly necessary as this is why redirects exist. Primefac (talk) 08:31, 2 June 2024 (UTC)[reply]
True, but this is a heavily used template so avoiding an unnecessary redirect has significant benefit. Colonies Chris (talk) 09:56, 2 June 2024 (UTC)[reply]
 Completed – per above and WP:BRINT. Only "flagicon/core" and "flagicon" were found in this template, no flagdeco. P.I. Ellsworth , ed. put'er there 00:22, 3 June 2024 (UTC)[reply]

Afghanistan[edit]

I propose to show an alternative flag of Afghanistan, the one of the Islamic Republic of Afghanistan (Islamic Republic of Afghanistan), which is the government accepted by the UN. Can this be made accessible as {{AFG-IRA}}, which is now only available under {{flag icon|Islamic Republic of Afghanistan}} and {{flag icon|AFG|2013}}. Saippuakauppias 00:58, 4 July 2024 (UTC)[reply]

discussion continued here: Wikipedia_talk:Inline_templates_linking_country_articles#Afghanistan

Does this template really have accessibility problems?[edit]

Many of the articles tagged with {{accessibility dispute}} and which thereby land in Category:Articles with accessibility problems are tagged with the rationale that "screen readers can not read flag icons" or something similar. See 2017–18 Glasgow Warriors season and 2018 Charleston Battery season#Transfers for examples. But when I expand the flag template code in those pages, I see |alt=United States or similar in each of the flag icon images. It has always been my understanding that alt text is what screen readers use for interpreting images, so these flag icon uses look accessible to me. Am I missing something? Should these maintenance templates be removed? Pinging Isaidnoway, who appears to have added many of these tags. – Jonesey95 (talk) 01:02, 18 July 2024 (UTC)[reply]

Jonesey95 - When I expand the flag template code in 2018 Charleston Battery season, I see {{flagicon|USA}} - {{flagicon|COL}}. When I expand the flag template code in 2017–18 Glasgow Warriors season, I see {{flagicon|NZL}} and {{flagicon|WAL}}. I don't see any alt attributes in those pages, like what an alt attribute should look like, for example: |alt=United States |alt=New Zealand, or |alt=Scotland. Those flag icons render as a mouseover, which widely used and popular screen reader apps for Firefox and Google Chrome can not read. Like Graham87 recently told me in a different discussion about accessibility: if it's an issue, those people will have to get used to it. Screen readers mispronounce and misread things relatively often and proficient screen reader users get used to the idiosyncrasies of the system(s) they use. So, if you want to remove those maintenance templates (most editors do), I don't really give a shit, because it's painfully clear to me, accessibility is not a priority for the community. But if you want to, you can pass along the accessibility tip below on flag icons, and when I get time I'll upload an audio file of my screenreader reading one of those above pages so you can hear for yourself. You can also find a few screenreader audio files on my user page pertaining to the way tables are formatted. Isaidnoway (talk) 08:35, 18 July 2024 (UTC)[reply]
Telling people with an issue to shove off is a rather shitty thing to do. I will admit there are some issues that just can't be easily fixed, but we should at least make an attempt. I'm pretty sure the "base" template for all of these is {{Country showdata}}, so we'll most likely need to make changes and discuss it there. Primefac (talk) 11:57, 18 July 2024 (UTC)[reply]
By "expanded", I mean the expanded wikitext or HTML that is rendered on the page. The template used in the table on the left, {{flagicon|NZL}}, expands to <span class="flagicon">[[File:Flag of New Zealand.svg|23x15px|border |alt=New Zealand|link=New Zealand]]</span> in wikitext, and the HTML includes <img alt="New Zealand".... There is alt text there that tells you the meaning of the icon. What am I missing? – Jonesey95 (talk) 13:34, 18 July 2024 (UTC)[reply]