Template talk:Yes

(Redirected from Template talk:Yes/sandbox)
Latest comment: 23 days ago by Qwerfjkl in topic Converting to templatestyles

RfC on the colour of Template:No

edit

should the colour of Template:No be the current lighter #FFC7C7 or the original darker #99? Gooduserdude (talk) 15:59, 17 February 2022 (UTC)Reply

#FFC7C7 Link
#F99 Link

Gooduserdude (talk) 16:00, 17 February 2022 (UTC)Reply

Survey

edit
  • #F99, Clearer Gooduserdude (talk) 17:28, 30 January 2022 (UTC)Reply
  • #F99 is a better companion with the color of Yes. —¿philoserf? (talk) 18:34, 30 January 2022 (UTC)Reply
  • #FFC7C7 is better. It must be at least  #FFA4A4  to meet the accessibility guidelines when paired with blue links (unvisited links to other articles and links to references in the same article). Reference links and links to other articles are basic features of wikitext and can be used with this template, so this combination occurs in many articles.  #F99  is too dark for that, it does not reach WCAG AA with blue links.  #FAA  (what I proposed above) is almost the same thing as  #FFA4A4 .  #FFC7C7  is fine based on the previous discussion. WCAG compliance can be easily verified using the WebAIM contrast checker. AA level is a contrast ratio of 4.5 or more, AAA is a contrast ratio of 7 or more. The accessibility guidelines say that level AA is the minimum to be achieved on Wikipedia and that level AAA is recommended whenever possible. From our previous discussions:
Description Web color Examples of use WCAG level of contrast with blue links
Old color of {{no}} #F99 Regular text[1] Unvisited link to article 4.17 (not compliant)
The darkest shade of red reaching WCAG AA #FFA4A4 Regular text[1] Unvisited link to article 4.5 (AA)
Color I proposed for {{no}} #FAA Regular text[1] Unvisited link to article 4.7 (AA)
Color the community chose for {{no}} after discussion #FFC7C7 Regular text[1] Unvisited link to article 5.78 (AA)
Color of {{no2}} #FFE3E3 Regular text[1] Unvisited link to article 7.04 (AAA)
--Fernando Trebien (talk) 08:49, 31 January 2022 (UTC)Reply
North8000 I don't follow your reasoning, F99 (the darkest) is the lowest contrast option between text and background (bad legibility). Are you sure you mean that option, and not the lightest, high contrast? Diego (talk) 20:09, 18 February 2022 (UTC)Reply
Diego Moya Thanks for catching my error. I fixed it. Sincerely, North8000 (talk) 20:41, 18 February 2022 (UTC)Reply
  • Anything but F99 per Ftrebien: higher contrast is better. Accessibility guidelines must be followed, they are created by experts based on scientific evidence; therefore the noncompliant low contrast hue must be avoided. I would prefer FFE3E3 as the only value with 'good' contrast, but the intermediate medium-contrast #FAA could be acceptable for better aesthetic match with the current green hue of Yes. Diego (talk) 20:02, 18 February 2022 (UTC)Reply

RfC on the colour of Template:No (more options)

edit

what colour should be used for Template:No? Gooduserdude (talk) 16:35, 20 February 2022 (UTC)Reply

Description Web color Examples of use WCAG level of contrast with blue links
Old color of {{no}} #F99 Regular text[1] Unvisited link to article 4.17 (not compliant)
The darkest shade of red reaching WCAG AA #FFA4A4 Regular text[1] Unvisited link to article 4.5 (AA)
Color User:Ftrebien proposed for {{no}} #FAA Regular text[1] Unvisited link to article 4.7 (AA)
Color the chosen for {{no}} after former discussion #FFC7C7 Regular text[1] Unvisited link to article 5.78 (AA)
Color of {{no2}} #FFE3E3 Regular text[1] Unvisited link to article 7.04 (AAA)

Survey

edit
This is a longer example of text and links with darker, low-contrast background
This is a longer example of text and links with lighter, higher-contrast background

References

Converting to templatestyles

edit

I've created Template:Yes/sandbox/styles.css which has all the colours required. I've tested this at User:Matrix/sandbox. Should we convert these template to templatestyles for dark mode compatibility? Thoughts? —Matrix(!) ping onewhen replying {u - t? - uselessc} 10:45, 25 October 2024 (UTC)Reply

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
Note that according to mw:Recommendations for night mode compatibility on Wikimedia wikis § Target night mode using standard media query as well as HTML classes, the dark mode rules have to be replicated to handle the case where the user has chosen to follow the OS setting. isaacl (talk) 23:24, 15 January 2025 (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
Jonesey95, looks good to me. — Qwerfjkltalk 21:34, 30 November 2025 (UTC)Reply

Usage for merged cells

edit

How can I use this template in merged cells? Quang, Bùi Huy (talk) 18:56, 20 December 2024 (UTC)Reply