This module can be used to display temperatures in a table. It is under development and is intended to be efficient so a page can hold many tables.
The following functions are available:
Function | Input | Output | |
---|---|---|---|
CtoF | °C | °C (°F) | |
FfromC | °C | °F (°C) | |
CfromF | °F | °C (°F) | |
FtoC | °F | °F (°C) |
The following templates use the module:
An example using the above templates and the module is at:
The output can be examined by entering the following example at . The output from each of the following lines is identical.
{{#invoke:weather|CtoF|-10 -5 0 5 10 15 20 25 30 35 40 45 50}} ---- {{#invoke:weather|CfromF|14 23 32 41 50 59 68 77 86 95 104 113 122}}
Optional parameter
|palette=
nameWhere name is the built-in name of a palette:
cool (default)
cool2 (modified)
cool2avg (modified and intended for average temperatures)
The function show
provides a way to test the color schemes. It generates a graph of how the red, green, and blue portions of the color vary with temperature, and a table of the full range of temperatures in °C.
Optional parameters
|-90|59
by default).|palette=
name as above.The following codes produce the same result:
<nowiki>{{#invoke:weather|show}}</nowiki>
<nowiki>{{#invoke:weather|show|palette=cool}}</nowiki>
Modified palette:
<nowiki>{{#invoke:weather|show|palette=cool2}}</nowiki>
This modified palette is intended for average temperatures. It results in good colors between the extreme highest average monthly temperature of in Death Valley, California, and, the extreme lowest average monthly temperature at Vostok Station, at a high elevation on the Antarctic ice sheet. These are the highest and lowest known average temperatures recorded on Earth, not to be confused with the highest and lowest records, which are quite a bit hotter and colder.
<nowiki>{{#invoke:weather|show|palette=cool2avg}}</nowiki>