Jump to content

Template talk:Flag/Archive 2

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

North Dakota

{{flag|North Dakota}} displays with an extra space before the "N". Compare these three lines:

Joule36e5 (talk) 00:29, 14 September 2017 (UTC)

People's Republic of China

At United Nations Security Council the list of permanent members should have "People's Republic of China" in the "Current state representation" column. Unfortunately this template doesn't seem to allow changing the name from simply "China". {{flag|China|name=People's Republic of China}} yields  People's Republic of China, not (as expected)  People's Republic of China. Hairy Dude (talk) 17:21, 13 December 2017 (UTC)

Western Union

Hi. Please add File:Flag of the Western Union.svg for the Western Union, which existed between 1948 and 1954. - Ssolbergj (talk) 11:12, 19 April 2018 (UTC)

Ssolbergj, this is a meta template and doesn't directly include any flags (or flag information). If you want to create a template for use with the Western Union, you should make a post at the Flag Template WikiProject and request input/advice there. Primefac (talk) 12:17, 19 April 2018 (UTC)

Leading underline in TOC at List of railway companies

The Table of Contents at List of railway companies precedes each country with an underlined space. It's visually distracting. Entries that don't use the flag template don't have that space. Nepal has two spaces. What's the deal? SchmuckyTheCat (talk) 15:54, 25 March 2019 (UTC)

Entries in headers should not be using flags/images, which is why they appear in the TOC as spaces. It has nothing to do with this template specifically; it's how the software deals with images in a TOC. I have removed the flags from the headers. Primefac (talk) 16:09, 25 March 2019 (UTC)
thanks SchmuckyTheCat (talk) 01:52, 2 April 2019 (UTC)

US flag

  •  USA - All I happen to be seeing is a white box. Hope someone can figure out what is wrong and fix it. Psu256 (talk) 20:17, 15 April 2019 (UTC)
    Looks fine to me. Did you try on a different browser? Primefac (talk) 16:07, 16 April 2019 (UTC)
    Yes, but they were both belonging to Microsoft (Edge and IE) since that is all I have available in the office. Psu256 (talk) 17:13, 16 April 2019 (UTC)
    It's likely something on your end, if only because I checked IE on my computer and it appeared as usual. Is everything up-to-date? Primefac (talk) 18:58, 16 April 2019 (UTC)
    I doubt it. Updating isn't something corporate IT departments like to always do. I looked and they do have a May 2018 version of Firefox available. It looks fine using that. *shrug* Funny thing is, once I looked at it in Firefox... it is now showing up in Edge. I have no explanation. That's just baffling. Psu256 (talk) 19:30, 16 April 2019 (UTC)
    If I had to take a stab at it (it's been a while since I've compared the client-side storage of browsers) I'd guess that Firefox was able to pull the image, and it's now stored in a common temp folder that IE/Edge can get to. Glad you (somewhat) got it sorted out. Primefac (talk) 19:34, 16 April 2019 (UTC)

error when using template for Venice?

I commented-out a use of this template here. For some reason, the template breaks. Any idea what's happening? = paul2520 (talk) 16:58, 28 May 2019 (UTC)

Issue with {{country data Venice}}, which I've fixed. Primefac (talk) 17:28, 28 May 2019 (UTC)

Non-English place name abbreviations

Is there any justification, other than "it is in use a lot", for allowing abbreviations of the native version of country names? I am aware of ESP, DEU and EIR, I'm sure there are others, and while they might be widely recognised, I see no reason for their presence in en.wiki. There is no real consistency here: DAN does not return the Danish flag, nor MAG the Hungarian. Illogical and inconsistent, and not helpful to readers. Renders the alphabetical sorting of tables meaningless: Germany between Dominican Republic and East Timor? Why on earth would anybody want that? Kevin McE (talk) 18:00, 19 June 2019 (UTC)

I was under the impression this was because of the IOC or other globally-scaled organizations and what they used for their acronyms. I see zero reason why we should force people to type out the full name. Primefac (talk) 18:39, 19 June 2019 (UTC)
No-one is forcing anyone to type anything out in full: the three examples above are easily, and more appropriately, rendered with SPA, GER and IRE (or IRL). I don't see the relevance of how IOC or anyone else labels nations: they are multi-lingual organisations, and this is en.wiki. Kevin McE (talk) 22:19, 19 June 2019 (UTC)
Well, it's because the IOC and others use those codes. For example, IOC uses ESP so for sports-related articles (e.g. we use {{flagIOC|ESP}} Spain). Other times, we use the ISO code, which is the international codes for countries (the ISO code for Germany is DEU, as opposed to FIFA and IOC which use GER). As far as I'm aware, though, codes such as DAN or MAG are not used by any organization, which is why they're not used here. Primefac (talk) 12:58, 20 June 2019 (UTC)
Inputting 'ESP' and getting an output of 'Spain' is fine, if for some strange reason people want to input with codes not based on English. My objection is to those variants on the template that output ESP (or DEU, or EIR) to those wanting to read an English speaking encyclopaedia: {{flag|ESP}} ESP). This is what renders the alphabetical sorting of tables they are in erroneous, and is unjustifiable. Is it possible to have {{flag|ESP}} give a display of  SPA: that would resolve the issue, while still allowing the 'eccentric' input choice (and making wholescale re-entering unnecessary). Kevin McE (talk) 14:55, 20 June 2019 (UTC)
I think we then again circle back to context. If it's on an article on the Olympics, or other venue using IOC codes, then outputting  SPA would be inappropriate because the IOC country code is ESP. Forcing a template to do one thing when it most likely should be doing what the user inputted is bad coding. Primefac (talk) 15:07, 20 June 2019 (UTC)
I really do not believe that when our readers look at the encyclopaedia, they do so wondering what the IOC code for a medallist's country is: they want to know the medallist's nationality.
Are you actually suggesting that the coding should be changed so that ESP (a string not present in the name of any country in English) is displayed where it is not currently, resulting in Spain being shown between Eritrea and Estonia in alphabetical sorting? Kevin McE (talk) 15:47, 20 June 2019 (UTC)
No, I'm suggesting the code stay exactly as it is right now. It's irrelevant whether the reader wants to know the country code of an Olympic team - if it's not the right IOC code then it's wrong. There is hover text that tells what country it is, as well as a link that will bring them to the country in question. Primefac (talk) 15:58, 20 June 2019 (UTC)
It is not wrong if it is the intention to tell the name of the country. It is inappropriate if it makes sorting erroneous, and hover text is inconvenient for mobile users. Kevin McE (talk) 16:20, 20 June 2019 (UTC)

