用户:Yuriy kosygin/Template:Climate
Template:Climate是用来呈现出简单的当地气候资讯。根据您所描述的位置来选择公制或英制度量单位。
为Project:Climate Expedition部分之一,内部使用了{{Climate chart}}。
该模板至少应用于显示平均最高温和最低温。可帮助游客去了解当地的一年中温度情况。 这是衣索比亚达纳基勒洼地的气候图表,当地为地球上最热的有人居住地方,看起来像是这样:
达纳基勒洼地 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
气候图(说明) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
甚至还可以显示出其他几种统计数据。这里的降水量 (技术上定义为所有形式的水:雨、雪等)、降雪量、日照,以及海水温度。 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
气候图(说明) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
align | align | Either "right", "left", "center" or "none". Default is "right". A value of "none" will display the table inline. | 字符串 | 可选 |
janhigh | janhigh | 1月平均最高温 | 数字 | 推荐 |
febhigh | febhigh | 2月平均最高温 | 数字 | 推荐 |
marhigh | marhigh | 3月平均最高温 | 数字 | 推荐 |
aprhigh | aprhigh | 4月平均最高温 | 数字 | 推荐 |
mayhigh | mayhigh | 5月平均最高温 | 数字 | 推荐 |
junhigh | junhigh | 6月平均最高温 | 数字 | 推荐 |
julhigh | julhigh | 7月平均最高温 | 数字 | 推荐 |
aughigh | aughigh | 8月平均最高温 | 数字 | 推荐 |
sephigh | sephigh | 9月平均最高温 | 数字 | 推荐 |
octhigh | octhigh | 10月平均最高温 | 数字 | 推荐 |
novhigh | novhigh | 11月平均最高温 | 数字 | 推荐 |
dechigh | dechigh | 12月平均最高温 | 数字 | 推荐 |
units | 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. | 字符串 | 必需 |
janlow | janlow | 1月平均最低温 | 数字 | 推荐 |
feblow | feblow | 2月平均最低温 | 数字 | 推荐 |
marlow | marlow | 3月平均最低温 | 数字 | 推荐 |
aprlow | aprlow | 4月平均最低温 | 数字 | 推荐 |
maylow | maylow | 5月平均最低温 | 数字 | 推荐 |
junlow | junlow | 6月平均最低温 | 数字 | 推荐 |
jullow | jullow | 7月平均最低温 | 数字 | 推荐 |
auglow | auglow | 8月平均最低温 | 数字 | 推荐 |
seplow | seplow | 9月平均最低温 | 数字 | 推荐 |
octlow | octlow | 10月平均最低温 | 数字 | 推荐 |
novlow | novlow | 11月平均最低温 | 数字 | 推荐 |
declow | declow | 12月平均最低温 | 数字 | 推荐 |
janprecip | janprecip | 1月平均降雨量 | 数字 | 推荐 |
febprecip | febprecip | 2月平均降雨量 | 数字 | 推荐 |
marprecip | marprecip | 3月平均降雨量 | 数字 | 推荐 |
aprprecip | aprprecip | 4月平均降雨量 | 数字 | 推荐 |
mayprecip | mayprecip | 5月平均降雨量 | 数字 | 推荐 |
junprecip | junprecip | 6月平均降雨量 | 数字 | 推荐 |
julprecip | julprecip | 7月平均降雨量 | 数字 | 推荐 |
augprecip | augprecip | 8月平均降雨量 | 数字 | 推荐 |
sepprecip | sepprecip | 9月平均降雨量 | 数字 | 推荐 |
octprecip | octprecip | 10月平均降雨量 | 数字 | 推荐 |
novprecip | novprecip | 11月平均降雨量 | 数字 | 推荐 |
decprecip | decprecip | 12月平均降雨量 | 数字 | 推荐 |
jansnow | jansnow | 1月平均降雪量 | 数字 | 可选 |
febsnow | febsnow | 2月平均降雪量 | 数字 | 可选 |
marsnow | marsnow | 3月平均降雪量 | 数字 | 可选 |
aprsnow | aprsnow | 4月平均降雪量 | 数字 | 可选 |
maysnow | maysnow | 5月平均降雪量 | 数字 | 可选 |
junsnow | junsnow | 6月平均降雪量 | 数字 | 可选 |
julsnow | julsnow | 7月平均降雪量 | 数字 | 可选 |
augsnow | augsnow | 8月平均降雪量 | 数字 | 可选 |
sepsnow | sepsnow | 9月平均降雪量 | 数字 | 可选 |
octsnow | octsnow | 10月平均降雪量r | 数字 | 可选 |
novsnow | novsnow | 11月平均降雪量 | 数字 | 可选 |
decsnow | decsnow | 12月平均降雪量 | 数字 | 可选 |
jansun | jansun | 1月平均日照量 | 数字 | 可选 |
febsun | febsun | 2月平均日照量 | 数字 | 可选 |
marsun | marsun | 3月平均日照量 | 数字 | 可选 |
aprsun | aprsun | 4月平均日照量 | 数字 | 可选 |
maysun | maysun | 5月平均日照量 | 数字 | 可选 |
junsun | junsun | 6月平均日照量 | 数字 | 可选 |
julsun | julsun | 7月平均日照量 | 数字 | 可选 |
augsun | augsun | 8月平均日照量 | 数字 | 可选 |
sepsun | sepsun | 9月平均日照量 | 数字 | 可选 |
octsun | octsun | 10月平均日照量 | 数字 | 可选 |
novsun | novsun | 11月平均日照量 | 数字 | 可选 |
decsun | decsun | 12月平均日照量 | 数字 | 可选 |
janh2o | janh2o | 1月的平均海面温度 | 数字 | 可选 |
febh2o | febh2o | 2月的平均海面温度 | 数字 | 可选 |
marh2o | marh2o | 3月的平均海面温度 | 数字 | 可选 |
aprh2o | aprh2o | 4月的平均海面温度 | 数字 | 可选 |
mayh2o | mayh2o | 5月的平均海面温度 | 数字 | 可选 |
junh2o | junh2o | 6月的平均海面温度 | 数字 | 可选 |
julh2o | julh2o | 7月的平均海面温度 | 数字 | 可选 |
augh2o | augh2o | 8月的平均海面温度 | 数字 | 可选 |
seph2o | seph2o | 9月的平均海面温度 | 数字 | 可选 |
octh2o | octh2o | 10月的平均海面温度 | 数字 | 可选 |
novh2o | novh2o | 11月的平均海面温度 | 数字 | 可选 |
dech2o | dech2o | 12月的平均海面温度 | 数字 | 可选 |
description | 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.
| 字符串 | 必需 |