Template:Climate

From Wikivoyage
Jump to navigation Jump to search
[view] [edit] [history] [purge] Template-info.svg Template documentation

Template:Climate formats simple climate info. Give it Metric or Imperial units of measure depending which is appropriate for the location you describe.

Part of Project:Climate Expedition, internally uses {{Climate chart}}.

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:

Climate
Climate chart (explanation)
JFMAMJJASOND
 
 
 
0
 
 
36
25
 
 
 
0
 
 
36
25
 
 
 
0
 
 
39
26
 
 
 
0
 
 
41
27
 
 
 
0
 
 
44
28
 
 
 
0
 
 
47
30
 
 
 
0
 
 
46
32
 
 
 
0
 
 
45
31
 
 
 
0
 
 
43
32
 
 
 
0
 
 
42
30
 
 
 
0
 
 
39
27
 
 
 
0
 
 
37
26
Average max. and min. temperatures in °C
Precipitation+Snow totals in mm
In summary, it's really hot, all the time.
Imperial conversion
JFMAMJJASOND
 
 
 
0
 
 
97
77
 
 
 
0
 
 
97
77
 
 
 
0
 
 
102
79
 
 
 
0
 
 
106
81
 
 
 
0
 
 
111
82
 
 
 
0
 
 
117
86
 
 
 
0
 
 
115
90
 
 
 
0
 
 
113
88
 
 
 
0
 
 
109
90
 
 
 
0
 
 
108
86
 
 
 
0
 
 
102
81
 
 
 
0
 
 
99
79
Average max. and min. temperatures in °F
Precipitation+Snow totals in inches

Several other statistics can be displayed, if they're relevant. These are precipitation (which is technically defined as all forms of water: rain, snow, etc.), snowfall, sunlight, and sea temperatures. It's hard to think of a place where all of these would be relevant, but one example might be McMurdo Station, the largest community on Antarctica:


Climate
Climate chart (explanation)
JFMAMJJASOND
 
 
 
3
0.6
 
 
31
24
 
 
 
9
1.1
 
 
19
12
 
 
 
4
0.6
 
 
3
−6
 
 
 
5
0.7
 
 
1
−10
 
 
 
7
0.8
 
 
−6
−16
 
 
 
7
1.1
 
 
−5
−16
 
 
 
6
0.7
 
 
−7
−19
 
 
 
3
0.5
 
 
−9
−21
 
 
 
3
0.4
 
 
−5
−18
 
 
 
5
0.8
 
 
6
−4
 
 
 
3
0.5
 
 
20
12
 
 
 
4
0.6
 
 
31
24
Average max. and min. temperatures in °F
Precipitation+Snow totals in inches
Even in the mildest places, Antarctica is a very difficult place to live.
Metric conversion
JFMAMJJASOND
 
 
 
76
15
 
 
−1
−4
 
 
 
229
28
 
 
−7
−11
 
 
 
102
15
 
 
−16
−21
 
 
 
127
18
 
 
−17
−23
 
 
 
178
20
 
 
−21
−27
 
 
 
178
28
 
 
−21
−27
 
 
 
152
18
 
 
−22
−28
 
 
 
76
13
 
 
−23
−29
 
 
 
76
10
 
 
−21
−28
 
 
 
127
20
 
 
−14
−20
 
 
 
76
13
 
 
−7
−11
 
 
 
102
15
 
 
−1
−4
Average max. and min. temperatures in °C
Precipitation+Snow totals in mm

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:

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
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.

The additional parameters that this template accepts are:

xxxsnow
The average snowfall for the month, in centimeters (metric) or inches (imperial).
xxxsun
The average hours/day of sunlight for the month.
xxxh2o
The average sea temperature for the month, in °C (metric) or °F (imperial).

Temperatures should be populated for every month, but for the other values (precipitation, snowfall, and sunlight), instead of 0 you can put a hyphen (-) to make it visually clearer that "there is no precipitation/snowfall/sunlight 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 =
| jansun =
| febsun =
| marsun =
| aprsun =
| maysun =
| junsun =
| julsun =
| augsun =
| sepsun =
| octsun =
| novsun =
| decsun =
| janh2o =
| febh2o =
| marh2o =
| aprh2o =
| mayh2o =
| junh2o =
| julh2o =
| augh2o =
| seph2o =
| octh2o =
| novh2o =
| dech2o =
| 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}} - 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.
  • {{forecastNOAA}} - The same as {{forecast}}, but it is for inline use and only generates the link to the NOAA forecast.

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.

Template parameters

ParameterDescriptionTypeStatus
Alignalign

Either "right", "left", "center" or "none". Default is "right". A value of "none" will display the table inline.

Stringoptional
Janhighjanhigh

The average high temperature for January

Numbersuggested
Febhighfebhigh

The average high temperature for February

Numbersuggested
Marhighmarhigh

The average high temperature for March

Numbersuggested
Aprhighaprhigh

The average high temperature for April

Numbersuggested
Mayhighmayhigh

