This template is designed to display a hot/cold colour spectrum for graphs and other visual aids.
For example, {{Hotcold|magnitude=0}}
makes a plain coloured cell.
The colour of the cell is controlled by the magnitude value.
Text can be added to the cell by adding an additional parameter {{Hotcold|magnitude=0|text}}
This would produce a cell with the word "text" in it.
See examples in the table below.
Examples
editExample code | Output |
---|---|
{{Hotcold|magnitude=-1|Coldest}}
|
Coldest |
{{Hotcold|magnitude=0|text}}
|
text |
{{Hotcold|magnitude=1|12345}}
|
12345 |
{{Hotcold|magnitude=2}}
|
|
{{Hotcold|magnitude=3}}
|
|
{{Hotcold|magnitude=4}}
|
|
{{Hotcold|magnitude=5}}
|
|
{{Hotcold|magnitude=6}}
|
|
{{Hotcold|magnitude=7}}
|
|
{{Hotcold|magnitude=8}}
|
|
{{Hotcold|magnitude=9|text}}
|
text |
{{Hotcold|magnitude=10|Hottest}}
|
Hottest |