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

From blackwiki
Jump to navigation Jump to search
imported>Inisheer
m (+fr)
imported>Thumperward
(tidy this up)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{TOCRight}}
+
{{warning|Before making any changes to the template, please first try and compare your changes in the test template: [[Template:Infobox Climate chart/sandbox]]. Thank you.}}
{{warning|<big>'''Before making any changes to the template'''</big>, please first try and compare your changes in the test template: [[Template:Infobox Climate chart/sandbox]]. Thank you.}}
 
  
 +
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 [[Template:Climate chart/info|here]].
  
==Purpose==
+
=== Usage ===
Used to create climate charts, with average monthly minimum and maximum temperatures.  More information on the interpretation of the chart can be found [[Template:Climate chart/info|here]].
 
  
===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.''
 
 
==Usage==
 
 
;argument <tt>1</tt>
 
;argument <tt>1</tt>
 
:Appears in the heading
 
:Appears in the heading
Line 16: Line 11:
 
:The data. Think of it as 12 rows, one for each month, with 3 columns for minimum temperature, maximum temperature and precipitation.
 
:The data. Think of it as 12 rows, one for each month, with 3 columns for minimum temperature, maximum temperature and precipitation.
 
;<tt>float</tt>
 
;<tt>float</tt>
:<tt>''left''</tt>, <tt>''right''</tt> or <tt>''none''</tt>.  
+
:<tt>''left''</tt>, <tt>''right''</tt> or <tt>''none''</tt>.
 
;<tt>clear</tt>
 
;<tt>clear</tt>
:<tt>''left''</tt>, <tt>''right''</tt>, <tt>''both''</tt> or <tt>''none''</tt>.  
+
:<tt>''left''</tt>, <tt>''right''</tt>, <tt>''both''</tt> or <tt>''none''</tt>.
 
;<tt>source</tt>
 
;<tt>source</tt>
 
:Supply the source of your data
 
:Supply the source of your data
  
==Examples==
+
=== Units ===
 +
In articles where SI units (°C, mm) are preferred, input the data in those units.  This is the default state&nbsp;— 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 ====
  
===Float: right===
 
 
{{climate chart|[[Amsterdam]]
 
{{climate chart|[[Amsterdam]]
 
|-7|-1|40
 
|-7|-1|40
Line 60: Line 59:
 
{{clear}}
 
{{clear}}
  
===Float: left===
+
==== Float: left ====
 +
 
 
{{climate chart|[[Buenos Aires]]
 
{{climate chart|[[Buenos Aires]]
 
|17|29|79
 
|17|29|79
Line 96: Line 96:
 
{{clear}}
 
{{clear}}
  
===Non-float===
+
==== Non-float ====
 +
 
 
{{climate chart|[[Coober Pedy]]
 
{{climate chart|[[Coober Pedy]]
 
|20.7|36.4|17.4
 
|20.7|36.4|17.4
Line 128: Line 129:
 
</pre></nowiki>
 
</pre></nowiki>
  
===Imperial units===
+
==== Imperial units ====
 +
 
 
{{climate chart|[[Anchorage]]
 
{{climate chart|[[Anchorage]]
 
|9|22|.68
 
|9|22|.68

Revision as of 17:52, 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
{{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
{{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>
{{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
{{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
}}