Difference between revisions of "Template:Difficulty color"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:val|{{{1|3}}}}}{{#vardefine:decimal|0.{{#expr:{{#sub:{{#var:val}}|0|1}}-1}}{{#ifexpr:{{#len:{{#var:val}}}}=2 | <includeonly>{{#vardefine:val|{{{1|3}}}}}{{#vardefine:decimal|0.{{#expr:{{#sub:{{#var:val}}|0|1}}-1}}{{#ifexpr:{{#len:{{#var:val}}}}=2 | ||
|{{#ifeq:{{#sub:{{#var:val}}|1|1}}|-|2|8}} | |{{#ifeq:{{#sub:{{#var:val}}|1|1}}|-|2|8}} | ||
− | |5}}}}style="background: #{{Hex interpolate|aa0000|ddffdd|fraction={{#var:decimal}}}}; color: {{#ifexpr:{{#var:decimal}}>0.5|white|black}}"</includeonly><noinclude>The idea here is to have a consistent color for difficulties on the [[QBReader]] numerical scale. Just randomly chose to [[Template:Hex interpolate|interpolate]] between #fff and #800 (a sort of dark red). | + | |5}}}}style="background: #{{Hex interpolate|aa0000|ddffdd|fraction={{#var:decimal}}}}; color: {{#ifexpr:{{#var:decimal}}>0.5|white|black}}" data-sort-value={{#var:decimal}}</includeonly><noinclude>The idea here is to have a consistent color for difficulties on the [[QBReader]] numerical scale. Just randomly chose to [[Template:Hex interpolate|interpolate]] between #fff and #800 (a sort of dark red). |
{| class="wikitable" | {| class="wikitable" |
Latest revision as of 18:09, 26 February 2024
The idea here is to have a consistent color for difficulties on the QBReader numerical scale. Just randomly chose to interpolate between #fff and #800 (a sort of dark red).
minus | plus | |
---|---|---|
1- | 1 | 1+ |
2- | 2 | 2+ |
3- | 3 | 3+ |
4- | 4 | 4+ |
5- | 5 | 5+ |
6- | 6 | 6+ |
7- | 7 | 7+ |
8- | 8 | 8+ |
9- | 9 | 9+ |