Template:Climate/doc

To have common look throughout all articles, this legacy template transforms into Climate chart. Similarly, also Weather box results in the same result and allows simple adding of wikipedia data.

As of now, only precipitation, snowfall and low/high air temperatures are shown in the graph. Both imperial and metric units are supported. If precipitation is too high and mangles the graph, add 'maxprecip' argument to clamp it down.

Quick how-to
At a minimum, this template should be used to display average high and low temperatures. There's really no place where travellers wouldn't want to know the average temperatures. Here's what the climate chart for Dallol, Ethiopia, the hottest inhabited place on Earth, would look like:

If they're relevant, precipitation (which is technically defined as all forms of water: rain, snow, etc.) and snowfall can be shown too.

Of those, precipitation is often nice to have, and snowfall is useful in places with a lot of snow, especially in ski resorts and other places where people go to find snow.

Autogenerating
For U.S. destinations, http://mountaininterval.org/wikivoyage/climate.html can be used to automatically generate climate templates populated with data from the NOAA monthly normal dataset (1981-2010) that can then be copied into Wikivoyage articles.

Manual entry
Template parameters:
 * title
 * Table title. If the parameter is omitted, the article name will be displayed as the table title. If the parameter is included, but with no value, no title will be displayed.
 * units
 * Either "metric" or "imperial". Set units = Metric if the table is using Metric units (Celsius and centimeters) or to units = Imperial for Imperial units (Fahrenheit and inches). Please use units of measure appropriate to the location the page describes (Imperial in USA but Metric almost everywhere else) per Project:Measurements.
 * align
 * Either "right", "left", "center" or "none". Default is "right".  A value of "none" will display the table inline.
 * xxxhigh
 * The average high temperature for the month, in °C (metric) or °F (imperial).
 * xxxlow
 * The average low temperature for the month, in °C (metric) or °F (imperial).
 * xxxprecip
 * The average rainfall amount for the month, in millimeters (metric) or inches (imperial).
 * description
 * maxprecip
 * Maximum rainfall of any months - used to clamp the graph in case of extreme values that don't fit.
 * Optional text that will be displayed at the bottom of the climate table. This field is often used to include the forecastNOAA daily forecast or other information related to the climate data.

Temperatures should be populated for every month, but for the other values (precipitation, snowfall), instead of 0 you can put a hyphen (-) to make it visually clearer that "there is no precipitation/snowfall this month". (See the example for McMurdo Station, Antarctica, above.)

Copy and paste the below wiki markup into a page and give values to as many of the parameters as you wish to use (empty parameters will be gracefully ignored by the template).

Related templates

 * forecast/US - Given a latitude and longitude, this template will provide a link to a National Weather Service website that provides an up-to-date weather forecast for the specified locale. This feature is only available for U.S. locales.
 * forecast/AU - the same as forecast/US, but works for Australian locales instead.
 * forecastNOAA - the same as forecast/US, but it is for inline use and only generates the link to the NOAA forecast.

