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!
== Testing == The function <code>show</code> 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''' *Two unnamed parameters may be entered to specify the first and last Celsius temperatures (<code>|-90|59</code> by default). *The palette can be specified with <code>|palette=</code>''name'' as above. The following codes produce the same result: * <code><nowiki>{{#invoke:weather|show}}</nowiki></code> * <code><nowiki>{{#invoke:weather|show|palette=cool}}</nowiki></code> {{#invoke:weather|show|palette=cool}} Modified palette: * <code><nowiki>{{#invoke:weather|show|palette=cool2}}</nowiki></code> {{#invoke:weather|show|palette=cool2}} 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 ''average'' temperatures recorded on Earth, not to be confused with the highest and lowest records, which are quite a bit hotter and colder. * <code><nowiki>{{#invoke:weather|show|palette=cool2avg}}</nowiki></code> {{#invoke:weather|show|palette=cool2avg}}
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)