Difference between revisions of "Template:Color scale/doc"
Jump to navigation
Jump to search
imported>Evolution and evolvability (ce) |
imported>Evolution and evolvability |
||
| Line 19: | Line 19: | ||
</pre> | </pre> | ||
| − | Example red scale: <nowiki>{{Color scale|Rvalue=3}}, {{Color scale|Rvalue=6}}, {{Color scale|Rvalue=9}}</nowiki> | + | Example red scale: <nowiki> |
| − | + | {{Color scale|Rvalue=3}}, {{Color scale|Rvalue=3}}, {{Color scale|Rvalue=6}}, {{Color scale|Rvalue=9}} | |
| + | </nowiki> → | ||
| + | {{Color scale|Rvalue=3}}, {{Color scale|Rvalue=3}}, {{Color scale|Rvalue=6}}, {{Color scale|Rvalue=9}} | ||
| + | |||
| + | Example mixed scale: | ||
| + | {{Color scale|value=0|Rmin=10|Rmax=-15|Gvalue=3}} | ||
| + | {{Color scale|value=2|Rmin=10|Rmax=-15|Gvalue=3}} | ||
| + | {{Color scale|value=4|Rmin=10|Rmax=-15|Gvalue=3}} | ||
| + | {{Color scale|value=6|Rmin=10|Rmax=-15|Gvalue=3}} | ||
| + | {{Color scale|value=8|Rmin=10|Rmax=-15|Gvalue=3}} | ||
| + | |||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 00:45, 4 July 2019
| 40px | This is a documentation subpage for Template:Color scale. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Used to create a colour hex code based on a value. Can be used for colour scales from numbers.
{{Color scale
|value = value (is overridden by specifying Rvalue/Gvalue/Bvalue ; default 0)
|Rvalue = red value (default 0)
|Gvalue = green value (default 0)
|Bvalue = blue value (default 0)
|Rmax = maximum value to scale red channel to (default 10)
|Rmin = minimum value to scale red channel to (default 0)
|Gmax = maximum value to scale green channel to (default 10)
|Gmin = minimum value to scale green channel to (default 0)
|Bmax = maximum value to scale blue channel to (default 10)
|Bmin = minimum value to scale blue channel to (default 0)
}}
Example red scale: {{Color scale|Rvalue=3}}, {{Color scale|Rvalue=3}}, {{Color scale|Rvalue=6}}, {{Color scale|Rvalue=9}} → #4C0000, #4C0000, #990000, #E50000
Example mixed scale: #664C00 #514C33 #3D4C66 #284C99 #144CCC