Even if we leave aside issues specific to some organisations (although I do not concede that point), what is the purpose or value in other examples, such as the most basic {{flag}} template. I believe that by obscuring the information it seeks to communicate, it is counter to the purpose of an encyclopaedia and should not be present in our pages at all. Kevin McE (talk) 16:20, 20 June 2019 (UTC)

This is actually another thing that I have been thinking about; I don't think we can do what you want with the technical limitations of the existing software, without either doing weird things or breaking stuff. Let's keep using ESP as an example:
  • {{flag|ESP}} calls {{country data ESP}}, which is a redirect to {{Country data Spain}}, which is why everything has to do with Spain (links etc)
  • {{flag}} also has a |name={{{name}}} param, which is the reader-facing display. It's used not only by {{country data Spain}} but also by {{Flag/core}} to determine the output text of the wikilink, which is why {{flag|SPA}} and {{flag|ESP}} both have the same end link as {{flag|Spain}} but show either SPA or ESP.
What it sounds to me like you are proposing is to have the {{flag}} template, regardless of input, output either "Spain" or "SPA". Would this be switched by a new parameter? Would it be dependent on input (e.g. using "ESP" automatically outputs "SPA" but "Spain" stays unchanged)? Do we not have a problem from an editing standpoint if I put in {{flag|ESP}} but get out  SPA? The first two are programming challenges that can possibly be coded without rewriting the entire backend of literally hundreds of templates, but I'm not sure the latter one would be acceptable to anyone coding these templates; WYSIWYG is kind of a big deal here. Primefac (talk) 16:42, 20 June 2019 (UTC)

Singapore

The template does not seem to work for Singapore.  Singapore Hektor (talk) 18:38, 8 July 2019 (UTC)

Hektor, I see a flag of Singapore and link there as well. What is it that you are seeing (or not seeing) that makes you think it is not working? Primefac (talk) 19:02, 8 July 2019 (UTC) (please do not ping on reply)
I saw a blank rectangle. Now it works. Hektor (talk) 19:55, 8 July 2019 (UTC)
Cool. Likely a cache/browser issue. Primefac (talk) 15:48, 9 July 2019 (UTC)

Khabarovsk Krai issue

The flag icon for Khabarovsk Krai does not show up. For an example of this problem, see Template:Country data Khabarovsk Krai. My knowledge of Wikipedia internals is insufficient to fix it. Please help. --46.242.13.121 (talk) 08:25, 26 July 2019 (UTC)

Same thing with Penza Oblast, see Template:Country data Penza Oblast. Other Russian regional flags work fine. --46.242.13.121 (talk) 08:39, 26 July 2019 (UTC)
This is likely a browser issue - there are a few posts above and in the archives that say similar things, but I see both flags as would be expected. Primefac (talk) 15:27, 26 July 2019 (UTC)
Thank you. It was, indeed, a browser issue. Here's what I did (Safari on macOS): 1) select "Safari > Preferences…" in the menu bar, 2) select "Privacy" tab, 3) click "Manage Website Data…" button, 4) in the search field, type "wikipedia", then select the corresponding row and click "Remove", 5) repeat the same for "wikimedia". Hopefully, this will help other Mac users who face the same problem. --46.242.12.2 (talk) 02:05, 27 July 2019 (UTC)

emilia-romagna

Emilia-Romagna (Italy) had the flag and logo on Commons on copyvio. They have been removed. I have replaced them with some adaptations, you can find them on commons:Category:Flags of Emilia-Romagna and commons:Category:Coats of arms of Emilia-Romagna --Gambo7 (talk) 22:03, 19 March 2020 (UTC)

USA

Should {{flag|USA}} render as  US, as per the MOS:NOTUSA guideline? Zarex (talk) 18:13, 14 April 2020 (UTC)

