Template:Climate/doc

This template allows a collection of climate information to be placed on a page. Suggested usage is as follows:

Basic usage
In this example we'll create a temperature chart for average temperates throughout the Faerûrian year.

This produces:

Note that in this example, the month names are filled in automatically, but the upper limit is too great, leaving a big gap between the highest bar and the top of the empty bar.

Custom title
By default, the title of the climate chart area will say "Climate for article", where 'article' is the name of the article. If you want to change this, you can do so:

This produces:

Source
Useful for specifying a source for your climate data. Use the format. Bear in mind that unless the page on which the template is used contains a tag, the source will not show up.

This produces:

Note that references are displayed below for the purposes of the demonstration. The reference here is not valid.

Specifying a maximum
In this example, we use the same data as before, but set a maximum value for the bars.

This produces:

The data is the same, but the excessively tall empty bars are trimmed down.

Custom periods
If you do not want a chart of the twelve months, you can specify your own periods. If you do this, you must specify labels, otherwise the default month names will be used, and will be inappropriate.

This produces:

Custom units
It is possible to change the units displayed on the charts, as follows:

This will produce:

This does have the unfortunate effect of making the bars quite small, but there is a workaround in the next section.

Minimum values
If you need to use negative values (for temperature, for example) you can specify a minimum value as well as a maximum. You are not required to specify a maximum if you specify a minimum – if one is not provided, the default will be used. A side effect of this is that you can make the bars longer by supplying a lower minimum.

This produces:

Rainfall
You can specify rainfall in the same way as you specify temperature. The key difference here is that you cannot specify negative numbers for rainfall, because this is nonsensical. The other difference is that annual precipitation is calculated automatically.

This produces:

Overriding automatic rainfall calculation
If desired, you can specify a custom total rainfall to display on the chart. The main use for this is to specify annual precipitation without showing the rainfall bars on the chart.

This produces:

Custom chart period
If your chart does not represent an annual period, you can change this label on precipitation. In this example, we are creating a rainfall chart that runs for 4 months of the year. Note that if you are not including rainfall on the chart, changing the chart period will have no visible effect.

This produces:

High, low and average temperature, and snow days
For your chart period, you can optionally specify highest, lowest and average temperatures as well as the number of days that snow covers the ground. This is independent of the need to have a temperature chart on the climate area. In fact, you need not have any charts at all, if so desired.

This will produce:

Full example
This is a complete example, demonstrating all the features of the template. You will probably not need to use all the features at once like this.

This produces: