Bản mẫu:Weather box/concise C

Bách khoa toàn thư mở Wikipedia


Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Usage[sửa mã nguồn]

The Template:Weather box/concise_C (Celsius) uses {{Weather box}} to generate a climate table, by using 36 positional parameters. Other parameters are:  location=, source= and optional "accessdate=" or sctemp=t. The 36 parameters are: 12 monthly highs (C), 12 lows (total 24) plus an optional 12 monthly rain/precipitation (in mm). Example of coding:

{{Weather box/concise_C
| location=Marrakech, Morocco (1961-1990)
| source=Hong Kong Observatory<ref name="HKO">
  "Climatological Information for Marrakech, Morocco",
  Hong Kong Observatory, 2003. Web: [http://www.hko.gov.hk/wxinfo/climat/world/eng/africa/mor_al/marrakech_e.htm HKO-Marrakech].</ref>
| 18.4|19.9|22.3|23.7|27.5|31.3|36.8|36.5|32.5|27.5|22.2|18.7<!--highs-->
| 5.9 |7.6 |9.4 |11.0|13.8|16.3|19.9|20.1|18.2|14.7|10.4|6.5 <!--lows-->
| 32.2|37.9|37.8|38.8|23.7|4.5 |1.2 |3.4 |5.9 |23.9|40.6|31.4<!--rain-->
}}
                             (Spaces are optional)

The example will generate a climate-table for "Marrakech, Morocco" listing the Celsius temperatures first, then Fahrenheit (in parentheses) below each, followed by precipitation in mm, then in inches (in parentheses). Example result:

Dữ liệu khí hậu của Marrakech, Morocco (1961-1990)
Tháng 1 2 3 4 5 6 7 8 9 10 11 12 Năm
Trung bình cao °C (°F) 18.4 19.9 22.3 23.7 27.5 31.3 36.8 36.5 32.5 27.5 22.2 18.7 26,44
Trung bình thấp, °C (°F) 5.9 7.6 9.4 11.0 13.8 16.3 19.9 20.1 18.2 14.7 10.4 6.5 12,82
Giáng thủy mm (inch) 32.2
(1.268)
37.9
(1.492)
37.8
(1.488)
38.8
(1.528)
23.7
(0.933)
4.5
(0.177)
1.2
(0.047)
3.4
(0.134)
5.9
(0.232)
23.9
(0.941)
40.6
(1.598)
31.4
(1.236)
281,3
(11,075)
Nguồn: Hong Kong Observatory[1]

Colors are set by Template:Weather box/colpastel, to set the temperature background colors when parameter "sctemp=pastel". The colder temperatures are purple-shades, the cool are beige, the warm are yellow-shades, and the hot are orange-browns.

Again, the 12 rain/precipitation parameters can be omitted.

See also[sửa mã nguồn]

Notes[sửa mã nguồn]

  1. ^ "Climatological Information for Marrakech, Morocco", Hong Kong Observatory, 2003. Web: HKO-Marrakech.