Template:Yes is indefinitely protected from editing as 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 atemplate 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.
If there is any way that this family of templates could share some or all of their template styles, so that we didn't need to edit 100 templates when another MediaWiki change comes along, that would be great. If not, I still support this update. – Jonesey95 (talk) 14:49, 25 October 2024 (UTC)Reply
Prompted by a VPT discussion, I put the templatestyles into the table cell, where it can be normal wikitext, instead of having it interpreted as table markup. Does it work? See the testcases page. – Jonesey95 (talk) 14:54, 17 January 2025 (UTC)Reply
Latest comment: 2 months ago17 comments5 people in discussion
I see HouseBlaster has boldly changed the colour shade of this and the No templates to "make compatible with dark mode". However, I should note that this does not seem to have been discussed or agreed anywhere, despite these templates being widely used in many articles (meaning the change has a wide impact). I would say that these changes should be reverted and discussed first, to see whether a consensus for these exists. Impru20talk13:31, 11 July 2026 (UTC)Reply
Do you have a substantive objection or just a procedural one? I believe that better serving readers who chose to use a built-in MediaWiki feature is uncontroversial. Best, HouseBlaster (talk • he/they)15:52, 11 July 2026 (UTC)Reply
One of my substantive objections is that you just unilaterally overrode a discussion above that did not agree to one of the changes you have conducted. Is consensus "procedural" to you? The implemented changes have a wide impact across Wikipedia, so that should be enough for you to, at least, consider that unilateral action is not the best course of action. If you mind having a discussion on that, maybe we can all voice our substantive opinions on it. Impru20talk16:08, 11 July 2026 (UTC)Reply
The point is: there is a very visible notice at the top of this talk page stating that Substantial changes should first be proposed and discussed here on this page. I would have reverted you under WP:BRD because I am contesting your edit, which constitutes an undiscussed substantial change, and that would have been a normal course of action. But I cannot revert you because the template is fully protected. I see that you are taking this to your advantage to refuse to revert yourself even in spite of knowing that your edit is contested, by arguing than this is somehow "procedural". I have voiced my concerns to you on your unilateral action, the impact of your edit, a previous RfC above that did not go the way you are defending right here (and that you unilaterally overlooked), and the fact that this is not (nor was apparently so) an uncontroversial edit. Yet, you keep ignoring it (and no, do not say "I hope you can agree with me" because I am visibly not agreeing with you). I am more than happy to have a full RfC on the issue if required so that others (as well as you and myself) can present our arguments for or against the change, but I do not think the correct course of action is going "hey my edit is fully correct and you must get along with it". Best. Impru20talk16:49, 11 July 2026 (UTC)Reply
Given you disagree that using the old colors with dark mode is a serious problem I will revert the changes. I was trying to ascertain whether you were merely objecting to the fact I did not seek consensus before making an edit. Now that you've clarified what you mean, let's workshop an RfC—do you have options other than the status quo you believe should be considered? Best, HouseBlaster (talk • he/they)17:02, 11 July 2026 (UTC)Reply
Note that what you say I am saying is not what I am saying. I disagree with your course of action as a whole. The Substantial changes should first be proposed and discussed here on this page notice should have been clear enough for you from the start; I thank you for agreeing to revert to the status quo version and workshop an RfC.
On the available options, and since you seem concerned with dark mode: there is some intermediate option that can work both with dark and light mode without deviating too much from the current shade? Maybe that could be thrown for discussion as well. Impru20talk17:50, 11 July 2026 (UTC)Reply
There's a couple of intermediate options we can do. One, for technical reasons, we can set the color for skinsother than Minerva (the default mobile skin) and Vector 2022 (the default desktop skin) to whatever we fancy, including the status quo color. Two, we can pick any color we want from the list of dark mode compatible colors, but there are not that many shades of green to chose from. There's "lime", "green", and a handful of non-contenders because they fail MOS:CONTRAST. (For {{no}}, there are a lot of red choices.) Do any of those seem more amenable to you? Best, HouseBlaster (talk • he/they)18:25, 11 July 2026 (UTC)Reply
I think we can take the opportunity to complete the TemplateStyles implementation while making the templates work in dark mode. Best, HouseBlaster (talk • he/they)20:24, 11 July 2026 (UTC)Reply
I agree that it's desirable to make the colours adapt for dark mode within a stylesheet (via the template styles mechanism), and that the easiest approach is to use one the colours defined by the CSS variables set by the base software, so ongoing support of choosing and selecting the colour based on viewing mode is handled by the MediaWiki devs without cost to the community. I think background-color-success-subtle and background-color-error-subtle would be suitable choices, given the purpose for those colours. isaacl (talk) 18:16, 12 July 2026 (UTC)Reply
One note on using a stylesheet: I think that to follow Template:Yes/doc §Color subpage, the colour definition will have to be duplicated as I don't think MediaWiki pages with its sanitized CSS content model can transclude wiki pages. (Should one day MediaWiki allow CSS variables to be declared within sanitized CSS, then in theory English Wikipedia could transition away from the bgcolor subpage model to one based on CSS variables. But it would mean changing every place that hardcodes a custom style attribute using the bgcolor subpage for its value to use a stylesheet instead.) isaacl (talk) 18:34, 12 July 2026 (UTC)Reply
That is my understanding. See Phabricator ticket T320322 that tracks the request to allow CSS variables to be defined in style sheets being used via the TemplateStyles mechanism. (I think I went down the wrong path regarding the sanitized CSS content model; you can define CSS variables in your own personal style sheets.) isaacl (talk) 02:12, 18 July 2026 (UTC)Reply
Another possibility is to add a named parameter such as |bgcoloronly=any value that would trigger the template to only return the background colour. isaacl (talk) 18:32, 22 July 2026 (UTC)Reply