Template:Ensure AAA contrast ratio/doc
Appearance
| This is a documentation subpage for Template:Ensure AAA contrast ratio It contains usage information, categories and other content that is not part of the original template page. |
This template dey check if something follow the rules for WCAG G17, meaning say a background and foreground colour combination get contrast ratio more than 7:1. E take two arguments: the base colour value, and the tracking category category wey e go put non-compliant transclusions inside. Another parameter, other, be optional; by default the template go calculate the contrast ratio against black and white, because e assume say dem dey use am together with {{Greater color contrast ratio}}.
Examples
[edit source]{{Ensure AAA contrast ratio|base=navy|category=Test}}→{{Ensure AAA contrast ratio|other=|base=navy|category=Test}}→{{Ensure AAA contrast ratio|other=navy|base=navy|category=Test}}→ Test{{Ensure AAA contrast ratio|base=red|category=Test}}→ Test{{Ensure AAA contrast ratio|base=#CC5500|category=Test}}→ Test{{Ensure AAA contrast ratio|base=asdf|category=Test}}→ Test