Jump to content

Template talk:Flag icon

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

This is an old revision of this page, as edited by Govvy (talk | contribs) at 11:45, 28 August 2023 (IRE and IRL). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconFlag Template
WikiProject iconThis template is within the scope of WikiProject Flag Template, a collaborative effort to improve and manage Wikipedia's flag icon templates and related resources. If you would like to participate or have any questions, please visit the project page.
WikiProject iconHeraldry and vexillology Template‑class
WikiProject iconTemplate:Flag icon is within the scope of the Heraldry and vexillology WikiProject, a collaborative effort to improve Wikipedia's coverage of heraldry and vexillology. If you would like to participate, you can visit the project page, where you can join the project and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Flagicon giving incorrect results despite correct code being entered.

Hi, I've been trawling through my local football team's wikipedia pages, and I've noticed that the flagicon for Ireland seems to be...broken? The flagicon code is IRE, which should give the tricolour of Green, White and Orange, but instead it gives the Red on White Saltire of Northern Ireland instead, which, apparently is EIR. I've tried to sort it through both source and visual editing, but nothing changes, leading me to think this is an issue on the template side.

Cheers, POTH94 (talk) 16:25, 27 June 2022 (UTC)[reply]

@POTH94, could you please provide links to the affected pages and examples of the wikitext that is giving you unexpected results? —⁠andrybak (talk) 17:08, 27 June 2022 (UTC)[reply]

Edit request 3 August 2023

Please add this to the to top after the includeonly:

<templatestyles src="flagicon/styles.css" />

to replace the hack added to MediaWiki:Mobile.css for phab:T116318. Changes to MediaWiki:Mobile.css will be requested after this edit is made. SocietyBox (talk) 21:14, 3 August 2023 (UTC)[reply]

Going to deactivate this for a minute. The change has merit, but I hadn't been tracking this and should have. There are about 1100 pages to investigate for goodness/cleanup (see the top of the page for an explanation), which it would be best to do before we add this here. Are you willing to do that work? Izno (talk) 22:15, 3 August 2023 (UTC)[reply]
Got it down to a much more manageable couple hundred to look at. Izno (talk) 23:12, 3 August 2023 (UTC)[reply]
No, I'm not willing to do the work. I was proposing the change on a pure CSS reasoning. Personally, I don't even need the fix applied to all instances. Just those that don't even match .content a > img but have the "hack" applied to them and wrecking their aspect ratio (e.g.   Switzerland, where the flag icon isn't linked). SocietyBox (talk) 01:55, 4 August 2023 (UTC)[reply]

White flag

Is there any particular reason that (flagicon|white) links to the main page? Surely it should link to White flag? A7V2 (talk) 00:23, 15 August 2023 (UTC)[reply]

The base template is {{Country data Example}}, which implies that using a white flag should be for example purposes and not article use. {{flagg|uxx|blank}} might be better, as it shows as well without being linked. I don't really have any opinions on whether the behaviour being described is a good one necessarily, so do not take my suggestion as saying we should leave everything as-is (I am rather apathetic on that count). Once again, though, I am reminded that this entire system is ridiculous and we need a better one (which I am working on, just... slowly). Primefac (talk) 10:51, 15 August 2023 (UTC)[reply]

IRE and IRL

  • Republic of Ireland
  • Republic of Ireland

Two different codes for one flag? Was there suppose to be a difference between these two? Govvy (talk) 11:37, 28 August 2023 (UTC)[reply]

No, just different organisations with different codes. I believe the technical backend is meant to distinguish the country from the island, but I am not sure (outside of sports) if anyone actually does that. Primefac (talk) 11:38, 28 August 2023 (UTC)[reply]
different organisations? I get confused easily sometimes, it seems fs player was using IRE code for Northern Ireland. I noticed we are quite keeping consistent codes between different templates and was thrown off course! I think I snapped my mask!!! :/ Govvy (talk) 11:45, 28 August 2023 (UTC)[reply]