Template:PTG/contrast-header: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
Fix Linter errors. Span tags can't wrap multiple lines. |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable sortable" style="font-size:90%;" |
{| class="wikitable sortable mw-collapsible {{{state|mw-uncollapsed}}}" style="font-size:90%;" |
||
|- |
|- |
||
! colspan=17 | |
! colspan=17 | {{navbar-collapsible |
||
[[Wikipedia:WikiProject Elements/PTG|PTG]]: {{{title|Contrast check for colorset "{{{set|demo}}}"}}}<br/> |
|1=[[Wikipedia:WikiProject Elements/PTG|PTG]]: {{{title|Contrast check for colorset "{{{set|demo}}}"}}}<br/>{{nobold|1=({{Wikipedia:WikiProject Elements/PTG/set|set={{{set|demo}}}|name=DESCR }})}}{{dot}}{{nobold|1=Set definition: [[Wikipedia:WikiProject Elements/PTG/set/{{{set|demo}}}|PTG/set/{{{set|demo}}}]]}} |
||
|2=Template:PTG/contrast-header}} |
|||
{{nobold|1=({{Wikipedia:WikiProject Elements/PTG/set|set={{{set|demo}}}|name=DESCR }})}}{{dot}}{{nobold|1=Set definition: [[Wikipedia:WikiProject Elements/PTG/set/{{{set|demo}}}|PTG/set/{{{set|demo}}}]]}}{{right|1=<small>({{v|1=Wikipedia:WikiProject Elements/PTG/contrast-header}})</small>}} |
|||
|- |
|- |
||
! sort |
! sort |
||
Line 34: | Line 34: | ||
! |
! |
||
! |
! |
||
! class=unsortable | |
|||
! |
|||
! |
! |
||
! |
! |
Latest revision as of 00:00, 4 March 2023
sort | name | bg | font | ratio | conf w3c |
lum [0–1] |
Hue [0–360] |
HSL Sat [0–1] |
HSL Lum [0–1] |
HSV Sat [0–1] |
HSV Val [0–1] |
RGB dec [0–255] |
note | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Usage
[edit]- {{PTG/contrast-header}}
- {{PTG/contrast-row}} -- calculate values
|set=
|name=
- bgcolor =
|name=
- color =
|fontcolor=
|note=
|hsv=yes
- {{PTG/contrast-row-build}} -- compose the columns
- {{PTG/contrast-row-hsv-columns}} -- calc hsv
- {{PTG/contrast-conform-bg}} -- red/green AAA/AA/bg setting
|hsv=no
suppresses values HSV, decimal and luminance.- Table to be closed with manual
|}
or {{End}}.
example
[edit]{{PTG/contrast-header|set=demo|note=}}
{{PTG/contrast-row|set=demo|name=AM|fontcolor=black|note=}}
{{PTG/contrast-row|set=demo|name=AEM|fontcolor=black|note=}}
{{PTG/contrast-row|set=demo|name=WIK|fontcolor=black|note=|hsv=no}}
|}
sort | name | bg | font | ratio | conf w3c |
lum [0–1] |
Hue [0–360] |
HSL Sat [0–1] |
HSL Lum [0–1] |
HSV Sat [0–1] |
HSV Val [0–1] |
RGB dec [0–255] |
note | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
12 (s) | AM | #ff9d9d | #000000 | 10.56 |
AAA
|
0.48 | 0 | | 1 | 0.808 | 0.384 | 1 | 255-157-157 | |||
14 (s) | AEM | #ffdead | #000000 | 16.3 |
AAA
|
0.77 | 35.9 | | 1 | 0.839 | 0.322 | 1 | 255-222-173 | |||
96 (–) | WIK | #d8bfd8 | #000000 | 12.36 |
AAA
|
|||||||||||
42 (p) | MOID | #cccc99 | #000000 | 12.66 |
AAA
|
0.58 | 60 | | 0.333 | 0.7 | 0.25 | 0.8 | 204-204-153 | |||
54 (p) | ONONM | #a0ffa0 | #000000 | 17.31 |
AAA
|
0.82 | 120 | | 1 | 0.814 | 0.373 | 1 | 160-255-160 | C, P, S, Se | ||
56 (p) | HAL | #ffff99 | #000000 | 20.02 |
AAA
|
0.95 | 60 | | 1 | 0.8 | 0.4 | 1 | 255-255-153 | I, At |