Template talk:Country showdata
Template:Country showdata 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: | ||||||||||||||||||||||||||||||||||||
|
No subject
[edit]Hi, there seems to be a problem with this; the flag doesn't show up in any of the relevant articles! Can this be resolved?
Leon 18:03, 15 September 2007 (UTC)
please someone, add interwiki link of this tamplate ka:თარგი:Country showdata. thanks Rustavizauri 11:24, 24 September 2007 (UTC)
- Done Andrwsc 16:08, 24 September 2007 (UTC)
- No do not link spam !. Paul
Wrong year
[edit]Could someone correct the year? It wasn't 1910, but 1905. --PaxEquilibrium 20:29, 6 November 2007 (UTC)
- Huh? What are you referring to? Andrwsc 20:30, 6 November 2007 (UTC)
Nationality
[edit]Is it possible to have the flag and nationality appear instead of the country name? —Preceding unsigned comment added by Mistman123 (talk • contribs) 21:42, 7 February 2008 (UTC)
- I don't think this template talk page is relevant for your request. As it says quite clearly, this template is used to internally document the country data templates within the flag template system. — Andrwsc (talk · contribs) 21:56, 7 February 2008 (UTC)
- False. Flag is a request for image, and country name is distinct from it. Do not mix Country name, and flag in the flag-format. Remember : don't think and dont do original research. Paul — Preceding unsigned comment added by Special+Utilizator+$ (talk • contribs) 10:42, 7 February 2011 (UTC)
protection templates
[edit]This automatically includes a protection template when it is used but there are atleast 50 cases where it is used and the template is not actually protected. Could we just remove the template and it could be added back to pages that actually are protected? -- maelgwn - talk 22:09, 3 March 2008 (UTC)
- Well, there are about a thousand templates that are protected, so it is significantly easier to make it the default case for now. I am working on a system where each template can check it's own status and put up the protection template only if necessary, so if you don't mind waiting a week or two, that should be in place. — Andrwsc (talk · contribs) 01:46, 4 March 2008 (UTC)
- Ok great, i didnt know that was possible. The other possibility would be to make it an option, that defaults to yes and then I can get my bot to go through and change the unprotected ones. -- maelgwn - talk 04:02, 4 March 2008 (UTC)
Option: no border
[edit]Would it be possible to add a "no-border" option? For example, Nepal looks pretty silly with the border around the flag. While there are very few cases where a border should not be used, it would be worthwhile. - 52 Pickup (deal) 06:05, 8 April 2008 (UTC)
- This is the talk page for the documentation template. It has nothing to do with the border rendering. — Andrwsc (talk · contribs) 08:07, 8 April 2008 (UTC)
- Fine. So where is the right place to ask? If these templates weren't so nested I'd make the changes myself. 52 Pickup (deal) 09:06, 8 April 2008 (UTC)
- The introductory text of the documentation for this template says:
- See Wikipedia:WikiProject Flag Template for the main documentation and discussion page for the flag template system.
- and the introductory text of the documentation for every country data template says:
- For a more thorough discussion of the flag template system, including parameters not described here, please see Wikipedia:WikiProject Flag Template.
- Sorry for being curt, but I had spent a lot of time on flag template documentation and I thought it was fairly obvious. I guess not. — Andrwsc (talk · contribs) 17:02, 8 April 2008 (UTC)
- Done. Sorry about that, but I do a lot of work with templates and in other cases in the past I had only gotten the response I was looking for when going through the template code to the necessary level. So going on past experience, I overlooked your notices. 52 Pickup (deal) 06:08, 9 April 2008 (UTC)
- The introductory text of the documentation for this template says:
- Fine. So where is the right place to ask? If these templates weren't so nested I'd make the changes myself. 52 Pickup (deal) 09:06, 8 April 2008 (UTC)
Per Wikipedia:Alternative text for images & [1], any image where the only content is a link needs to have alt text provided for web accessibility. Presently, screen readers will encounter the various icons and read out the entire file name, which is sub-optimal. It would be better for it to read "Flag of x icon" "Country icon" or something. –xenotalk 13:44, 25 August 2009 (UTC)
- Just to clarify, are you referring to the documentation which appears on flag templates (and which is generated by this template) or the output of the templates themselves? — Martin (MSGJ · talk) 22:13, 19 February 2010 (UTC)
- We discussed this months ago on the project page, and the consensus was that flag icons should not have alt text, as they meet the W3C definition of "purely decorative images", unlike normal images found in articles. We went to some effort to remove the alt text, which had been present in flag templates at the time. In any case, this talk page is certainly not the best place to continue this discussion from last August. — Andrwsc (talk · contribs) 23:28, 19 February 2010 (UTC)
- True, No text for the flag-format is necessary . Please remove text from the flag format if you are kind . Thank you !
wikify
[edit]Not a single person can work at this article since wikipedia does not document any wiki-code in it. It's like spelling each COMMA as "`"&"<inf>'<low>"`"@,. Is it policy approved the use of 5-consecutive start brackets in a wikipedia Format ?
- What are you trying to do? — Andrwsc (talk · contribs) 11:52, 7 February 2011 (UTC)
Limit on redirect aliases and related templates
[edit]Is there any particular reason why there is a limit of five on redirect aliases and related templates that can be mentioned in the documentation? McLerristarr | Mclay1 05:30, 24 February 2011 (UTC)
- We haven't really needed more than five. There should be (at most) a small handful of redirect aliases—typically just the one or two ISO/FIFA/IOC country codes, and perhaps one or two widely used aliases. The
name
parameter of {{flag}} is used for seldom-used display alternatives to the standard wikilink (specified by thealias
value). As for the "related" templates, the intent there is to list the directly related templates, not to attempt to document the historical timeline of a nation. For example, we use this if a particular flag variant is available in two different country data templates because of different link targets, such as Template:Country data German Empire and the "empire" variant of Template:Country data Germany. Basically, we want to make it easier for editors to find particular images, without cluttering the documentation with other templates that are really only tangentially related. — Andrwsc (talk · contribs) 06:09, 24 February 2011 (UTC)
Categories
[edit]Is it an idea to add a parameter which puts the country data templates into a specified subcategory of Category:Country data templates? For example, the U.S. state templates could be grouped under a category named "Country data templates of states of the United States". This would make it possible to browse through the templates using categories (which is not really possible with a single category containing 1,600 templates). SiBr4 (talk) 22:01, 3 May 2013 (UTC)
- I'll try to find a way to categorize the templates using their documentation pages, as most of the actual templates are protected. SiBr4 (talk) 15:25, 11 August 2013 (UTC)
Flag link
[edit]I have added a {{{flag link}}}
parameter that overrides the link to the flag article in the caption of the large flag, since there may be an article on the flag that is not located at "Flag of {{{alias}}}
" (for example here). SiBr4 (talk) 11:00, 17 June 2014 (UTC)
Range and not arbitrary year
[edit]Would it be possible to have a "range" or "year range" variable which can be dynamically used to pick the right flag, based on the current year relevant to an article?
For example, if you write an article covering a certain year (for example an event, a battle), and use that year in the {{flag}}
template, would be great to get the correct flag from that year automatically. As in here:
{{flagicon|Germany|1870}}
→{{flagicon|Germany|1918}}
→{{flagicon|Germany|1919}}
→{{flagicon|Germany|1920}}
→
Among many things, it would make it is possible to dynamically display the correct flags of the period, in articles like List of sovereign states in 1919.Codrin.B (talk) 14:02, 2 September 2017 (UTC)
- Shipbox flags do that. Though the year isn't arbitrary, it's usually the year that said flag was adopted or introduced. – Illegitimate Barrister (talk • contribs), 06:45, 17 May 2020 (UTC)
Template-protected edit request on 13 August 2018
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following:
===TemplateData=== {{TemplateDataHeader}} <templatedata>
with this:
===TemplateData=== {{TemplateData header}} <templatedata>
This is simply to avoid using a redirect on this page and the many, many pages transcluding it.
(See WP:NOTBROKEN, which includes the following: "In other namespaces, particularly the template and portal namespaces in which subpages are common, any link or transclusion to a former page title that has become a redirect following a page move is to be updated to the new title for naming consistency.") Jdaloner (talk) 04:38, 13 August 2018 (UTC)
Template-protected edit request on 13 August 2018
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following:
===TemplateData=== {{TemplateData Header}} <templatedata>
with this:
===TemplateData=== {{TemplateData header}} <templatedata>
My previous request (above) was correct, but it was not carried out correctly. ("Header" was left capitalized, when it should have been "header".) Jdaloner (talk) 16:16, 13 August 2018 (UTC)
Template-protected edit request on 21 November 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Greenshed added air force to variants 12 years ago, then someone (couldn't find who just by the edit summaries) commented it out. But not from the military section. Can't see why. It's confusing. If there's no good reason for it, please consider reverting it. Guarapiranga (talk) 22:18, 21 November 2019 (UTC)
Link to sandbox
[edit]I would like to link to a template's sandbox, if it exists. This is done by default by {{documentation}} but the functionality is missing in this template. Would there be any problem in adding this? — Martin (MSGJ · talk) 04:31, 17 December 2019 (UTC)
- I agree this would be useful along with a link to the testcases, I've tried looking for such a link before. S.A. Julio (talk) 04:55, 17 December 2019 (UTC)
Template-protected edit request on 17 May 2020
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace everything in the template with this. – Illegitimate Barrister (talk • contribs), 06:41, 17 May 2020 (UTC)
- Done S.A. Julio (talk) 07:05, 17 May 2020 (UTC)
- Thank you. – Illegitimate Barrister (talk • contribs), 09:17, 17 May 2020 (UTC)
October 2021 edit
[edit]Paine Ellsworth, your most recent edit appeared to introduce incorrect guidance, as Template:Navy actually pulls the naval flag variant, while Template:Naval uses navy if it exists. (It's counter-intuitive, but this is how the templates currently work, as recently pointed out here and here). It seems the change to this template was a mistake and should be reverted? --Paul_012 (talk) 10:20, 19 January 2022 (UTC)
- Actually, it looks like it was counterintuitive before the edit. The text read:
- "This template includes a naval ensign flag variant that can be used with Template:Navy", and
- "This template includes a navy flag variant that can be used with Template:Naval"
- All of the country-data templates read that way, so they had to be flipped to both be correct and to appear correctly. Before the edit, editors had to compensate for the incorrect text, and that is where the present problem lies. Those compensations that made up for the fact that the text was incorrect will have to be changed, but isn't it better to go from wrong, misleading text to text that reads correctly? Digging further, it appears that the core templates, {{Navy/core}} and {{Naval/core}} should be swapped. I'll check into it. P.I. Ellsworth - ed. put'r there 19:22, 19 January 2022 (UTC)
- To editor Paul 012: see the discussion at Wikipedia talk:WikiProject Flag Template#Template:Navy doesn't display navy flag as the documentation says it's supposed to. P.I. Ellsworth - ed. put'r there 20:19, 19 January 2022 (UTC)
Apparent script errors
[edit]Paine Ellsworth, {{Country data Belgium}} is in Category:Pages with script errors, along with a couple hundred other Country data templates. I don't see a visible error message, but this template shows up in Related changes, so I'm guessing that a recent change here may have caused this categorization to happen. Any thoughts? – Jonesey95 (talk) 02:48, 26 February 2022 (UTC)
- To editor Jonesey95: working on it. I did make a recent edit that transcludes {{High-use}} to those country data pages that are, and that excludes those with less than 2,000 edits, by adding the code:
{{#ifeq:{{#invoke:High-use|num}}|many||{{High-use}}}}
. And I enclosed some text within the {{Notice}} template. So I'm trying to judge whether or not I should self-revert back to the drawing board. P.I. Ellsworth - ed. put'r there 03:19, 26 February 2022 (UTC)- Johnuniq seems to know a lot about script errors and might be able to track this one down. – Jonesey95 (talk) 06:25, 26 February 2022 (UTC)
- The problem is that Module:High-use#L-35 calls
mw.ustring.sub(frame.args[1],-1) == "+"
. However, in the new code in Template:Country showdata, there is no parameter 1 in{{#invoke:High-use|num}}
. That causes mw.ustring.sub to throw an error which is hidden by something in the template. I don't know what parameter 1 should be, but I think that using anything other than "risk" would satisfy what is wanted, for example{{#invoke:High-use|num|x}}
. Something more might be needed, but that is the problem. Johnuniq (talk) 06:56, 26 February 2022 (UTC)- I tested that using the {{Country showdata/doc}} page and the "x" does work, so I'll try that.
- It works! Thank you so much, Johnuniq! P.I. Ellsworth - ed. put'r there 07:13, 26 February 2022 (UTC)
- The problem is that Module:High-use#L-35 calls
- Johnuniq seems to know a lot about script errors and might be able to track this one down. – Jonesey95 (talk) 06:25, 26 February 2022 (UTC)
Template-protected edit request on 15 May 2023
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can someone please convert HTML to wikicode on this template because it looks much nicer, like in this edit on this template's sandbox page? -- PK2 (talk) 01:26, 15 May 2023 (UTC)
- For use in articles I would generally agree. But for back-end code stuff like this, I have always found HTML to be more robust — Martin (MSGJ · talk) 07:31, 15 May 2023 (UTC)
- Not done for now. To editor PK2: let's go with editor Martin on this. {{Country showdata}} is a meta-template used on thousands of pages. It may be possible to garner consensus for this if you'd like to try, but I think that's what it would take to make such a change. P.I. Ellsworth , ed. put'er there 11:56, 15 May 2023 (UTC)
- I agree with MSGJ. There are so many curly braces in template code already; it does not make sense to add more when they are not strictly needed. table/tr/td tags make the code much more readable. – Jonesey95 (talk) 16:46, 15 May 2023 (UTC)
Template-protected edit request on 2 February 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
On Template:Country data Poland, under other information, related templates, change "Template:Country data Polish-Lithuanian Commonwealth" to "Template:Country data Polish–Lithuanian Commonwealth" notadev (talk) 20:31, 2 February 2024 (UTC)
- Not done:
{{edit template-protected}}
is usually not required for edits to the documentation or categories of templates using a documentation subpage. This edit should be made to Template:Country data Poland/doc, which is not a protected page. P.I. Ellsworth , ed. put'er there 00:46, 3 February 2024 (UTC)
"Flag link" parameter does not work
[edit]I recently made an edit on Template:Country data Vienne (department) to create a piped link using the "flag link=
" parameter per the instructions in Template:Country showdata/doc#Flag article link, but it apparently did not work at all. I'm not sure what's going on with this template due to the intricacies of the coding, but there should not be something on the documentation page that does not work as stated. If someone knows how to fix this, feel free to; I'm unfortunately unfamiliar with how to edit modules. Steel1943 (talk) 22:34, 14 February 2024 (UTC)
Template-protected edit request on 11 July 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change all instances of "flagicon" (as one word) to "flag icon" (as two words). The {{flag icon}} template has been moved in line with the proper naming convention of templates. Can all instances on here please be updated just to avoid the template redirect? Thank you. 6ii9 (talk) 08:54, 11 July 2024 (UTC)
- Completed per WP:NOTBROKEN. P.I. Ellsworth , ed. put'er there 10:15, 11 July 2024 (UTC)