This 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.Flag TemplateWikipedia:WikiProject Flag TemplateTemplate:WikiProject Flag TemplateFlag Template
Template:Flag 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.Heraldry and vexillologyWikipedia:WikiProject Heraldry and vexillologyTemplate:WikiProject Heraldry and vexillologyheraldry and vexillology
This template is within the scope of WikiProject History, a collaborative effort to improve the coverage of the subject of History on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.HistoryWikipedia:WikiProject HistoryTemplate:WikiProject Historyhistory
Template:Flag 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.
Thank you! I was completely unaware of its existence. I'm not sure how I managed to miss it while looking in the documentation, but I appreciate your pointing it out nonetheless! 1980fast (talk) 07:32, 19 September 2023 (UTC)[reply]
How does this work and why is it not working for Fatah / Fatah? Most other newsworthy Palestinian factions seem to work - Hamas - PFLP - DFLP - but not the biggest. Does it pull a flag off the wiki page for a thing? Or is there a separate database? Does the flag on the page need to be a particular file format or size? Irtapil (talk) 13:51, 17 December 2023 (UTC)[reply]
Frankly, I don't even know if I'm asking this in the right place. It was incredibly difficult to find the relevant page, and this quite possibly isn't it.
As to what I'm asking to have changed; the flag of Syria changed with the toppling of the Assad regime. Rather than the red-white-black flag with two stars, the green-white-black flag with three stars is now used. Anywhere these mini icons are used still uses the old flag, which is no longer accurate. I can't provide a diff because of the aforementioned difficulty — I don't even know where these icons are stored.
Looking at the discussion there, it appears as though there's some hiccups regarding changing the redirect. Thanks for the information! jhpratt (talk) 08:06, 23 January 2025 (UTC)[reply]
It was collapsing well just before the inclusion of flags: [1] (to be viewed on a mobile screen or simulated so with Ctrl+Shift+I on Chrome). fgnievinski (talk) 03:48, 26 May 2025 (UTC)[reply]
For me it starts not-collapsing in the subsequent diff, Special:Diff/1025223390; the diff you link has {{flag}} and appears to be working correctly. I suspect there is something else weird being done, but I honestly don't have time right now to look, but I'll do so when I get home from work. Primefac (talk) 09:21, 28 May 2025 (UTC)[reply]
The version that works has <!-- MobileFormatter took 0.118 seconds --> in the html source, the version that doesn't does not, which suggests to me that MobileFormatter is having trouble processing the version that doesn't work. Bawolff (talk) 02:49, 29 May 2025 (UTC)[reply]
Looks like this is because $wgMFMobileFormatterOptions['maxImages'] is set to disable collapsible sections if there is more than 1000 images on a page. Bawolff (talk) 03:04, 29 May 2025 (UTC)[reply]