Template data
{	"params": { "align": { "description": "Alignment of where the template will be displayed relative the text of of the article. Either \"right\", \"left\", \"center\" or \"none\". Default is \"right\". A value of \"none\" will display the table inline.", "type": "string", "label": "Template alignment", "default": "right", "suggestedvalues": ["left","right","center","none"] },		"janhigh": { "description": "Average daily high temperature during January. If the units of measurement are metric, this value is in Celcius (C).  If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Jan average high temp", "example": "-5" },		"febhigh": { "description": "Average daily high temperature during February. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Feb average high temp", "example": "-2" },		"marhigh": { "description": "Average daily high temperature during March. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Mar average high temp", "example": "2" },		"aprhigh": { "description": "Average daily high temperature during April. Average daily high temperature during April. If the units of measurement are metric, this value is in Celcius (C).  If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Apr average high temp", "example": "5" },		"mayhigh": { "description": "Average daily high temperature during May. If the units of measurement are metric, this value is in Celcius (C).  If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "May average high temp", "example": "10" },		"junhigh": { "description": "Average daily high temperature during June. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Jun average high temp", "example": "15" },		"julhigh": { "description": "Average daily high temperature during July. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Jul average high temp", "example": "20" },		"aughigh": { "description": "Average daily high temperature during August. If the units of measurement are metric, this value is in Celcius (C).  If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Aug average high temp", "example": "18" },		"sephigh": { "description": "Average daily high temperature during September. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Sep average high temp", "example": "18" },		"octhigh": { "description": "Average daily high temperature during October. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Oct average high temp", "example": "12" },		"novhigh": { "description": "Average daily high temperature during November. If the units of measurement are metric, this value is in Celcius (C).  If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Nov average high temp", "example": "7" },		"dechigh": { "description": "Average daily high temperature during December. If the units of measurement are metric, this value is in Celcius (C).  If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Dec average high temp", "example": "-3" },		"units": { "description": "Specify \"metric\" or \"imperial\". If set to \"metric\" the template will indicate the temperature units of measure are in Celsius (C), and rain and snow units of measurement are in millimeters (mm). If set to \"imperial\" the template will indicate the temperature units of measure are in Fahrenheit (F), and rain and snow units of measurement are in inches. ", "type": "string", "required": true, "label": "Units of measurement", "suggestedvalues": ["metric","imperial"] },		"janlow": { "description": "Average daily low temperature during January. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Jan average low temp", "example": "-20" },		"feblow": { "description": "Average daily low temperature during February. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Feb average low temp", "example": "-17" },		"marlow": { "description": "Average daily low temperature during Marh. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Mar average low temp", "example": "-10" },		"aprlow": { "description": "Average daily low temperature during April. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Apr average low temp", "example": "0" },		"maylow": { "description": "Average daily low temperature during May. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "May average low temp", "example": "3" },		"junlow": { "description": "Average daily low temperature during June. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Jun average low temp", "example": "8" },		"jullow": { "description": "Average daily low temperature during July. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Jul average low temp", "example": "12" },		"auglow": { "description": "Average daily low temperature during August. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Aug average low temp", "example": "9" },		"seplow": { "description": "Average daily low temperature during September. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Sep average low temp", "example": "7" },		"octlow": { "description": "Average daily low temperature during October. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Oct average low temp", "example": "2" },		"novlow": { "description": "Average daily low temperature during November. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Nov average low temp", "example": "-8" },		"declow": { "description": "Average daily low temperature during December. If the units of measurement are metric, this value is in Celcius (C). If the units of measurement are imperial, this value is in Fahrenheit (F).", "suggested": true, "type": "number", "label": "Dec average low temp", "example": "-15" },		"janprecip": { "description": "Average total rain for January. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Jan average rain", "example": "2" },		"febprecip": { "description": "Average total rain for February. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Feb average rain", "example": "2" },		"marprecip": { "description": "Average total rain for March. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Mar average rain", "example": "2" },		"aprprecip": { "description": "Average total rain for April. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Apr average rain", "example": "2" },		"mayprecip": { "description": "Average total rain for May. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "May average rain", "example": "2" },		"junprecip": { "description": "Average total rain for June. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Jun average rain", "example": "2" },		"julprecip": { "description": "Average total rain for July. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Jul average rain", "example": "2" },		"augprecip": { "description": "Average total rain for August. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Aug average rain", "example": "2" },		"sepprecip": { "description": "Average total rain for September. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Sep average rain", "example": "2" },		"octprecip": { "description": "Average total rain for October. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Oct average rain", "example": "2" },		"novprecip": { "description": "Average total rain for November. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Nov average rain", "example": "2" },		"decprecip": { "description": "Average total rain for December. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "suggested": true, "type": "number", "label": "Dec average rain", "example": "2" },		"jansnow": { "description": "Average total snowfall for January. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Jan average snowfall", "example": "2" },		"febsnow": { "description": "Average total snowfall for February. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Feb average snowfall", "example": "2" },		"marsnow": { "description": "Average total snowfall for March. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Mar average snowfall", "example": "2" },		"aprsnow": { "description": "Average total snowfall for April. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Apr average snowfall", "example": "2" },		"maysnow": { "description": "Average total snowfall for May. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "May average snowfall", "example": "2" },		"junsnow": { "description": "Average total snowfall for June. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Jun average snowfall", "example": "2" },		"julsnow": { "description": "Average total snowfall for July. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Jul average snowfall", "example": "2" },		"augsnow": { "description": "Average total snowfall for August. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Aug average snowfall", "example": "2" },		"sepsnow": { "description": "Average total snowfall for September. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Sep average snowfall", "example": "2" },		"octsnow": { "description": "Average total snowfall for October. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Oct average snowfall", "example": "2" },		"novsnow": { "description": "Average total snowfall for November. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Nov average snowfall", "example": "2" },		"decsnow": { "description": "Average total snowfall for December. If the units of measurement are metric, this value is in millimetres (mm). If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Dec average snowfall", "example": "2" },		"maxprecip": { "description": "Useful in case the graph is mangled, to clamp down the bars. If the units of measurement are metric, this value is in millimetres (mm).  If the units of measurement are imperial, this value is in inches (in).", "type": "number", "label": "Maximum Monthly Precipitation", "example": "24" },		"description": { "description": "For identifying the source of the data in this template and for linking to forecasts. This field is often used to include the  daily forecast or other information related to the climate data.", "example": "Source: Wikipedia. See a five day forecast for XXX here.", "type": "string", "required": true, "label": "Description" },		"title": { "label": "Location title", "description": "Optional field. By default, the article name will be displayed location of where the information in this template pertains to.  If this field is set, it will replace the the article name with what is specified in this field.", "example": "Sydney" }	},	"description": "This template formats simple climate info. Give it Metric or Imperial units of measure depending which is appropriate for the location you describe. Note: For US destinations http://mountaininterval.org/wikivoyage/climate.html can be used to automatically generate templates populated with data from the NOAA monthly normal dataset (1981-2010) that can then be copied into Wikivoyage articles.", "paramOrder": [ "title", "align", "units", "description", "janhigh", "febhigh", "marhigh", "aprhigh", "mayhigh", "junhigh", "julhigh", "aughigh", "sephigh", "octhigh", "novhigh", "dechigh", "janlow", "feblow", "marlow", "aprlow", "maylow", "junlow", "jullow", "auglow", "seplow", "octlow", "novlow", "declow", "janprecip", "febprecip", "marprecip", "aprprecip", "mayprecip", "junprecip", "julprecip", "augprecip", "sepprecip", "octprecip", "novprecip", "decprecip", "jansnow", "febsnow", "marsnow", "aprsnow", "maysnow", "junsnow", "julsnow", "augsnow", "sepsnow", "octsnow", "novsnow", "decsnow", "maxprecip" ] }