The average high temperature for May

Numbersuggested
Junhighjunhigh

The average high temperature for June

Numbersuggested
Julhighjulhigh

The average high temperature for July

Numbersuggested
Aughighaughigh

The average high temperature for August

Numbersuggested
Sephighsephigh

The average high temperature for September

Numbersuggested
Octhighocthigh

The average high temperature for October

Numbersuggested
Novhighnovhigh

The average high temperature for November

Numbersuggested
Dechighdechigh

The average high temperature for December

Numbersuggested
Unitsunits

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.

Stringrequired
Janlowjanlow

The average low temperature for January

Numbersuggested
Feblowfeblow

The average low temperature for February

Numbersuggested
Marlowmarlow

The average low temperature for March

Numbersuggested
Aprlowaprlow

The average low temperature for April

Numbersuggested
Maylowmaylow

The average low temperature for May

Numbersuggested
Junlowjunlow

The average low temperature for June

Numbersuggested
Jullowjullow

The average low temperature for July

Numbersuggested
Auglowauglow

The average low temperature for August

Numbersuggested
Seplowseplow

The average low temperature for September

Numbersuggested
Octlowoctlow

The average low temperature for October

Numbersuggested
Novlownovlow

The average low temperature for November

Numbersuggested
Declowdeclow

The average low temperature for December

Numbersuggested
Janprecipjanprecip

The average rainfall amount for January

Numbersuggested
Febprecipfebprecip

The average rainfall amount for February

Numbersuggested
Marprecipmarprecip

The average rainfall amount for March

Numbersuggested
Aprprecipaprprecip

The average rainfall amount for April

Numbersuggested
Mayprecipmayprecip

The average rainfall amount for May

Numbersuggested
Junprecipjunprecip

The average rainfall amount for June

Numbersuggested
Julprecipjulprecip

The average rainfall amount for July

Numbersuggested
Augprecipaugprecip

The average rainfall amount for August

Numbersuggested
Sepprecipsepprecip

The average rainfall amount for September

Numbersuggested
Octprecipoctprecip

The average rainfall amount for October

Numbersuggested
Novprecipnovprecip

The average rainfall amount for November

Numbersuggested
Decprecipdecprecip

The average rainfall amount for December

Numbersuggested
Jansnowjansnow

The average snowfall amount for January

Numberoptional
Febsnowfebsnow

The average snowfall amount for February

Numberoptional
Marsnowmarsnow

The average snowfall amount for March

Numberoptional
Aprsnowaprsnow

The average snowfall amount for April

Numberoptional
Maysnowmaysnow

The average snowfall amount for May

Numberoptional
Junsnowjunsnow

The average snowfall amount for June

Numberoptional
Julsnowjulsnow

The average snowfall amount for July

Numberoptional
Augsnowaugsnow

The average snowfall amount for August

Numberoptional
Sepsnowsepsnow

The average snowfall amount for September

Numberoptional
Octsnowoctsnow

The average snowfall amount for October

Numberoptional
Novsnownovsnow

The average snowfall amount for November

Numberoptional
Decsnowdecsnow

The average snowfall amount for December

Numberoptional
Jansunjansun

The average amount of sunlight per day for January

Numberoptional
Febsunfebsun

The average amount of sunlight per day for February

Numberoptional
Marsunmarsun

The average amount of sunlight per day for March

Numberoptional
Aprsunaprsun

The average amount of sunlight per day for April

Numberoptional
Maysunmaysun

The average amount of sunlight per day for May

Numberoptional
Junsunjunsun

The average amount of sunlight per day for June

Numberoptional
Julsunjulsun

The average amount of sunlight per day for July

Numberoptional
Augsunaugsun

The average amount of sunlight per day for August

Numberoptional
Sepsunsepsun

The average amount of sunlight per day for September

Numberoptional
Octsunoctsun

The average amount of sunlight per day for October

Numberoptional
Novsunnovsun

The average amount of sunlight per day for November

Numberoptional
Decsundecsun

The average amount of sunlight per day for December

Numberoptional
Janh2ojanh2o

The average sea temperature for January

Numberoptional
Febh2ofebh2o

The average sea temperature for February

Numberoptional
Marh2omarh2o

The average sea temperature for March

Numberoptional
Aprh2oaprh2o

The average sea temperature for April

Numberoptional
Mayh2omayh2o

The average sea temperature for May

Numberoptional
Junh2ojunh2o

The average sea temperature for June

Numberoptional
Julh2ojulh2o

The average sea temperature for July

Numberoptional
Augh2oaugh2o

The average sea temperature for August

Numberoptional
Seph2oseph2o

The average sea temperature for September

Numberoptional
Octh2oocth2o

The average sea temperature for October

Numberoptional
Novh2onovh2o

The average sea temperature for November

Numberoptional
Dech2odech2o

The average sea temperature for December

Numberoptional
Descriptiondescription

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.

Example
Source: Wikipedia. See a five day forecast for XXX here.
Stringrequired