Difference between revisions of "Template:Climate chart/doc"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(tidy this up)
imported>Thumperward
(tidy)
Line 24: Line 24:
 
==== Float: right ====
 
==== Float: right ====
  
{{climate chart|[[Amsterdam]]
+
{{ infobox climate chart
 +
| [[Amsterdam]]
 
|-7|-1|40
 
|-7|-1|40
 
|-6|0|28
 
|-6|0|28
Line 41: Line 42:
 
}}
 
}}
 
<pre><nowiki>
 
<pre><nowiki>
{{climate chart|[[Amsterdam]]
+
{{ infobox climate chart
 +
| [[Amsterdam]]
 
|-7|-1|40
 
|-7|-1|40
 
|-6|0|28
 
|-6|0|28
Line 61: Line 63:
 
==== Float: left ====
 
==== Float: left ====
  
{{climate chart|[[Buenos Aires]]
+
{{ infobox climate chart
 +
| [[Buenos Aires]]
 
|17|29|79
 
|17|29|79
 
|17|28|71
 
|17|28|71
Line 78: Line 81:
 
}}
 
}}
 
<pre><nowiki>
 
<pre><nowiki>
{{climate chart|[[Buenos Aires]]
+
{{ infobox climate chart
 +
| [[Buenos Aires]]
 
|17|29|79
 
|17|29|79
 
|17|28|71
 
|17|28|71
Line 98: Line 102:
 
==== Non-float ====
 
==== Non-float ====
  
{{climate chart|[[Coober Pedy]]
+
{{ infobox climate chart
 +
| [[Coober Pedy]]
 
|20.7|36.4|17.4
 
|20.7|36.4|17.4
 
|20.8|35.7|22.8
 
|20.8|35.7|22.8
Line 113: Line 118:
 
}}
 
}}
 
<pre><nowiki>
 
<pre><nowiki>
{{climate chart|[[Coober Pedy]]
+
{{ infobox climate chart
 +
| [[Coober Pedy]]
 
|20.7|36.4|17.4
 
|20.7|36.4|17.4
 
|20.8|35.7|22.8
 
|20.8|35.7|22.8
Line 131: Line 137:
 
==== Imperial units ====
 
==== Imperial units ====
  
{{climate chart|[[Anchorage]]
+
{{ infobox climate chart
 +
| [[Anchorage]]
 
|9|22|.68
 
|9|22|.68
 
|12|26|.74
 
|12|26|.74
Line 149: Line 156:
 
}}
 
}}
 
<pre><nowiki>
 
<pre><nowiki>
{{climate chart|[[Anchorage]]
+
{{ infobox climate chart
 +
| [[Anchorage]]
 
|9|22|.68
 
|9|22|.68
 
|12|26|.74
 
|12|26|.74

Revision as of 17:55, 18 July 2009

This template can be used to create climate charts, with average monthly minimum and maximum temperatures. More information on the interpretation of the chart can be found here.

Usage

argument 1
Appears in the heading
arguments 2-37
The data. Think of it as 12 rows, one for each month, with 3 columns for minimum temperature, maximum temperature and precipitation.
float
left, right or none.
clear
left, right, both or none.
source
Supply the source of your data

Units

In articles where SI units (°C, mm) are preferred, input the data in those units. This is the default state — no further parameters are needed. In articles where imperial units (°F, inches) are preferred, input data in those units and specify the parameter units=imperial (see below). This parameter must be used so that the units are labeled correctly and so the conversion is done properly.

Examples

Float: right

Amsterdam
Climate chart (explanation)
J
F
M
A
M
J
J
A
S
O
N
D
 
 
40
 
 
−1
−7
 
 
28
 
 
0
−6
 
 
29
 
 
5
−2
 
 
26
 
 
11
4
 
 
62
 
 
18
10
 
 
73
 
 
24
15
 
 
73
 
 
26
18
 
 
89
 
 
25
17
 
 
67
 
 
21
13
 
 
52
 
 
14
7
 
 
60
 
 
7
2
 
 
51
 
 
2
−4
Average max. and min. temperatures in °C
Precipitation totals in mm
{{ infobox climate chart
| [[Amsterdam]]
|-7|-1|40
|-6|0|28
|-2|5|29
|4|11|26
|10|18|62
|15|24|73
|18|26|73
|17|25|89
|13|21|67
|7|14|52
|2|7|60
|-4|2|51
|float=right
|clear=both
}}

Float: left

Buenos Aires
Climate chart (explanation)
J
F
M
A
M
J
J
A
S
O
N
D
 
 
79
 
 
29
17
 
 
71
 
 
28
17
 
 
109
 
 
26
16
 
 
89
 
 
22
12
 
 
76
 
 
18
8
 
 
61
 
 
14
5
 
 
56
 
 
14
6
 
 
61
 
 
16
6
 
 
79
 
 
18
8
 
 
86
 
 
21
10
 
 
84
 
 
24
13
 
 
99
 
 
28
16
Average max. and min. temperatures in °C
Precipitation totals in mm
Source: BBC Weather
{{ infobox climate chart
| [[Buenos Aires]]
|17|29|79
|17|28|71
|16|26|109
|12|22|89
|8|18|76
|5|14|61
|6|14|56
|6|16|61
|8|18|79
|10|21|86
|13|24|84
|16|28|99
|float=left
|source=[http://www.bbc.co.uk/weather/ BBC Weather]
}}

Non-float

Coober Pedy
Climate chart (explanation)
J
F
M
A
M
J
J
A
S
O
N
D
 
 
17
 
 
36
21
 
 
23
 
 
36
21
 
 
13
 
 
33
18
 
 
6.5
 
 
28
14
 
 
13
 
 
23
10
 
 
14
 
 
19
7
 
 
7.8
 
 
19
6
 
 
9.2
 
 
21
7
 
 
8.4
 
 
25
10
 
 
15
 
 
29
14
 
 
12
 
 
32
17
 
 
18
 
 
35
19
Average max. and min. temperatures in °C
Precipitation totals in mm
<nowiki>
{{ infobox climate chart
| [[Coober Pedy]]
|20.7|36.4|17.4
|20.8|35.7|22.8
|18.2|32.8|12.9
|14|27.6|6.5
|10.1|23.3|13.1
|7.2|18.8|14.4
|6.3|18.7|7.8
|7.4|20.7|9.2
|10.1|24.5|8.4
|13.6|28.9|14.9
|16.6|32.1|11.6
|19.1|34.6|17.5
}}

</nowiki>

Imperial units

Anchorage
Climate chart (explanation)
J
F
M
A
M
J
J
A
S
O
N
D
 
 
0.7
 
 
22
9
 
 
0.7
 
 
26
12
 
 
0.7
 
 
34
18
 
 
0.5
 
 
44
29
 
 
0.7
 
 
55
39
 
 
1.1
 
 
62
47
 
 
1.7
 
 
65
52
 
 
2.9
 
 
63
49
 
 
2.9
 
 
55
41
 
 
2.1
 
 
40
28
 
 
1.1
 
 
28
16
 
 
1.1
 
 
24
11
Average max. and min. temperatures in °F
Precipitation totals in inches
{{ infobox climate chart
| [[Anchorage]]
|9|22|.68
|12|26|.74
|18|34|.65
|29|44|.52
|39|55|.7
|47|62|1.06
|52|65|1.7
|49|63|2.93
|41|55|2.87
|28|40|2.09
|16|28|1.09
|11|24|1.05
|float=right
|clear=both
|units=imperial
}}