This template creates a shaded table cell according to its value. It interpolates the colour between given min and max values and colors (if not specified, these are assumed to be white for the min and black for the max). The font colour is turned black or white depending on the luminosity of the cell background. The background color is generated by the ((Value color)) template.

Usage

((Cell color|value|min|max|min color|max color[|bold=yes]))

Parameters

Example

{|
| ((Cell color|50|25|100|FFFF00|80FFFF))
|}
50
{|
| ((Cell color|0.7|0|1|bold=yes))
|}
0.7

See also