In a word, no. You're missing the last statement of NOTUSA, which involves uses such as with this template (i.e. FIFA or IOC country codes). Primefac (talk) 18:37, 14 April 2020 (UTC)

Hanover

While reading the article Seven Years' War, I noticed that this when this template calls "Hanover", the link is to the Prussian Province of Hanover, rather than the Electorate of Hanover (which is the one relevant to the Seven Years' War) or Kingdom of Hanover (which is what should be called for, say, Hundred Days). Is there some way to get these correct (without resorting to a kludge as has been done on Austro-Prussian War)? Lockesdonkey (talk) 17:19, 27 May 2020 (UTC)

Lockesdonkey, as far as I can tell, there are three country data templates with "Hanover" in the name. These can be used either with {{flag}} or {{flagcountry}}:
Country data template {{flag}} {{flagcountry}}
Template:Country data Hanover  Hanover  Hanover
Template:Country data Electorate of Hanover  Electorate of Hanover  Hanover
Template:Country data Kingdom of Hanover  Kingdom of Hanover  Hanover
Hope this helps. —⁠andrybak (talk) 20:47, 27 May 2020 (UTC)
It does, thank you! Lockesdonkey (talk) 22:05, 27 May 2020 (UTC)

Template-protected edit request on 4 June 2020

Remove the Hezbollah flag from this template. The flag is protected by copyright and the file used by this template is under nomination for deletion for copyvio. The fair-use version is only to be used on pages that are specifically allowed due to vandalism, therefore I see no good reason for the flag to remain in this template. - ZLEA T\C 19:03, 4 June 2020 (UTC)

 Already done by Guerillero (editing {{Country data Hezbollah}}) * Pppery * it has begun... 20:58, 4 June 2020 (UTC)
FYI I would have declined this request as premature if it did require template editor permissions - executing it would be prejudging the linked discussion on Commons, which hasn't been closed yet. * Pppery * it has begun... 21:07, 4 June 2020 (UTC)
@Pppery: It was a pretty blatant copyright violation --Guerillero | Parlez Moi 21:11, 4 June 2020 (UTC)

It'd be very nice for templates such as Template:COVID-19 pandemic data/Per capita to be able to have a parameter that allows for a custom link. Would it be possible to add that? {{u|Sdkb}}talk 10:05, 2 June 2020 (UTC)

Could you give an example of what you'd want the output to look like? Primefac (talk) 13:25, 2 June 2020 (UTC)
Primefac, yeah, so basically it would be nice to be able to use {{Flag|Netherlands|link=COVID-19 pandemic in the Netherlands}} to generate Netherlands. {{u|Sdkb}}talk 19:32, 8 June 2020 (UTC)
@Sdkb: For prefixed links there is {{Flag+link}}: {{flag+link|COVID-19 pandemic in the|Netherlands}} Netherlands (with {{flaglink}} being the equivalent for suffixes). Linking to a page whose title does not start or end with the country name can AFAIK currently only be done in {{flagg}}: {{flagg|unc|Netherlands|link=Main Page}} Netherlands. SiBr4 (talk) 21:13, 10 June 2020 (UTC)
SiBr4, thanks. Wow, there are a lot of flag templates. It might be easier if they were all included in the main documentation rather than another page. {{u|Sdkb}}talk 21:57, 10 June 2020 (UTC)
There are a ton of flag templates, most of which are listed at Wikipedia:WikiProject_Flag_Template#List (and linked in the {{flag}} /doc). They're not exactly hidden away, and I think trying to fit them all into the {{flag}} documentation would be messy and overpower the main "how to" of the template. Primefac (talk) 22:28, 10 June 2020 (UTC)

Parties

Why is this limited only to countries and states? Why don't we extend it to political parties and militias as well? --Maudslayer (talk) 11:34, 25 October 2020 (UTC)

I could be wrong, but I seem to recall seeing party flags in articles that were template-given. As to a direct answer to your question, likely because the current structure of {{flag}} would necessitate creating thousands of party-specific templates that would then need maintenance. Primefac (talk) 11:37, 25 October 2020 (UTC)

Mississippi broke

The new flag of Mississippi doesn't show using this template. Not sure how to fix. UserTwoSix (talk) 22:00, 8 November 2020 (UTC)

 Not done See Template talk:Country data Mississippi#Template-protected edit request on 4 November 2020 * Pppery * it has begun... 22:23, 8 November 2020 (UTC)

Template-protected edit request on 21 February 2021

Remove the Hainan flag from this template. The people's Republic of China does not allow provinces to have their own provincial flags. I searched the Internet and found no source of the flag. It is very likely that the flag is fictional. Ngguls (talk) 01:56, 21 February 2021 (UTC)

 Already done by you editing Template:Country data Hainan * Pppery * it has begun... 02:04, 21 February 2021 (UTC)

 You are invited to join the discussion at Wikipedia:Village pump (miscellaneous) § Flags for Bulgaria and South Korea at the Olympics. {{u|Sdkb}}talk 21:05, 26 March 2021 (UTC)

Greece is kind of glitched

When I use Greece flag 1822 it comes up with the modern flag. How do I stop this. MiniRoodey (talk) 05:16, 17 July 2021 (UTC)

Suggestion

Please add Lokot Autonomy and Slovene home guard. 86.16.81.172 (talk) 06:01, 17 July 2021 (UTC)

