<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AWeather%2Fdoc</id>
	<title>Module:Weather/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AWeather%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Weather/doc&amp;action=history"/>
	<updated>2026-05-06T22:43:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Weather/doc&amp;diff=147626&amp;oldid=prev</id>
		<title>imported&gt;Johnuniq: show parameters; tweaks</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Weather/doc&amp;diff=147626&amp;oldid=prev"/>
		<updated>2016-09-13T10:23:17Z</updated>

		<summary type="html">&lt;p&gt;show parameters; tweaks&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;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.&lt;br /&gt;
&lt;br /&gt;
*Input numbers must use a hyphen if negative (Unicode minus &amp;quot;−&amp;quot; would give an error).&lt;br /&gt;
*All displayed numbers (including inputs) use Unicode minus if negative.&lt;br /&gt;
*The input consists of 13 values, separated by any number of spaces.&lt;br /&gt;
*Each of the 13 values must be a number. Any invalid value results in the corresponding cell being blank with no error message or tracking category.&lt;br /&gt;
&lt;br /&gt;
The following functions are available:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function !! Input !! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;CtoF&amp;lt;/code&amp;gt; || °C || °C&amp;lt;br&amp;gt;(°F)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;FfromC&amp;lt;/code&amp;gt; || °C || °F&amp;lt;br&amp;gt;(°C)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;CfromF&amp;lt;/code&amp;gt; || °F || °C&amp;lt;br&amp;gt;(°F)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;FtoC&amp;lt;/code&amp;gt; || °F || °F&amp;lt;br&amp;gt;(°C)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following templates use the module:&lt;br /&gt;
*[[Template:Avg temp row C/sandbox]]&lt;br /&gt;
*[[Template:Avg temp row F/sandbox]]&lt;br /&gt;
&lt;br /&gt;
An example using the above templates and the module is at:&lt;br /&gt;
*[[Special:PermanentLink/738622674|sandbox permalink]]&lt;br /&gt;
&lt;br /&gt;
The output can be examined by entering the following example at [[Special:ExpandTemplates]]. The output from each of the following lines is identical.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:weather|CtoF|-10 -5 0 5 10 15 20 25 30 35 40 45 50}}&lt;br /&gt;
----&lt;br /&gt;
{{#invoke:weather|CfromF|14 23 32 41 50 59 68 77 86 95 104 113 122}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Optional parameter&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;lt;code&amp;gt;|palette=&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&lt;br /&gt;
*:Where &amp;#039;&amp;#039;name&amp;#039;&amp;#039; is the built-in name of a palette:&lt;br /&gt;
*::cool (default)&lt;br /&gt;
*::cool2 (modified)&lt;br /&gt;
*::cool2avg (modified and intended for average temperatures)&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
The function &amp;lt;code&amp;gt;show&amp;lt;/code&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Optional parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*Two unnamed parameters may be entered to specify the first and last Celsius temperatures (&amp;lt;code&amp;gt;|-90|59&amp;lt;/code&amp;gt; by default).&lt;br /&gt;
*The palette can be specified with &amp;lt;code&amp;gt;|palette=&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;name&amp;#039;&amp;#039; as above.&lt;br /&gt;
&lt;br /&gt;
The following codes produce the same result:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:weather|show}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:weather|show|palette=cool}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#invoke:weather|show|palette=cool}}&lt;br /&gt;
&lt;br /&gt;
Modified palette:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:weather|show|palette=cool2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{#invoke:weather|show|palette=cool2}}&lt;br /&gt;
&lt;br /&gt;
This modified palette is intended for average temperatures. It results in good colors between the extreme highest average monthly temperature of {{convert|+39|C}} in [[Death Valley]], California, and {{convert|-68|C}}, 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 &amp;#039;&amp;#039;average&amp;#039;&amp;#039; temperatures recorded on Earth, not to be confused with the highest and lowest records, which are quite a bit hotter and colder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:weather|show|palette=cool2avg}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
{{#invoke:weather|show|palette=cool2avg}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Johnuniq</name></author>
	</entry>
</feed>