Jump to content

Template:Weather box/samples/temperature

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by 117Avenue (talk | contribs) at 05:03, 6 March 2013 (add usage). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


Usage

[edit]

Template:Weather box/colt can be used to produce a background color in a table cell, based off a given number. Insert {{Weather box/colt|0}}, with a number from the Celsius table above as the first parameter, into a style statement.

Example
{| class="wikitable"
|-
| style="{{Weather box/colt|0.0}}"|32
| style="{{Weather box/colt|28.9}}"|84
| style="{{Weather box/colt|63.3}}"|146
|}

Will produce

32 84 146