Bản mẫu:Tropical cyclone season effects/doc

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

Cách sử dụng[sửa mã nguồn]

Creates the tropical cyclone season effects table found in tropical cyclone articles.

If the season spans multiple years, you need to use the start-year and end-year parameters to specify the start and end of the season article. You also need to set the force-year parameter on each {{Tropical cyclone season effects (cyclone)}} to true (or similarly truthy) in order to show the full year instead of just the months.

The footer values are automatically calculated. The {{{1}}} of the template must always be a set of {{Tropical cyclone season effects (cyclone)}} templates, as this template contains the tracking metadata required to automatically calculate the season aggregates. You can include other templates, however if this were a row for a storm, its data will not be used in calculations unless the proper metadata tag is added.

Các ví dụ[sửa mã nguồn]

The following is a reconstruction of the 2020 Pacific typhoon season effects table. Note that the final calculation for damages are different. This is because the damages listed in the original article is incorrect. You can use any calculator at your disposal to confirm this. Bản mẫu:Tropical cyclone season effects/doc/demo

The header can be hidden with no-header.

When the table is empty, it becomes unsortable and no values are displayed in the season aggregates.

Tên Ngày hoạt động Cường độ cao nhất Các khu vực bị ảnh hưởng Thiệt hại
(US$)
Tử vong
Thể loại Tốc độ gió Áp lực
Tổng tỷ số mùa bão
Hệ thống 0 Mùa chưa bắt đầu

When the season is ongoing and cyclones are currently active, the season's period will show the entire period of the season. If the season is ongoing but no cyclones are active, the active argument must be set to any truthy value in order to display the period as "Season ongoing".

Tên Ngày hoạt động Cường độ cao nhất Các khu vực bị ảnh hưởng Thiệt hại
(US$)
Tử vong
Thể loại Tốc độ gió Áp lực
Bão A January 17 – 21 Bão nhiệt đới 35 km/h (25 mph) 1.004 hPa (29,65 inHg) &0000000010000000.000000$10 triệu &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.000000 Không có
Bão B October 1 – present Áp thấp nhiệt đới 75 km/h (45 mph) 960 hPa (28,35 inHg) &0000000000050000.000000$50 nghìn >&00000000000023220000002.322
Tổng tỷ số mùa bão
Hệ thống 1 January 17 – 21, 2020 35 km/h (25 mph) 1004 hPa (29,65 inHg) &0000000010000000.000000$10 triệu &00000000000000000000000


Tên Ngày hoạt động Cường độ cao nhất Các khu vực bị ảnh hưởng Thiệt hại
(US$)
Tử vong
Thể loại Tốc độ gió Áp lực
Bão B January 1 – 4 Áp thấp nhiệt đới Không định rõ Chưa rõ &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.000000 Không có &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.000000 Không có
Tổng tỷ số mùa bão
Hệ thống 1 January 1, 2024 – Mùa đang diễn ra 0 km/h (0 mph) 0 hPa (0,000 inHg) &00000000000000000000000 &00000000000000000000000

Cấu tạo[sửa mã nguồn]

{{Tropical cyclone season effects (cyclone)}} automatically inserts the following element at the start of the row.

<span style="display:none;" data-tcse-entry="Tên bão|2020-10-01|2020-10-14|50|kph|960|hPa|50000|2322"></span>

This metadata element is not displayed, and should be invisible from the user in all cases. The data-tcse-entry attribute is the primary search target for the template module. If the given order is incorrect (or if one of the values is blank), it will not be included in the computation. The order of the values of this tag is as follows:

  • Storm name
  • Date formed
  • Date dissipated
  • Maximum sustained wind speed
  • Wind speed unit
  • Lowest barometric pressure
  • Pressure unit
  • Damages
  • Deaths

The default units are the units most used internationally — kilometers per hour (kph), hectopascals (hPa), and US dollars ($). These units may be overriden in the cyclone entry template using the winds-unit, pressure-unit, and damages-currency parameters. These same parameters can be used in the main template in order to override the results of the final computation. The currency link at the header can be modified with the currency-link parameter.

This template disallows mixed units in each row. If different units are used in one of the rows, the entire table will return an error.

Xem thêm[sửa mã nguồn]

This template is composed of two other templates and requires one template for its content.


Aggregates the overall effects of tropical cyclones in a given year range and basin.

Tham số bản mẫu

Nên dùng bản mẫu này với các tham số đặt thành khối.

Tham sốMiêu tảKiểuTrạng thái
Don't show header?no-header

Whether or not to hide the table header. If true, `basin` and `year` are no longer required.

Luận lýkhuyên dùng
Basinbasin

The basin of the season article

Ví dụ
WPac, Atl, EPac, etc.
Chuỗi dàikhuyên dùng
Season (start) yearseason-start-year year

If this is a single-year article, this is the year of the season. If this is a multi-year article, this is the first year this article handles.

Sốkhuyên dùng
Season end yearseason-end-year

If this is a multi-year season article, this is the last year this article handles.

Sốkhuyên dùng
Wind speed target unitwinds-target

The targeted unit for conversion. This is automatically guessed, but can be forced by the user.

Ví dụ
kph, mph, kn
Chuỗi dàitùy chọn
Pressure target unitpressure-target

The targeted unit for conversion. This is automatically guessed, but can be forced by the user.

Ví dụ
hPa, inHg, mbar
Chuỗi dàitùy chọn
Currencycurrency

The currency symbol for damages. This should be the same as the currency used in the main table content.

Mặc định
$
Ví dụ
€, £, ¥, etc.
Chuỗi dàitùy chọn
Referencesfooter-refs

References placed in the footer (season aggregates).

Nội dungkhuyên dùng
Active?active

Forces the footer of the template to show "Season ongoing".

Ví dụ
yes
Luận lýkhuyên dùng