Template:Climate/sandbox
This is the template sandbox page for Template:Climate (diff). |
This template uses TemplateStyles: |
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
[edit]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:
sandbox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Climate chart (explanation) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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.
Usage
[edit]Autogenerating
[edit]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
[edit]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).
{{Climate| units = Metric
| 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 =
| description = '''Here''' type some descriptive text about the location's climate. No literal line breaks are permitted in this text but <br/> and other correctly formatted HTML is okay. See [[Template talk:ClimateDev1#Note]] if an '''equal sign''' is needed in the text.
}}
Related templates
[edit]- {{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
[edit]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 {{climate}} templates populated with data from the NOAA monthly normal dataset (1981-2010) that can then be copied into Wikivoyage articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Location title | title | 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.
| Unknown | optional |
Template alignment | align | 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.
| String | optional |
Units of measurement | units | 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.
| String | required |
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 {{forecastNOAA}} daily forecast or other information related to the climate data.
| String | required |
Jan average high temp | janhigh | 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).
| Number | suggested |
Feb average high temp | febhigh | 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).
| Number | suggested |
Mar average high temp | marhigh | 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).
| Number | suggested |
Apr average high temp | aprhigh | 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).
| Number | suggested |
May average high temp | mayhigh | 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).
| Number | suggested |
Jun average high temp | junhigh | 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).
| Number | suggested |
Jul average high temp | julhigh | 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).
| Number | suggested |
Aug average high temp | aughigh | 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).
| Number | suggested |
Sep average high temp | sephigh | 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).
| Number | suggested |
Oct average high temp | octhigh | 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).
| Number | suggested |
Nov average high temp | novhigh | 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).
| Number | suggested |
Dec average high temp | dechigh | 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).
| Number | suggested |
Jan average low temp | janlow | 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).
| Number | suggested |
Feb average low temp | feblow | 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).
| Number | suggested |
Mar average low temp | marlow | 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).
| Number | suggested |
Apr average low temp | aprlow | 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).
| Number | suggested |
May average low temp | maylow | 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).
| Number | suggested |
Jun average low temp | junlow | 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).
| Number | suggested |
Jul average low temp | jullow | 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).
| Number | suggested |
Aug average low temp | auglow | 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).
| Number | suggested |
Sep average low temp | seplow | 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).
| Number | suggested |
Oct average low temp | octlow | 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).
| Number | suggested |
Nov average low temp | novlow | 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).
| Number | suggested |
Dec average low temp | declow | 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).
| Number | suggested |
Jan average rain | janprecip | 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).
| Number | suggested |
Feb average rain | febprecip | 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).
| Number | suggested |
Mar average rain | marprecip | 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).
| Number | suggested |
Apr average rain | aprprecip | 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).
| Number | suggested |
May average rain | mayprecip | 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).
| Number | suggested |
Jun average rain | junprecip | 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).
| Number | suggested |
Jul average rain | julprecip | 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).
| Number | suggested |
Aug average rain | augprecip | 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).
| Number | suggested |
Sep average rain | sepprecip | 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).
| Number | suggested |
Oct average rain | octprecip | 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).
| Number | suggested |
Nov average rain | novprecip | 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).
| Number | suggested |
Dec average rain | decprecip | 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).
| Number | suggested |
Jan average snowfall | jansnow | 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).
| Number | optional |
Feb average snowfall | febsnow | 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).
| Number | optional |
Mar average snowfall | marsnow | 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).
| Number | optional |
Apr average snowfall | aprsnow | 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).
| Number | optional |
May average snowfall | maysnow | 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).
| Number | optional |
Jun average snowfall | junsnow | 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).
| Number | optional |
Jul average snowfall | julsnow | 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).
| Number | optional |
Aug average snowfall | augsnow | 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).
| Number | optional |
Sep average snowfall | sepsnow | 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).
| Number | optional |
Oct average snowfall | octsnow | 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).
| Number | optional |
Nov average snowfall | novsnow | 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).
| Number | optional |
Dec average snowfall | decsnow | 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).
| Number | optional |
Maximum Monthly Precipitation | maxprecip | 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).
| Number | optional |
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 {{climate}} templates populated with data from the NOAA monthly normal dataset (1981-2010) that can then be copied into Wikivoyage articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
align | align | Either "right", "left", "center" or "none". Default is "right". A value of "none" will display the table inline. | String | optional |
janhigh | janhigh | The average high temperature for January | Number | suggested |
febhigh | febhigh | The average high temperature for February | Number | suggested |
marhigh | marhigh | The average high temperature for March | Number | suggested |
aprhigh | aprhigh | The average high temperature for April | Number | suggested |
mayhigh | mayhigh | The average high temperature for May | Number | suggested |
junhigh | junhigh | The average high temperature for June | Number | suggested |
julhigh | julhigh | The average high temperature for July | Number | suggested |
aughigh | aughigh | The average high temperature for August | Number | suggested |
sephigh | sephigh | The average high temperature for September | Number | suggested |
octhigh | octhigh | The average high temperature for October | Number | suggested |
novhigh | novhigh | The average high temperature for November | Number | suggested |
dechigh | dechigh | The average high temperature for December | Number | suggested |
units | 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. | String | required |
janlow | janlow | The average low temperature for January | Number | suggested |
feblow | feblow | The average low temperature for February | Number | suggested |
marlow | marlow | The average low temperature for March | Number | suggested |
aprlow | aprlow | The average low temperature for April | Number | suggested |
maylow | maylow | The average low temperature for May | Number | suggested |
junlow | junlow | The average low temperature for June | Number | suggested |
jullow | jullow | The average low temperature for July | Number | suggested |
auglow | auglow | The average low temperature for August | Number | suggested |
seplow | seplow | The average low temperature for September | Number | suggested |
octlow | octlow | The average low temperature for October | Number | suggested |
novlow | novlow | The average low temperature for November | Number | suggested |
declow | declow | The average low temperature for December | Number | suggested |
janprecip | janprecip | The average rainfall amount for January | Number | suggested |
febprecip | febprecip | The average rainfall amount for February | Number | suggested |
marprecip | marprecip | The average rainfall amount for March | Number | suggested |
aprprecip | aprprecip | The average rainfall amount for April | Number | suggested |
mayprecip | mayprecip | The average rainfall amount for May | Number | suggested |
junprecip | junprecip | The average rainfall amount for June | Number | suggested |
julprecip | julprecip | The average rainfall amount for July | Number | suggested |
augprecip | augprecip | The average rainfall amount for August | Number | suggested |
sepprecip | sepprecip | The average rainfall amount for September | Number | suggested |
octprecip | octprecip | The average rainfall amount for October | Number | suggested |
novprecip | novprecip | The average rainfall amount for November | Number | suggested |
decprecip | decprecip | The average rainfall amount for December | Number | suggested |
jansnow | jansnow | The average snowfall amount for January | Number | optional |
febsnow | febsnow | The average snowfall amount for February | Number | optional |
marsnow | marsnow | The average snowfall amount for March | Number | optional |
aprsnow | aprsnow | The average snowfall amount for April | Number | optional |
maysnow | maysnow | The average snowfall amount for May | Number | optional |
junsnow | junsnow | The average snowfall amount for June | Number | optional |
julsnow | julsnow | The average snowfall amount for July | Number | optional |
augsnow | augsnow | The average snowfall amount for August | Number | optional |
sepsnow | sepsnow | The average snowfall amount for September | Number | optional |
octsnow | octsnow | The average snowfall amount for October | Number | optional |
novsnow | novsnow | The average snowfall amount for November | Number | optional |
decsnow | decsnow | The average snowfall amount for December | Number | optional |
jansun | jansun | The average amount of sunlight per day for January | Number | optional |
febsun | febsun | The average amount of sunlight per day for February | Number | optional |
marsun | marsun | The average amount of sunlight per day for March | Number | optional |
aprsun | aprsun | The average amount of sunlight per day for April | Number | optional |
maysun | maysun | The average amount of sunlight per day for May | Number | optional |
junsun | junsun | The average amount of sunlight per day for June | Number | optional |
julsun | julsun | The average amount of sunlight per day for July | Number | optional |
augsun | augsun | The average amount of sunlight per day for August | Number | optional |
sepsun | sepsun | The average amount of sunlight per day for September | Number | optional |
octsun | octsun | The average amount of sunlight per day for October | Number | optional |
novsun | novsun | The average amount of sunlight per day for November | Number | optional |
decsun | decsun | The average amount of sunlight per day for December | Number | optional |
janh2o | janh2o | The average sea temperature for January | Number | optional |
febh2o | febh2o | The average sea temperature for February | Number | optional |
marh2o | marh2o | The average sea temperature for March | Number | optional |
aprh2o | aprh2o | The average sea temperature for April | Number | optional |
mayh2o | mayh2o | The average sea temperature for May | Number | optional |
junh2o | junh2o | The average sea temperature for June | Number | optional |
julh2o | julh2o | The average sea temperature for July | Number | optional |
augh2o | augh2o | The average sea temperature for August | Number | optional |
seph2o | seph2o | The average sea temperature for September | Number | optional |
octh2o | octh2o | The average sea temperature for October | Number | optional |
novh2o | novh2o | The average sea temperature for November | Number | optional |
dech2o | dech2o | The average sea temperature for December | Number | optional |
description | description | 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.
| String | required |