Template talk:Flagdeco

(Redirected from Template talk:Flagdeco/testcases)
Latest comment: 1 year ago by Paine Ellsworth in topic Template-protected edit request on 19 April 2023
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:Flagdeco 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.

Tracking redinks, and noredlink=yes edit

Per the discussion at Template talk:Flagicon#Noredlinks, I have amended the template (in these edits[1]) to allow:

  1. the tracking of redlinks in Category:Flagdeco with missing country data templates (population: 0}
  2. the suppression of redlinks, by using the parameter |noredlink=yes

I have documented this at Template:Flagdeco/doc (diff[2]).

--BrownHairedGirl (talk) • (contribs) 01:23, 27 November 2018 (UTC)Reply

Proposal: display country/region name in the tooltip edit

I propose displaying country/region name in the tooltip by default. It will help visually impaired readers, as well as help readers recognize countries/regions with lesser-known flags. The variant value, if present, should be appended to the tooltip, e.g., "Bulgaria, 1946". — UnladenSwallow (talk) 15:22, 5 April 2020 (UTC)Reply

On a second thought, maybe we should not enable this by default, but with a parameter tooltip=yes (in most use cases {{flagdeco|…}} is already followed by country/region name, so there's no need for the tooltip). — UnladenSwallow (talk) 16:01, 5 April 2020 (UTC)Reply

Minor improvement in the flagdeco/core sandbox edit

Here. I replaced:

{{#if:{{{size|}}}|{{{size}}}|{{{size flag alias-{{{variant}}}|{{#if:{{{variant|}}}|23x15px|{{{size flag alias|23x15px}}}}}}}}}}

with

{{{size|{{{size flag alias-{{{variant}}}|{{#if:{{{variant|}}}|23x15px|{{{size flag alias|23x15px}}}}}}}}}}}

It should have the same effect—I tested it on a couple of pages with template preview—and be a smidgen faster with one less conditional. — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚  01:58, 17 June 2021 (UTC)Reply

Do you like the border? edit

I don't. (There is currently a 1px border) --Palosirkka (talk) 12:56, 27 August 2021 (UTC)Reply

Template-protected edit request on 19 April 2023 edit

The flag used for {[flagdeco|DRC|1963}} has been moved on Commons. Can some fix that? - Sumanuil. (talk to me) 01:05, 19 April 2023 (UTC)Reply

  Completed at {{Country data Democratic Republic of the Congo}}: {{flagdeco|DRC|1963}} =   (File:Flag of the Republic of the Congo (Léopoldville) (1963–1966).svg). P.I. Ellsworth , ed. put'er there 17:32, 19 April 2023 (UTC)Reply