Template:Flag data 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. |
Flag Template | ||||
|
((editprotect))
Add the interwikis:
[[es:Plantilla:Geodatos]]
((editprotect)) The french template doesn't exist --Hercule (talk) 23:58, 12 June 2008 (UTC)
Can the country data template for the Weimar Republic be altered to allow the use of the merchant flag too. Thus ((flagicon|Weimar Republic|civil)) would proudce and that would link to the Weimar Republic article. Mjroots (talk) 17:13, 28 October 2009 (UTC)
The result of the move request was: pending technical implementation. I'm closing the RM to clear the bot-notice from the template. Will take a look at the requirements for technical implementation. wbm1058 (talk) 16:39, 19 October 2017 (UTC)
Template:Country data → Template:Flag data – A large portion of sub-templates aren't countries. In addition, this would allow a central template for all types of flags to be used with the ((flagicon)) template. ((flagicon)) could be used to get out of using deprecated image syntax on 1981 Munster Senior Hurling Championship Final and other related articles. Under the current circumstances, an editor would need to put a football flag under a "Country data" template to avoid using deprecated syntax which doesn't make a whole lot of sense. Jon Kolbert (talk) 20:06, 23 September 2017 (UTC) --Relisting. DrStrauss talk 09:09, 10 October 2017 (UTC)
@Jon Kolbert: There is a large category tree structure under Category:Country data templates. See Category:Country data templates by type of entity, where we already have "country data" for cities, continents, international organizations, etc. Why not just add a category for "country data" for sports teams? Are you proposing to rename this entire category structure by replacing "country" with "flag"? That would involve moving a lot of categories to new names. Fore example, Template:Country data Budapest would move to Template:Flag data Budapest. At first glance, this seems like a lot of work. wbm1058 (talk) 17:22, 19 October 2017 (UTC)
((flagg||Albany, New York))
Albany, New York((flagg||Albuquerque))
Albuquerque((flagg|ixc|Albany, New York))
Albany, New York((flagg|uxx|Albuquerque))
((country listdata|Albany, New York|Albuquerque))
Template:Country data Albany, New York | Albany, New York | |
Template:Country data Albuquerque | Albuquerque |
link = "["..mw.title.new(p):fullUrl("redirect=no").." "..p.."]"
– wbm1058 (talk) 18:16, 21 October 2017 (UTC)((flag|Albany, New York))
Albany, New York((flagicon|Albany, New York))
The above uses Template:Country data Albany, New York behind the scenes. I believe that all pages using this template system will link to File:Flag of Albany, New York.svg, that would be these articles (I'm not going to worry about the many talk pages linking to that flag). If all of them still show the flag after I move the sub-template for Albany, then I don't believe I've broken anything. The system should just follow the redirect from Template:Country data Albany, New York to Template:Flag data Albany, New York. OK, I'm moving the page now, and will revert myself if I find anything broken. wbm1058 (talk) 14:28, 21 October 2017 (UTC)
((flag|any, New York))
→ Template:Country data any, New York((flagicon|any, New York))
→ Template:Country data any, New York
((Str right|Flag data Albany, New York|13))
→ any, New York((Str right|Country data Albany, New York|13))
→ Albany, New York((Str right|Flag data Albany, New York|10))
→ Albany, New York|13))}
in Template:Country showdata. This is the kind of redundancy a well-written Lua module can avoid. Template:Flag data -- Albany, New York? Template:Flag data of Albany, New York?
((Str right|Flag data -- Albany, New York|13))
→ Albany, New York((Str right|Flag data of Albany, New York|13))
→ Albany, New York((#invoke:String|replace|Template:Country data Albany, New York|^Template:%w+ data |||false))
→ Albany, New York((#invoke:String|replace|Template:Flag data Albany, New York|^Template:%w+ data |||false))
→ Albany, New York(({templatename))}
is still there (36 instances). Is it safe now to simplify that template by removing this deprecated parameter? Though in the case of Country data Trentino-Alto Adige/Südtirol, it is necessary to specify the templatename, to override the Flag data default. If we use ((#invoke:String|replace|
in lieu of ((SUBPAGENAME)) then we don't need (({templatename))}
and remove the hard-coded |13))
which allows for flexible-length names that simply match the pattern and can include a /
in the name. wbm1058 (talk) 15:18, 22 October 2017 (UTC)
|templatename=
is no longer necessary in the Trentino template. I probably used BASEPAGENAME at the time to exclude the "/sandbox" suffix of sandbox templates, although the result is that their automatic examples actually invoke their parent templates instead of the sandbox versions, so even for those PAGENAME would be preferable.|templatename=
isn't used in any other template (I checked by running through all of them in AWB). Trentino is also the only template for which this all matters, since the only other templates with a slash in the name (other than "/doc", "/sandbox" or "/testcases" subpages) are redirects (namely French Guiana/Guyane (France) and Kosovo/Kosova) and therefore don't use the documentation template. So the parameter can be safely removed once the template is fixed for Trentino. SiBr4 (talk) 17:35, 22 October 2017 (UTC)So the Lua pattern %w+ data
allows for any set of ASCII alphanumeric characters followed by " data", thus the phrase "Flag data of" isn't matched. While I was warming up to its grammatical correctness, the original request was for simply "Flag data" so I've moved Template:Flag data of Albany, New York back to Template:Flag data Albany, New York. wbm1058 (talk) 12:02, 23 October 2017 (UTC)
?
quantifier to groups), it doesn't seem possible to match "Flag data of" with the same pattern as "Country data"/"Flag data", meaning two separate pattern replacements would be required in order to work with the "of" naming scheme. Technical issues aside, I'd definitely prefer "Flag data" to "Flag data of", as I'm not seeing any advantage of correct grammar above briefness for data templates that are never directly used, and I've seen few to no other non-article templates use such naming. SiBr4 (talk) 21:03, 23 October 2017 (UTC)This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone remove the CIA WFB flags in the country data templates? — Preceding unsigned comment added by 201.26.52.87 (talk) 16:13, 18 December 2017 (UTC)
((edit template-protected))
template. Primefac (talk) 16:16, 18 December 2017 (UTC)
((edit template-protected))
template. The WFB flags at ((Country data United Kingdom)) are all .svg files, and I'm sure better versions of any gifs could be made. Please actually discuss this issue first before demanding that they be removed. Primefac (talk) 16:39, 18 December 2017 (UTC)
Consider the template Template:Flag data Western Sahara. In that template, I would like to know the method through which I can change the name displayed on the right side of flag( no changes to be made in enwiki).Adithyak1997 (talk) 18:26, 8 December 2018 (UTC)
How do you change the default file size for a Template:Country data flagimage? Asking because the default size for most is 23px (plus 2px for the border) but some countries' are smaller (such as Denmark), which results in misaligned flag icons in columns. – Illegitimate Barrister (talk • contribs), 08:27, 20 June 2019 (UTC)
|size=
parameter, so you could set it as (({size|23px))}
. ((Country showdata)), which is used in places like ((Country data Denmark)), just uses thumb
. Primefac (talk) 12:37, 20 June 2019 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please consider adding a pthe
field to be used as default by Template:Flagg for each country when creating flag links. This would enable the same code to be used uniformly across a list of countries, without having to rely on editors to make sure they put the
in the specific countries that require it. For instance:
((flag+link|Economy of|China))
would link to Economy of China((flag+link|Economy of|United States))
would link to Economy of the United States((flag+link|Economy of|India))
would link to Economy of India((flag+link|Economy of|United Kingdom))
would link to Economy of the United Kingdom… instead of:
((flag+link|Economy of|China))
to link to Economy of China((flag+link|Economy of the|United States))
to link to Economy of the United States((flag+link|Economy of|India))
to link to Economy of India((flag+link|Economy of the|United Kingdom))
to link to Economy of the United KingdomOnce this is done here, we could logic in Template:Flagg to use the country-specific pthe
default set here, if it's not explicitly specified by the editor. Guarapiranga (talk) 05:47, 25 October 2019 (UTC)
|article=yes
in order to get the country name with "the" as needed. – Jonesey95 (talk) 12:48, 25 October 2019 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: At the 2024 IWBF Asia-Oceania Championships they had a composite team that played under the Asia-Oceania Zone. To avoid ugly red Template:Country data AOZ marks everywhere, I need flag data for the team. They played under the File:International Wheelchair Basketball Federation (emblem).jpg but a blank white logo would be okay.
Hawkeye7 (discuss) 04:41, 25 January 2024 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
Set the default size to be 25x17px to account for the fact that border is set to empty.
Currently if two ((flagicon)) are used, but one is empty, it looks like this:
Notice how the word "Placeholder" is 2 pixels to the left of "Normal".
With the change, it would look like this:
Diff:
− | + | (({size|25x17px))} |
– BrandonXLF (talk) 04:08, 3 April 2024 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
In actuality, when the function is called by ((flagicon)), providing a default for the size parameter does not work since a blank sized is always passed in. In addition, MediaWiki:Minerva.css#L-39 means setting the width to 25px does nothing on mobile.
Description of suggested change:
Instead of trying to replicate the border by expanding the width, manually add a transparent border with TemplateStyles.
Tests:
To help with testing, I created a redirect to the sandbox at Template:Country data /sandbox so these changes can now be tested directly with ((flagicon)).
Code | Result |
---|---|
((flagicon|Canada)) Normal |
Normal |
((flagicon||)) Placeholder |
Placeholder |
Code | Result |
---|---|
((flagicon|Canada)) Normal |
Normal |
((flagicon|/sandbox|)) Placeholder |
Placeholder |
Diff:
− | (( (({1))} | alias = | flag alias = Flag placeholder.svg | name = (({name|))} | size = (({size| | + | <span class="flag-placeholder">(( (({1))} | alias = | flag alias = Flag placeholder.svg | name = (({name|))} | size = (({size|))} | border= | altlink = (({altlink|))} ))</span><templatestyles src="Template:Flag data/styles.css" /> |
– BrandonXLF (talk) 18:40, 6 April 2024 (UTC)
(({size|25x17px))}
to ((#if:(({size|))}|(({size))}|25x17px))
--Ahecht (TALK23px
(as suggested in the original Phabricator ticket) then that should work for the vast majority of uses. – BrandonXLF (talk) 18:24, 11 April 2024 (UTC)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change:
Based on the above discussion with @Ahecht, the best course of action is to simply fix the initial edit request. An ((#if)) statement should be added to account for the fact that ((flagicon)) passes in a blank size by default. The issue with mobile should be resolved separately with MediaWiki talk:Common.css#Interface-protected edit request on 11 April 2024.
Tests:
Code | Result |
---|---|
((flagicon|Canada)) Normal |
Normal |
((flagicon||)) Placeholder |
Placeholder |
Code | Result |
---|---|
((flagicon|Canada)) Normal |
Normal |
((flagicon|/sandbox|)) Placeholder |
Placeholder |
Diff:
− | + | ((#if:(({size|))}|(({size))}|25x17px)) |
– BrandonXLF (talk) 18:45, 11 April 2024 (UTC)
It is requested that an edit be made to the template-protected template at Template:Flag data. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Please make it so that Ambazonia goes to the page about the state. Kxeon (talk) 16:36, 23 April 2024 (UTC)
Specifically, make it so that the country data of Ambazonia doesn't redirect to the Southern Cameroons, but rather goes to the current rebel entity of Ambazonia, as that is what the term is mostly, if not always used for.
(Simplified more: Change the country data of Ambazonia to be separate from the Southern Cameroons; make it's flag data the Federal Republic of Ambazonia's flag data.)
(Simplified even more: Make the country data of Ambazonia it's own page)
[Sorry. I couldn't think of how to make it the "Change X to Y" format, so I tried the best I could to get it as close to that with the even more simplified version.] Kxeon (talk) 01:11, 24 April 2024 (UTC)