Template talk:Ensure AA contrast ratio
Latest comment: 1 month ago by Thisisnotatest in topic Clarification needed
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
Clarification needed
editDoes this template fix contrast problems or only diagnose them? Does it operate automatically or does an editor have to insert it? It would be good to add this to the documentation for this template. Thisisnotatest (talk) 23:51, 27 September 2024 (UTC)
- No fix is performed: such a fix would be difficult - consider this example (from Geelong West Giants via Wikipedia talk:WikiProject Accessibility#Possible duplicate or overlapping maintenance categories) - the tool shows a contrast ratio of 3.336, which you can improve by moving one or more of the sliders. But for an automatic fix to be performed, this template would need to judge which of the twelve values to adjust. Instead, this template merely compares two colour values for contrast compliance - it's a yes/no test, and if the answer is no, the template returns whatever value is passed in the
|category=
parameter. Like any other template, it needs to be inserted where it is needed, as with these edits. --Redrose64 🌹 (talk) 15:39, 28 September 2024 (UTC)- Ah, thank you. Thisisnotatest (talk) 23:00, 29 September 2024 (UTC)
Not sufficiently protected?
edit{{Ensure AAA contrast ratio}} and {{Greater color contrast ratio}} are super-protected from edits, such that only template editors and administrators can edit. Would {{Ensure AA contrast ratio}} properly be similarly protected?
I can currently edit this one. I didn't, but I'm getting an Edit link rather than a View Source link next to the Read link.
Thisisnotatest (talk) 06:12, 28 September 2024 (UTC)
- @Thisisnotatest: Neither Template:Ensure AAA contrast ratio nor Template:Greater color contrast ratio is superprotected, we don't allow that type of protection on English Wikipedia. They are both template-protected, whereas Template:Ensure AA contrast ratio is extended confirmed protected. If you want a page's protection level to be altered, you should file a request at WP:RFPP. --Redrose64 🌹 (talk) 11:42, 28 September 2024 (UTC)
- @Redrose64: Thank you for the clarification on terminology. I wasn't requesting that {{Ensure AA contrast ratio}} be template protected, I was just wondering whether it was an error that {{Greater color contrast ratio}} and {{Ensure AAA contrast ratio}} were template protected but {{Ensure AA contrast ratio}} was only extended confirmed protected, since it seems to be in the same realm of potential fragility. Thisisnotatest (talk) 23:01, 28 September 2024 (UTC)
- @Thisisnotatest: The logs for the three templates show that they were protected at different times by different admins: Template:Ensure AAA contrast ratio by The Earwig (talk · contribs); Template:Greater color contrast ratio by Primefac (talk · contribs); and Template:Ensure AA contrast ratio by MusikBot II (talk · contribs), this last one being a bot operated by MusikAnimal (talk · contribs). I can't explain why three different admins independently reached three different decisions. You need to either ask these admins directly, or file a RFPP request. --Redrose64 🌹 (talk) 10:21, 29 September 2024 (UTC)
- Well, the edit summaries for the last two describe why they happened: mine was following a string of template vandalism and I protected all templates with 4000+ transclusions, and the bot did the same when we decided to automate the process a few years later following more template vandalism. I suspect the first was protected for similar reasons (i.e. "high transclusions and should be protected"). The AA template has just under 5k transclusions and probably will be template-protected as soon as the bot makes another round of protections (toolforge has been a bit dodgy lately so the task might need restarting). Primefac (talk) 12:21, 29 September 2024 (UTC)
- That's right. And ECP didn't exist in 2015 when I protected {{Ensure AAA contrast ratio}}, and it wasn't used for arbitrary templates when initially introduced the following year, so that is the main reason. We had experienced some template vandalism by autoconfirmed users so semi-protection would have been insufficient. — The Earwig (talk) 19:48, 29 September 2024 (UTC)
- Thank you all for those insights. I didn't realize protections would be in the history and now hopefully will remember to check for that. That said, I probably still would have been concerned about the mismatch. Thisisnotatest (talk) 22:48, 29 September 2024 (UTC)
- That's right. And ECP didn't exist in 2015 when I protected {{Ensure AAA contrast ratio}}, and it wasn't used for arbitrary templates when initially introduced the following year, so that is the main reason. We had experienced some template vandalism by autoconfirmed users so semi-protection would have been insufficient. — The Earwig (talk) 19:48, 29 September 2024 (UTC)
- Well, the edit summaries for the last two describe why they happened: mine was following a string of template vandalism and I protected all templates with 4000+ transclusions, and the bot did the same when we decided to automate the process a few years later following more template vandalism. I suspect the first was protected for similar reasons (i.e. "high transclusions and should be protected"). The AA template has just under 5k transclusions and probably will be template-protected as soon as the bot makes another round of protections (toolforge has been a bit dodgy lately so the task might need restarting). Primefac (talk) 12:21, 29 September 2024 (UTC)
- @Thisisnotatest: The logs for the three templates show that they were protected at different times by different admins: Template:Ensure AAA contrast ratio by The Earwig (talk · contribs); Template:Greater color contrast ratio by Primefac (talk · contribs); and Template:Ensure AA contrast ratio by MusikBot II (talk · contribs), this last one being a bot operated by MusikAnimal (talk · contribs). I can't explain why three different admins independently reached three different decisions. You need to either ask these admins directly, or file a RFPP request. --Redrose64 🌹 (talk) 10:21, 29 September 2024 (UTC)
- @Redrose64: Thank you for the clarification on terminology. I wasn't requesting that {{Ensure AA contrast ratio}} be template protected, I was just wondering whether it was an error that {{Greater color contrast ratio}} and {{Ensure AAA contrast ratio}} were template protected but {{Ensure AA contrast ratio}} was only extended confirmed protected, since it seems to be in the same realm of potential fragility. Thisisnotatest (talk) 23:01, 28 September 2024 (UTC)