• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Hotcold

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

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

Table cell templates
Example 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


Notes

The above documentation is transcluded from Template:Hotcold/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Hotcold&oldid=6957512"
Last edited on 13 March 2015, at 16:30

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 13 March 2015, at 16:30.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop