Template

Climate/doc

From Halal Explorer

< Template:Climate

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:


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:


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

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

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