Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Weather/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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. *Input numbers must use a hyphen if negative (Unicode minus "−" would give an error). *All displayed numbers (including inputs) use Unicode minus if negative. *The input consists of 13 values, separated by any number of spaces. *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. The following functions are available: {| class="wikitable" ! Function !! Input !! Output |- | <code>CtoF</code> || °C || °C<br>(°F) |- | <code>FfromC</code> || °C || °F<br>(°C) |- | <code>CfromF</code> || °F || °C<br>(°F) |- | <code>FtoC</code> || °F || °F<br>(°C) |} The following templates use the module: *[[Template:Avg temp row C/sandbox]] *[[Template:Avg temp row F/sandbox]] An example using the above templates and the module is at: *[[Special:PermanentLink/738622674|sandbox permalink]] The output can be examined by entering the following example at [[Special:ExpandTemplates]]. The output from each of the following lines is identical. <pre> {{#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}} </pre> '''Optional parameter''' *<code>|palette=</code>''name'' *:Where ''name'' is the built-in name of a palette: *::cool (default) *::cool2 (modified) *::cool2avg (modified and intended for average temperatures)
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)