Template data retrieved from Wikidata

I wonder if it is possible to make this template to retrieve the flag from Wikidata directly? --Xeror (talk) 03:20, 26 August 2021 (UTC)

That sounds like a disaster waiting to happen. All you need is for someone to vandalise a flag image and suddenly we'd have porn on hundreds of pages with no obvious reason why. Primefac (talk) 11:02, 26 August 2021 (UTC)

Non-historic flag for Vietnam

It seems the flag shown for Vietnam during much of the 1800s is wrong, see Commons:Village pump#Fictional flag, real issues. –LPfi (talk) 11:33, 11 January 2022 (UTC)

So it sounds like you're suggesting that | flag alias-1863 = Royal Flag of Vietnam (1802–1885).svg and its related bits are removed from {{Country data Vietnam}}? Primefac (talk) 12:16, 11 January 2022 (UTC)

Trying to figure out what breaks South Korea

[[Image:Flag of South Korea.svg|{{#if:{{{size|}}}|{{{size}}}|22x20px}}|Flag of South Korea.svg]] [[Flag of South Korea.svg|{{#if:{{{name|}}}|{{{name}}}|{{country label alias South Korea}}}}]]

{{country flag alias South Korea}}

So it's a problem in {{country flag alias South Korea}}. Bye, Shinobu 14:16, 27 October 2006 (UTC)

Describe the problem so we know if we are still seeing it or if it got fixed. The live version of {{country_flag|South Korea}} does this:  [[{{{alias}}}|{{{name}}}]] (SEWilco 17:14, 27 October 2006 (UTC))
At the time of this writing, country_flag is showing a bordered icon of the flag with "KOR" linked to the article South Korea. (SEWilco 17:17, 27 October 2006 (UTC))

Sorry, sorry, I was just debugging happily away, so I moved straight on to template containing the problem, which I then solved and forgot about. Shinobu 10:27, 16 November 2006 (UTC)

Proposal

I propose the following code to automatically put a border around flags:

{{border|[[Image:{{
  #if: {{{variant|}}} | {{{flag alias-{{{variant}}}}}} | {{{flag alias}}}
}}|{{
  #if: {{{size|}}} | {{{size}}} | 22x20px
}}|Flag of {{{alias}}}]]|color=#aaa}} [[{{{alias}}}|{{
  #if: {{{name|}}} | {{{name}}} | {{{countryname|Earth}}} 
}}]]<noinclude>{{/doc}}</noinclude>

Alex(T|C|E) 02:19, 2 April 2007 (UTC)

I was hoping someone else would comment. Can you explain why this is a useful change? CMummert · talk 23:14, 3 April 2007 (UTC)
Oops, sorry, didn't check this page before. Some flags have borders around them just so that they look fine in this template. If the {{border}} template gets added, then this will be resolved. Except it could use a slightly darker border. — Alex(T|C|E) 20:37, 5 April 2007 (UTC)
I modified the code above. Take a look at the ukwiki version of the template that I created. That's how it would look like. — Alex(T|C|E) 20:44, 5 April 2007 (UTC)
Example of a page where the proposed template is used: uk:Центральний район. — Alex(T|C|E) 20:47, 5 April 2007 (UTC)
{{editprotected}}. There does not appear to be support for this proposal. CMummert · talk 16:51, 5 April 2007 (UTC)
I, for one do favor the revised version over the current one. --soum (0_o) 09:44, 6 April 2007 (UTC)
I made the change here, but now everything is inconsistent because not every flag template goes through this one. For example, see {{flagcountry}}. So you may want to request more edits to other templates. I don't plan to spend the time researching this myself to figure out exactly which other templates need to be changed, but if you do so I will make the changes (unless there are objections). CMummert · talk 19:17, 8 April 2007 (UTC)
Please revert this :-) The {{border}} template wraps the image in a div, and prevents inline images on the same line. For example, templates like {{USA}} are now forced into two lines (example: this should all be on  United States one line). This messes up many tables, and I'm sure quite a bit more. Carl Lindberg 20:31, 8 April 2007 (UTC)
I reverted it. I don't see the two-line effect on my browser, but apparently the border needs more testing. CMummert · talk 22:55, 8 April 2007 (UTC)
Thanks. I wasn't quite right on the div, but the template does use display:table-cell which is not consistent among browsers. In my case, I was using Safari. I don't think IE supports display:table-cell but maybe it happens to work out OK there. Carl Lindberg 00:29, 9 April 2007 (UTC)
I was using IE and everything worked fine. The template is working great on ukwiki for now. Hmm... — Alex(T|C|E) 00:39, 9 April 2007 (UTC)
Yep, I see the same problem on ukwiki (using this page to test). It does work OK in Firefox. According to this link Safari has a stricter interpretation (you can't really inline tables in regular HTML either) and IE has no support at all (but it happens to work I guess). Other browsers have other levels of support. This is the reason why many flags have bordered versions; they work without CSS trickery which has proven troublesome (unfortunately). Carl Lindberg 00:59, 9 April 2007 (UTC)

(De-indent) I'll download Konqueror and try to work on fixing this bug. — Alex(T|C|E) 02:59, 9 April 2007 (UTC)

...or not... — Alex(T|C|E) 03:01, 9 April 2007 (UTC)

Looks fine on Firefox 3.0 — Alex(T|C|E) 03:15, 9 April 2007 (UTC)

Extra noinclude

This template was broken by a recent edit. It has an extra <noinclude>. It should look like this:

<span style="white-space:nowrap"><!--

-->[[Image:{{#if:{{{variant|}}} |{{{flag alias-{{{variant}}}}}} |{{{flag alias}}} }}<!--
       -->|{{#if:{{{size|}}} |{{{size}}} |22x20px}}<!--
       -->|Flag of {{{alias}}}]] <!--
-->[[{{{alias}}}|{{#if:{{{name|}}} |{{{name}}} |{{{countryname|Earth}}} }}]]<!--

--></span><noinclude>
{{/doc}}

[[Category:Flag templates|µ]]
</noinclude>

The problem was reported at WP:VPT. Please fix as it is causing issues with Bronze Soldier of Tallinn and probably any article using {{flag}}. Mike Dillon 01:44, 5 May 2007 (UTC)

So THAT's what was causing it... It had me stomped. — Alex(U|C|E) 02:15, 5 May 2007 (UTC)
Hold on, let me test it. There might be something else wrong with it, too. — Alex(U|C|E) 02:16, 5 May 2007 (UTC)

Agreed with Mike's version. Please change ASAP. — Alex(U|C|E) 02:23, 5 May 2007 (UTC)


Semi-related, my proposal for borders around flags:

<span style="white-space:nowrap"><!--

-->{{border|[[Image:{{#if:{{{variant|}}} |{{{flag alias-{{{variant}}}}}} |{{{flag alias}}} }}<!--
       -->|{{#if:{{{size|}}} |{{{size}}} |22x20px}}<!--
       -->|Flag of {{{alias}}}]]|color=#aaa}} <!--
-->[[{{{alias}}}|{{#if:{{{name|}}} |{{{name}}} |{{{countryname|Earth}}} }}]]<!--

--></span><noinclude>
{{/doc}}

[[Category:Flag templates|µ]]
</noinclude>

The &nbsp; seems to be unnecessary, I tested it on another wiki. — Alex(U|C|E) 02:49, 5 May 2007 (UTC)

I'll have code written in a little bit and put in an editprotected. --Random832 08:04, 6 May 2007 (UTC)

The idea was that you'd simply use a different Country_data_xxx template to get a different wikilink. For example, you'd use {{flag|Nazi Germany}} for World War II articles if you really want a wikilink to Nazi Germany, or {{flag|Germany|Nazi}} if you want that same flag, but still retain the link to Germany. This works because Template:Country data Germany and Template:Country data Nazi Germany are both available. I don't think it's a great idea to make these templates even more complex than they already are, when this mechanism works well enough. Andrwsc 17:15, 9 May 2007 (UTC)

Border edit by Andrewsc

{{editprotected}} I request that the edit by Andrewsc Andrwsc, adding grey borders around ALL flagicons, be undone. This change makes flagicons on literally thousands of pages ugly, and AFAIK has not been voted on anywhere. - PatrikR 20:41, 18 June 2007 (UTC)

Some discussion, albeit a small one, was held on this template's project page, Wikipedia talk:WikiProject Flag Template#Bordered flags. There was consensus for the change, as the previous alternative was irregular icon sizes and/or inconsistent border styles. Since the change, PatrikR has made the first and only objection to this change, but additional discussion is welcome. Andrwsc 20:45, 18 June 2007 (UTC)
PS: Template:country flagcountry2 and Template:country flagicon2 were edited in the same way so my request concerns those pages also. - PatrikR 20:55, 18 June 2007 (UTC)
Please figure out some consensus, preferably with the flags proect involved, and once that is reached we can edit the template if need be. Flip-flopping is the worst option. — Carl (CBM · talk) 03:22, 19 June 2007 (UTC)
Yeah, I'd prefer to keep this version up for a few days to see if there are any more comments. This is a very high-use template, so presumably more than four of us (three for, one against) have an opinion... Andrwsc 03:38, 19 June 2007 (UTC)
If you're counting me, I have no opinion, I only came to fill the editrequested tag. — Carl (CBM · talk) 04:09, 19 June 2007 (UTC)
No, I was counting Simmo676, Valentinian, and myself as the three pro-border people, and PatrikR as one against, all from the meagre discussion on the project talk page. Andrwsc 04:32, 19 June 2007 (UTC)

Requested move

The following discussion is an archived discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.

The result of the move request was: Move. Jafeluv (talk) 02:58, 23 July 2010 (UTC)


Template:Country flag2Template:Country flag — Readability, number indicates that there are more such templates, whereas it's not like that.|Relisted user talk:billinghurst 05:27, 11 July 2010 (UTC)|Relisted. Fences&Windows 22:54, 2 July 2010 (UTC) --The Evil IP address (talk) 16:45, 17 June 2010 (UTC)

  • Neutral - my previous concern regarding the number indicating a more widely used template {{Country flag}} does not weight up the fact that this is the 104th most transcluded template, and for internal use only. Thanks for pointing it out, I supported this move too hastily without looking into it deeper. jonkerz 18:28, 7 July 2010 (UTC)
The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.

Apparently it is no big deal to add a quarter of a million tasks to the job queue from this pointless move, so in that case, why on earth wasn't a more sensible name chosen for the destination page (e.g. Template:Flag/core as I suggested)? — Andrwsc (talk · contribs) 05:28, 23 July 2010 (UTC)

Wait, what is this job queue you speak of? I don't quite understand. Arbitrarily0 (talk) 12:30, 23 July 2010 (UTC)
Help:Job queue. When the job queue is very large, such as when a quarter million pages need their "what links here" list updated because of a template rename, the Wikipedia experience suffers. Edits are not shown on Watchlist for a few minutes, etc. I still fail to see the benefit in renaming an internal template that nobody sees in article markup when the job queue gets clogged as a result. — Andrwsc (talk · contribs) 13:49, 23 July 2010 (UTC)

Comment: the same rationale could be used for renaming Template:Country flagicon2, for consistency, but that would add another ~quarter million tasks to the job queue, see Wikipedia:Database reports/Templates with the most transclusions. jonkerz 14:16, 23 July 2010 (UTC)

Size edit request

Currently, the default size is 22x20px. This causes {{flag|Canada}} to take the size of 22x11, while {{flag|Switzerland}} takes the size twice taller of 20x20. This causes table rows with Switzerland to become taller by 3 pixels under normal conditions in Mac Chrome. If there is no reason for the current dimension, we could change the default to 22x11, which would impose restriction on height quicker than a restriction on width. Restriction on width causes the problem of variance in height, as seen with the case of large Switzerland. Or, to minimize the changes (although I'm not sure if there is any reason behind the current dimensions), we could instead change the default size to 22x17, which is 3 pixels shorter. This should cause the table rows for Canada and Switzerland to equal each other. If there is good reason to keep the 22x20px default, the default size for Switzerland can be changed instead at Template:Country data Switzerland.

The real problem is that {{CHE}} uses different proportions. This causes problems because it breaks the assumption that {{countryTLA}} is a shorthand for {{flag|Country}}. Once the default size problem is resolved here, the CHE template can be reverted to its previous role of being a shorthand that behaves identically. --Bxj (talk) 05:39, 31 July 2011 (UTC)

Apparently this is the edit that changed the size to the current setting. You can't give all flags the same width because flags that are narrower would have gigantic height. Narrower flags should appear narrower. --Bxj (talk) 06:38, 3 August 2011 (UTC)


Proposals: Specify “link=” value and nowrap flag image with text

Currently the {{ flagicon}} template links the image to the article (e.g. Canada linked); however {{ flag}} (e.g. Image not linked  Canada) and {{ flagcountry}} (e.g.  Canada) don't.  Based on this discussion, I suspect that the (possible) reason it doesn't link was to avoid discussed screen reader issues; but I believe that as long as the “alt=” remains unset, screen readers should handle this correctly.  The test would be to "view" the following sentence (which has the link simulated) with a screen reader (I don't have one installed):

 This sentence contains a linked image of the flag, followed by a text link to the article for  Canada.  Please post a message below if a screen reader interprets it incorrectly such as repeating the name Canada.

Proposal #1: Update both {{ flag/core}} and {{ flagcountry/core}} to replace …|alt=|link=]]… with …|alt=|link={{{alias}}}]]…; this should link the image to the country article without affecting any other functionality.  (This change is included in the above test sentence and in all simulated examples below.)

Proposal #2(a): Currently the Flag image does not stay connected with the country name on wrap.  This would appear to be an issue going back to 2010 (See this discussion) and it still appears to be happening (See Examples of current versions… table below).  The proposal is to make the flag image, up to the &nbsp;, a nowrap.  Nowrapping only the image and the &nbsp; forces proper recognition of the &nbsp; although the country name can still wrap if it contains a space or hyphen.  Add a nowrap to the span in both {{ flag/core}} (and (depending on support for Proposal #3) {{ flagcountry/core}}), as in:
<span class="flagicon" style="white-space:nowrap;" > …
creates

Since the change is actually a change which applies to the precise segment of text covered by (what would appear to be) a unique CSS Class, an alternative (& better) potential fix would be to simply update the style sheet that defines “.flagicon” and add or change to “{ white-space:nowrap; }”, but I don't really know Wikipedia/WikiMedia's CSS and I have no idea how to figure out what, if anything, else uses class flagicon beyond {flag}, {flagicon}, and {flagcountry}, so the proposed changed would seem to be the more appropriate fix.

Proposal #2(b): Include the entire template code (Flag image and country name) in a nowrap to keep the icon connected to the country name on a single line by updating {{ flagcountry/core}} (and (depending on support for Proposal #3) {{ flag/core}}) to include:
<span style="white-space:nowrap;"><span class="flagicon … </span><noinclude>… (Note that {{nowrap}} has a problem with this so the span is req'd)
The potential down-side to making the flag image and entire country name a nowrap is that the entire country name would be forced to remain on a single line regardless of other data on the same line, which potentially creates a situation like:

but I prefer to view this as a feature rather than a problem; which leads to the following proposal.

Proposal #3: Given that there is presently very little difference between {{ flag}} and {{ flagcountry}} (See comparisons in 2nd table below), the functionality of the two should be made to have more difference since currently either template can be forced to produce identical output with the only variation being an extra parameter required in a few, fairly rare, circumstances where there is more than one variation of the country's name. 
The current difference between the two templates is that if the name= parameter is omitted, {{flag}} defaults the name to what was specified as parameter 1 to identify the flag being sought (i.e. "USA", "United States", or "United States of America"), while {{flagcountry}} defaults to name of the country hard-coded into the "Country data COUNTRYNAME" template (such as "Country data United States", which has redirects from "…US", "…USA", and "…United States of America", all of which produce the standardized country name "United States" which should perhaps officially be "United States of America" but that's another issue).  In either case, specifying the name= parameter can produce any desired output.
The two templates should be altered to serve more distinct purposes by applying the update in Proposal #2(a) (above) only to {{ flag/core}} and the update in Proposal #2(b) (also above) only to {{ flagcountry/core}}.  This would mean that {{flag}} (the shorter named function of the two) would, if necessary, wrap the country name to multiple lines with only the Flag image and the first word of the country name staying on the same line; meanwhile, {{flagcountry}} (the longer named template) would always force the Flag image and the full country name to remain on the same line.  This will undoubtedly have a minor effect on a few articles, where functionality would change slightly, particularly when viewing very wide tables in narrow browser windows at high zoom levels.  Realistically, this should have a negligable negative effect on articles overall, with only a small number of articles requiring manual edits; sooner or later an editor will stumble across those few articles where this is a problem and can (if necessary), change the {{flagcountry}} to {{flag}} if it truly causes a problem (a note can be added, especially to the flagcountry documentation, to indicate that effective such and such a date, its functionality changed in terms of wrapping and, if it's an issue, the alternate template {{flag}} should be used in its place; a sample message box appears below).  It should not cause any negative effects beyond squishing some other columns in a table or forcing the table to remain larger than the page (and thus causing the horizontal scrollbar to become active).  On the positive side, this would also mean that, in future, editors could select the more appropriate template version in order to obtain a specific desired effect and all those tables where the flag and country currently appear wrapped onto different lines will be automatically fixed by virtue of the change.

Examples of effects of proposed changes
The difference(s) between the four formats (including the present 2 conditions) are:

Current Proposed
{{flagcountry}} #2a & 3 #2(b) (& #3)
{{flag}} {{ flag}} {{ flagcountry}}
 United States of America  United States of America  United States of America  United States of America
 Canada  Canada  Canada  Canada
 People's Republic of China  People's Republic of China  People's Republic of China  People's Republic of China

(Notes: All columns are initially set to a width of 20px; Current output (cols 1 & 2) has been simulated to match output as of 2011-10-20.)

Examples of current versions with various parameters For discussion reference purposes, some examples of the live outputs from these templates are:

Live outputs
The code width= "20px" width undefined width="14em"
{{ flagicon| USA}} United States United States United States
{{ flagicon| United States}} United States United States United States
{{ flagicon| United States| name=United States of America}} United States United States United States
{{ flagicon| United States of America}} United States United States United States
{{ flag| USA}}  USA  USA  USA
{{ flag| United States}}  United States  United States  United States
{{ flag| United States of America}}  United States of America  United States of America  United States of America
{{ flag| United States of America| name=United States of America}}  United States of America  United States of America  United States of America
{{ flag| United States of America| name=Gobble-dee-gook}}  Gobble-dee-gook  Gobble-dee-gook  Gobble-dee-gook
{{ flagcountry| USA}}  United States  United States  United States
{{ flagcountry| United States}}  United States  United States  United States
{{ flagcountry| United States of America}}  United States  United States  United States
{{ flagcountry| United States of America| name=United States of America}}  United States of America  United States of America  United States of America
{{ flagcountry| United States of America| name=Gobble-dee-gook}}  Gobble-dee-gook  Gobble-dee-gook  Gobble-dee-gook

Note: Column "width undefined" varies with zoom/browser window size as table becomes larger than the window.


In summary: (assuming consensus for all proposals)

Change {{ flag/core}} to:

<span class="flagicon" style="white-space:nowrap;"><!--
  -->[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}<!--
  -->|{{#if:{{{size|}}}|{{{size}}}|22x20px}}<!--
  -->|{{{border-{{{variant}}}|{{{border|border}}}}}} <!--
  -->|alt=|link={{{alias}}}]]&nbsp;<!--
  --></span><!--
-->[[{{{alias}}}|{{{name}}}]]<!--
 
--><noinclude>{{documentation}}</noinclude>

and change {{ flagcountry/core}} to:

<span style="white-space:nowrap;"><!--
  --><span class="flagicon"><!--
    -->[[File:{{{flag alias-{{{variant}}}|{{{flag alias}}}}}}<!--
    -->|{{#if:{{{size|}}}|{{{size}}}|22x20px}}<!--
    -->|{{{border-{{{variant}}}|{{{border|border}}}}}} <!--
    -->|alt=|link={{{alias}}}]]&nbsp;<!--
    --></span><!--
  -->[[{{{alias}}}|{{#if:{{{name|}}}|{{{name}}}|{{{shortname alias|{{{alias}}}}}}}}]]<!--
  --></span><!--
 
--><noinclude>{{documentation}}</noinclude>

and add a note to {{ flagcountry/doc}}, {{ flagcountry/core/doc}}, {{ flag/doc}}, and {{ flag/core/doc}} something like (and please add your improvements to this):

Please note support generally for proposal #3 really means implied support for #2(a) & (b) (as indicated); and, unless indicated otherwise, general support will be presumed for #1 as well.  Thanks and sorry it's so long!  — Who R you? Talk 10:17, 21 October 2011 (UTC)

Extra #if?

Currently the template contains {{#if:{{{size|}}}|{{{size}}}|22x20px}}. Isn't that equivalent to writing {{{size|22x20px}}} ? The latter should be the same without using a parser :) Siddhartha Ghai (talk) 11:49, 26 July 2012 (UTC)

Edit request

I'd like to change the default size in {{Country data Switzerland}} and {{Country data Vatican City}} (the line | size = {{#if:{{{size|}}}|{{{size}}}|20x16px}} from 20x16px to 23x16px. This does not affect the actual icon size since the flags of Switzerland and the Vatican are square and will remain 16px tall, but the 23px width fixes the country name alignment in Template:Flaglist where these two would currently be misaligned (see the example list in the documentation).

As a template editor I can edit the two country data templates myself. The thing is that this fully protected template contains the code {{#ifeq:{{{size}}}|20x16px|&nbsp;}}, which adds a space between the icon and the link for these two countries if used with {{flag}}. If the default size is changed in the data templates, this template needs to be changed accordingly to keep the mentioned code working.

Since there is now {{flaglist}} for cases where country names need to be aligned, it may be better to remove the extra spaces for both Switzerland/Vatican and Nepal entirely, though that probably needs some discussion. SiBr4 (talk) 22:36, 2 August 2014 (UTC)

Not done: The page's protection level and/or your user rights have changed since this request was placed. You should now be able to edit the page yourself. If you still seem to be unable to, please reopen the request with further details. @SiBr4: The cascading protection might take a little while to disappear; let me know if it still doesn't disappear after a day or so. — Mr. Stradivarius ♪ talk ♪ 19:59, 4 August 2014 (UTC)

issue raised at WT:Flag Template re:Nepal & Switzerland

Extended content

The flag names for Switzerland and Nepal seem to have extra leading spaces. This results in incorrect sorting if a list of nations is copied out of Wikipedia and sorted. Most have one leading space, but Switzerland has 2 and Nepal has 3. Can the extra leading spaces be removed? Greg Lovern (talk) 21:18, 12 October 2019 (UTC)

Yeah, I saw that at Template:Flag/core, Greglovern. It seems to be a half-assed attempt at dealing with Nepal and Switzerland's narrower widths (hardly the only ones with aspect ratios different from the norm). That's best dealt with with a small table, as in {{flag+link}}. Guarapiranga (talk) 05:31, 2 December 2019 (UTC)

Originally posted by Guarapiranga at 05:49, 2 December 2019. Fixed up by davidwr at 18:38, 12 February 2020 (UTC). davidwr/(talk)/(contribs) 18:38, 12 February 2020 (UTC)

Template-protected edit request on 24 February 2022

I wanted to edit the the Flag of Afghanistan , since Taliban dose not represent the whole country and the flag which is shown on wikipedia is not an official flag of Afghanistan , I would like to upload the correct flag.

Flag of Afghanistan

Backi07 (talk) 11:31, 24 February 2022 (UTC)

 Not done for now: please establish a consensus for this alteration before using the {{edit template-protected}} template. The flag you reference is still available as a historical flag, and there is no consensus as far as I am aware to change it from that status. Primefac (talk) 11:37, 24 February 2022 (UTC)

Refugee Nation

I propose to add the flag of the Refugee Nation, as there are flags of other nations in this template. The flag is the one by Yara Said created in 2015. It is public domain so it will not be an issue. Germenfer (talk) 10:06, 12 July 2022 (UTC)

What uses would there be for a Refugee Nation flag icon? As of now, there is no Refugee Nation as it is still just a proposal. Applying the flag to any refugees would imply that they are "Refugeeans" (I may have just coined a new demonym), which would be misleading if Refugee Nation were to become an actual nation. - ZLEA T\C 04:04, 13 July 2022 (UTC)

Sarawak Flag 1848

Edit request:

The current flag in the template for Sarawak 1848 with a blue & red cross was a historical theory proposed by WJ Chater in 1964. New evidence has been discovered that explicitly details the design of the flag by the designer James Brooke in a letter he wrote in 1849.

WJ Chater made several errors and ommissions while creating his theory.

The flag should be this one:https://upload.wikimedia.org/wikipedia/commons/9/92/Flag_of_Sarawak_%281848%29.svg [1]

Click here for the full explanation and multiple confirming sources https://en.wikipedia.org/wiki/User_talk:MatSallehSesat MatSallehSesat (talk) 06:57, 24 July 2022 (UTC)

References

  1. ^ [1]]

Template-protected edit request 11 January 2023

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I would like to propose changing the standard United Kingdom flag depicted from the 1:2 naval ratio to the 3:5 ratio variant officially used by the government on land and by civilians. Thank you. CorwenAv (talk) 14:45, 11 January 2023 (UTC)

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.