Changes
Template:Color contrast conformance (view source)
Revision as of 21:59, 21 November 2014
, 10 years ago{{{3|none}}}
<noinclude><!--
-===========================================================================================
- Color_contrast_conformance - give levels AAA, AA and none for acceptable color contrast
-===========================================================================================
--
--></noinclude>{{#ifeq:{{{show|yes}}}|no|
|Contrast: {{{1|blue}}} & {{{2|orange}}}, conformance level=
}}{{#ifexpr: {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} <= 0.14285 or {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} >= 7
|AAA
|{{#ifexpr: {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} <= 0.222 or {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} >= 4.5
|AA
|{{{3|none}}}
}}
}}<noinclude>{{documentation}}</noinclude>
-===========================================================================================
- Color_contrast_conformance - give levels AAA, AA and none for acceptable color contrast
-===========================================================================================
--
--></noinclude>{{#ifeq:{{{show|yes}}}|no|
|Contrast: {{{1|blue}}} & {{{2|orange}}}, conformance level=
}}{{#ifexpr: {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} <= 0.14285 or {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} >= 7
|AAA
|{{#ifexpr: {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} <= 0.222 or {{color contrast ratio|{{{1|blue}}}|{{{2|orange}}} }} >= 4.5
|AA
|{{{3|none}}}
}}
}}<noinclude>{{documentation}}</noinclude>