This template is used to control a multitude of tropical cyclone-related templates:,,, and . It acts as a centralized location for storm categories to avoid discrepancies between templates, allowing for the same ID to be used across all related templates.
Data is located in the following submodules:
This module exports three functions for templates: p.color
, p.name
, p.sortkey
, and p.icon
. It also provides p._color
, p._name
, p._sortkey
, and p._icon
for use in other modules.
All input IDs are case-insensitive, and all non-alphanumeric characters are stripped.
Provides the color of the given tropical cyclone category code. This comes in the format of their raw hexadecimal code. This function is available as a template at .
Provides the name of the given tropical cyclone category code. A optional basin argument can be provided as the second argument in order to slightly tweak the name of the category, if the given category definition supports it. This function is available as a template at .
Code | Interpreted | Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | Basin | |||||||||||||||||||||||||||||||||||||||||||||||||||||
<nowiki>{{#invoke:Storm categories|name|severe}}</nowiki> | severe | |||||||||||||||||||||||||||||||||||||||||||||||||||||
<nowiki>{{#invoke:Storm categories|name|spr - cYcL -s TorM}}</nowiki> | sprcyclstorm | |||||||||||||||||||||||||||||||||||||||||||||||||||||
<nowiki>{{#invoke:Storm categories|name|cat5}}</nowiki> | cat5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||
<nowiki>{{#invoke:Storm categories|name|cat5|ATl}}</nowiki> | cat5 | ATl | ||||||||||||||||||||||||||||||||||||||||||||||||||||
<nowiki>{{#invoke:Storm categories|name|cat5|WPac}}</nowiki> |cat5|WPac||}SortkeyThe sortkey is a number that aids in sorting categories. Using the sortkey, it is possible to automatically sort a table of tropical cyclones given their category code. Due to the ambiguous nature of sortkeys, tables may be sorted incorrectly if values from other basins were used. For categories that span multiple basins, however, (e.g.
A demonstration of a sortable table using these sortkeys can be found below. Note that it does not use categories outside of its own basin (in this case, the Atl/EPac/SAtl basin) and the global range.
IconIcons exist for some Storm categories for presentation purposes. This function is available as a template at . Full list of available valuesThe following table is generated by invoking the It will show any color errors, including colors which aren't compliant with the minimal Web Content Accessibility Guidelines 2.0 AA color standards (see for more information). |