Bản mẫu:Ensure AAA contrast ratio
Giao diện
| Bản mẫu này sử dụng Lua: |
Bản Mẫu này kiểm tra việc tuân thủ WCAG G17, tức là sự kết hợp màu nền trước của nền có tỷ lệ tương phản lớn hơn 7: 1. Phải có hai đối số, giá trị màu base và hệ thống giám sát thể loại, thể loại, để đặt các nơi mà bản mẫu sử dụng không tuân thủ điều trên vào trong thể loại. Một tham số thứ ba, khác, Là tùy chọn; theo mặc định, bản mẫu sẽ tính tỷ lệ tương phản so với đen và trắng, với giả định rằng nó được sử dụng cùng với {{Greater color contrast ratio}}.
Các ví dụ
{{Ensure AAA contrast ratio|base=navy|thể loại=Test}}→{{Ensure AAA contrast ratio|thể loại=Test|khác=|base=navy}}→{{Ensure AAA contrast ratio|thể loại=Test|khác=navy|base=navy}}→ Test{{Ensure AAA contrast ratio|base=red|thể loại=Test}}→ Test{{Ensure AAA contrast ratio|base=#CC5500|thể loại=Test}}→ Test{{Ensure AAA contrast ratio|base=asdf|thể loại=Test}}→ Test
Các Bản Mẫu sử dụng Đảm bảo tỷ lệ tương phản AAA
- {{Màu nền}}
- Thể loại:Articles using Template:Background color with invalid colour combination (0)
- {{Infobox character}}
- {{Infobox fictional vehicle}}
- Thể loại:Articles using infoboxes for fictional elements with invalid color combination (0)
- {{Infobox comic strip}}
- Thể loại:Articles using Template:Infobox comic strip with invalid colour combination (0)
- {{Infobox music genre}}
- Thể loại:Articles using Template:Infobox music genre with invalid colour combination (0)
- {{Infobox television season}}
- Thể loại:Articles using Template:Infobox television season with invalid colour combination (0)
- {{Infobox train}}
- Thể loại:Articles using Template:Infobox train with invalid colour combination (0)
Xem thêm
- {{Ensure AA contrast ratio}}
- {{Greater color contrast ratio}}
- Template:Color contrast conformance § HTML colors
- Wikipedia:Manual of Style/Accessibility § Color