Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module talk:Flag

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Flag/sandbox)
Latest comment: 10 months ago by Jonesey95 in topic Attempting to insert Template:preview warning

Template-protected edit request on 15 July 2020

[edit]

User:Le Deluge has reported a bug at Template talk:Flagicon: when function "icon" of Module:Flag is invoked, incorrect Category:Flagicon with missing country data templates is used. Correct category should be Category:Flagicons with missing country data templates. This is caused by concatenation of parameter "name" passed to function "_main", which is 'Flagicon' in the function "icon". Here's a fix: Special:Diff/965603747/967883637. There is probably a more conventional way of doing this in Lua. Of course, another solution would be to rename the Category:Flagicons with missing country data templates itself (and change wikitext in {{Flagicon}}). —⁠andrybak (talk) 22:25, 15 July 2020 (UTC)Reply

Possible new category name could be Category:Pages using flagicon template with missing country data—most popular naming scheme under Category:Unknown parameters. —⁠andrybak (talk) 22:36, 15 July 2020 (UTC)Reply
Side note: function "deco" does not have the same issue, because Template:Flagdeco uses tracking Category:Flagdeco with missing country data templates. —⁠andrybak (talk) 22:39, 15 July 2020 (UTC)Reply
As I mentioned over on T:Flagicon, it's wanting other non-existent categories such as Category:Flag with missing country data templates and I've just noticed Category:Flagcountry with missing country data templates. Le Deluge (talk) 22:59, 15 July 2020 (UTC)Reply
Le Deluge, as far as I can tell, these two categories are not referenced from other places, only from this module. So just creating them should be enough. —⁠andrybak (talk) 23:27, 15 July 2020 (UTC)Reply
 Done --Ahecht (TALK
PAGE
) 07:22, 16 July 2020 (UTC)Reply

Attempting to insert Template:preview warning

[edit]

I have added {{Preview warning}} to the error category assignment, but it displays the template invocation as plain text. See the PDCFlag example on the test cases page. I have left this for now, figuring that an error message is better than nothing, but if someone could get the template to render, that would be helpful. – Jonesey95 (talk) 14:21, 14 September 2025 (UTC)Reply