User:Yuriy kosygin/Template:Climate

来自维基导游
跳到导航 跳到搜索

Template:Climate是用來呈現出簡單的當地氣候資訊。根據您所描述的位置來選擇公制或英制度量單位。

Project:Climate Expedition部分之一,內部使用了{{Climate chart}}。

該模板至少應用於顯示平均最高溫和最低溫。可幫助遊客去了解當地的一年中溫度情況。 這是衣索比亞達納基勒窪地的氣候圖表,當地為地球上最熱的有人居住地方,看起來像是這樣:

達納基勒窪地
氣候圖(說明
 
 
 
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
平均最高和最低溫。溫度則以°C為單位
降雨量+降雪量 ,以毫米為單位
綜上所述, 當地在一年之中,總是處於非常炎熱的天氣。
英制轉換
 
 
 
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
平均最高和最低溫。溫度則以°F為單位
降雨量+降雪量,以英吋為單位

甚至還可以顯示出其他幾種統計數據。這裡的降水量 (技術上定義為所有形式的水:雨、雪等)、降雪量日照,以及海水溫度。 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:


McMurdo Station
氣候圖(說明
 
 
 
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
平均最高和最低溫。溫度則以°F為單位
降雨量+降雪量,以英吋為單位
即使在最溫暖的月份裡,南極洲依然是非常難以居住的地方。
Metric conversion
 
 
 
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
平均最高和最低溫。溫度則以°C為單位
降雨量+降雪量,以毫米為單位

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.

運作[编辑]

自動生成[编辑]

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.

手動輸入[编辑]

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

相關模板[编辑]

  • {{forecast}} - 給予緯度和經度,此模板將提供指向國家氣象服務網站的連結,該網站提供指定區域設置的最新天氣預報。此功能僅適用於美國當地。
  • {{forecastNOAA}} - 與{{forecast}}相同,但它是用於內部連結使用,只生成NOAA預測的連結。

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.

模板参数

参数描述类型状态
alignalign

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

字符串可选
janhighjanhigh

1月平均最高溫

数字推荐
febhighfebhigh

2月平均最高溫

数字推荐
marhighmarhigh

3月平均最高溫

数字推荐
aprhighaprhigh

4月平均最高溫

数字推荐
mayhighmayhigh

5月平均最高溫

数字推荐
junhighjunhigh

6月平均最高溫

数字推荐
julhighjulhigh

7月平均最高溫

数字推荐
aughighaughigh

8月平均最高溫

数字推荐
sephighsephigh

9月平均最高溫

数字推荐
octhighocthigh

10月平均最高溫

数字推荐
novhighnovhigh

11月平均最高溫

数字推荐
dechighdechigh

12月平均最高溫

数字推荐
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.

字符串必填
janlowjanlow

1月平均最低溫

数字推荐
feblowfeblow

2月平均最低溫

数字推荐
marlowmarlow

3月平均最低溫

数字推荐
aprlowaprlow

4月平均最低溫

数字推荐
maylowmaylow

5月平均最低溫

数字推荐
junlowjunlow

6月平均最低溫

数字推荐
jullowjullow

7月平均最低溫

数字推荐
auglowauglow

8月平均最低溫

数字推荐
seplowseplow

9月平均最低溫

数字推荐
octlowoctlow

10月平均最低溫

数字推荐
novlownovlow

11月平均最低溫

数字推荐
declowdeclow

12月平均最低溫

数字推荐
janprecipjanprecip

1月平均降雨量

数字推荐
febprecipfebprecip

2月平均降雨量

数字推荐
marprecipmarprecip

3月平均降雨量

数字推荐
aprprecipaprprecip

4月平均降雨量

数字推荐
mayprecipmayprecip

5月平均降雨量

数字推荐
junprecipjunprecip

6月平均降雨量

数字推荐
julprecipjulprecip

7月平均降雨量

数字推荐
augprecipaugprecip

8月平均降雨量

数字推荐
sepprecipsepprecip

9月平均降雨量

数字推荐
octprecipoctprecip

10月平均降雨量

数字推荐
novprecipnovprecip

11月平均降雨量

数字推荐
decprecipdecprecip

12月平均降雨量

数字推荐
jansnowjansnow

1月平均降雪量

数字可选
febsnowfebsnow

2月平均降雪量

数字可选
marsnowmarsnow

3月平均降雪量

数字可选
aprsnowaprsnow

4月平均降雪量

数字可选
maysnowmaysnow

5月平均降雪量

数字可选
junsnowjunsnow

6月平均降雪量

数字可选
julsnowjulsnow

7月平均降雪量

数字可选
augsnowaugsnow

8月平均降雪量

数字可选
sepsnowsepsnow

9月平均降雪量

数字可选
octsnowoctsnow

10月平均降雪量r

数字可选
novsnownovsnow

11月平均降雪量

数字可选
decsnowdecsnow

12月平均降雪量

数字可选
jansunjansun

1月平均日照量

数字可选
febsunfebsun

2月平均日照量

数字可选
marsunmarsun

3月平均日照量

数字可选
aprsunaprsun

4月平均日照量

数字可选
maysunmaysun

5月平均日照量

数字可选
junsunjunsun

6月平均日照量

数字可选
julsunjulsun

7月平均日照量

数字可选
augsunaugsun

8月平均日照量

数字可选
sepsunsepsun

9月平均日照量

数字可选
octsunoctsun

10月平均日照量

数字可选
novsunnovsun

11月平均日照量

数字可选
decsundecsun

12月平均日照量

数字可选
janh2ojanh2o

1月的平均海面溫度

数字可选
febh2ofebh2o

2月的平均海面溫度

数字可选
marh2omarh2o

3月的平均海面溫度

数字可选
aprh2oaprh2o

4月的平均海面溫度

数字可选
mayh2omayh2o

5月的平均海面溫度

数字可选
junh2ojunh2o

6月的平均海面溫度

数字可选
julh2ojulh2o

7月的平均海面溫度

数字可选
augh2oaugh2o

8月的平均海面溫度

数字可选
seph2oseph2o

9月的平均海面溫度

数字可选
octh2oocth2o

10月的平均海面溫度

数字可选
novh2onovh2o

11月的平均海面溫度

数字可选
dech2odech2o

12月的平均海面溫度

数字可选
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.

示例
Source: Wikipedia. See a five day forecast for XXX here.
字符串必填