This template is used to control a multitude of tropical cyclone-related templates: {{storm colour}}, {{storm name}}, {{storm sortkey}}, and {{storm icon}}. 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:

Usage

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.

Color

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 {{storm colour}}.

Code Output
<span style="padding:4px;border:1px solid black;background-color:#{{#invoke:Storm categories|color|depression}}">depression</span> depression

Name

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 {{storm name}}.

Code Interpreted Output
ID Basin
{{#invoke:Storm categories|name|severe}} severe (default) Severe tropical storm
{{#invoke:Storm categories|name|spr - cYcL -s TorM}} sprcyclstorm (default) Super cyclonic storm
{{#invoke:Storm categories|name|cat5}} cat5 (default) Category 5-equivalent tropical cyclone
{{#invoke:Storm categories|name|cat5|ATl}} cat5 ATl Category 5 hurricane
{{#invoke:Storm categories|name|cat5|WPac}} cat5 WPac Category 5-equivalent super typhoon

Sortkey

The 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. depression and storm) they are given the lowest possible sortkeys in order to achieve maximum compatibility.

This sortkey is used in {{storm sortkey}} and {{Tropical cyclone season effects (cyclone)}}, a subtemplate of {{Tropical cyclone season effects}}.

The sortkey format is as follows. Note that not all values between the given ranges were used. The arrangement of these were determined by their positions in the {{Storm colour}} template.

Basin Sortkey range
Global (unused) 90000 to 99999
Atl/EPac/SAtl 80000 to 89999
WPac 60000 to 69999
Nio 50000 to 59999
Aus/Fiji 40000 to 49999
SWio 30000 to 39999
Historical 20000 to 29999
Global 0 to 9999

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.

Category Sortkey Code
cat3 &&&&&&&&&&080030.&&&&&080.030 {{#invoke:Storm categories|sortkey|cat3}}
cat1 &&&&&&&&&&080010.&&&&&080.010 {{#invoke:Storm categories|sortkey|cat1}}
cat5 &&&&&&&&&&080050.&&&&&080.050 {{#invoke:Storm categories|sortkey|cat5}}
cat4 &&&&&&&&&&080040.&&&&&080.040 {{#invoke:Storm categories|sortkey|cat4}}
depression &&&&&&&&&&&&&090.&&&&&090 {{#invoke:Storm categories|sortkey|depression}}
cat2 &&&&&&&&&&080020.&&&&&080.020 {{#invoke:Storm categories|sortkey|cat2}}
Sorting table which uses different basins
Category Sortkey Code
typhoon &&&&&&&&&&060010.&&&&&060.010 {{#invoke:Storm categories|sortkey|typhoon}}
potential &&&&&&&&&&&&&025.&&&&&025 {{#invoke:Storm categories|sortkey|potential}}
cat5 &&&&&&&&&&080050.&&&&&080.050 {{#invoke:Storm categories|sortkey|cat5}}
svrcyclstorm &&&&&&&&&&050008.&&&&&050.008 {{#invoke:Storm categories|sortkey|svrcyclstorm}}
unknown &&&&&&&&&&&&&&00.&&&&&00 {{#invoke:Storm categories|sortkey|unknown}}
supertyphoon &&&&&&&&&&080045.&&&&&080.045 {{#invoke:Storm categories|sortkey|supertyphoon}}
niodepression &&&&&&&&&&050001.&&&&&050.001 {{#invoke:Storm categories|sortkey|niodepression}}

Icon

Icons exist for some Storm categories for presentation purposes. This function is available as a template at {{storm icon}}. p.icon will return wikitext of an image or formatted text.

Full list of available values

The following table is generated by invoking the demo function of this module. Some IDs are only available as colors or icons because they existed as parameters on old non-module template implementations and cannot be feasibly aliased to a specific tropical cyclone category.

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 MOS:COLOR for more information).

Legend

  1. ^ a b Overriden from original color (  #5ebaff)
  2. ^ a b Overriden from original icon (File:Severe tropical storm icon.png)
  3. ^ a b c Overriden from original icon (TC)
IconIDNameColorSortkey
BasinNameBasinSortkey
 aus1Category 1 tropical cyclone#00faf4Aus/Fiji40006
 aus2Category 2 tropical cyclone#B4FDA8Aus/Fiji40008
 aus3Category 3 severe tropical cyclone#FFD821Aus/Fiji40010
 aus4Category 4 severe tropical cyclone#FF6060[W 1]Aus/Fiji40013
 aus5Category 5 severe tropical cyclone#C464D9[W 1]Aus/Fiji40015
TCbeaufort0Calm (Force 0)#FFFFFFGlobal1500
TCbeaufort1Light Air (Force 1)#757575[W 1][W 2]Global1510
TCbeaufort10Storm (Force 10)#AAFD9CGlobal1600
TCbeaufort11Violent Storm (Force 11)#D6FFA4Global1610
TCbeaufort12Hurricane-force (Force 12)#FFFCD1Global1620
TCbeaufort2Light Breeze (Force 2)#909090[W 1]Global1520
TCbeaufort3Gentle Breeze (Force 3)#B7B7B7[W 1]Global1530
TCbeaufort4Moderate Breeze (Force 4)#D2D2D2Global1540
TCbeaufort5Fresh Breeze (Force 5)#F1F1F1Global1550
TCbeaufort6Strong Breeze (Force 6)#007FCE[W 1][W 2]Global1560
TCbeaufort7Near Gale (Force 7)#46A1FF[W 1]Global1570
TCbeaufort8Gale (Force 8)#5EDBF8Global1580
TCbeaufort9Strong Gale (Force 9)#3BFDFDGlobal1590
 cat1atlCategory 1 hurricane#fff795Atl/EPac/SAtl80010
defaultCategory 1-equivalent tropical cyclone
epacCategory 1 hurricane
satlCategory 1 hurricane
wpacCategory 1-equivalent typhoon
 cat2atlCategory 2 hurricane#ffd821Atl/EPac/SAtl80020
defaultCategory 2-equivalent tropical cyclone
epacCategory 2 hurricane
satlCategory 2 hurricane
wpacCategory 2-equivalent typhoon
 cat3atlCategory 3 hurricane#ff8f20[W 1]Atl/EPac/SAtl80030
defaultCategory 3-equivalent tropical cyclone
epacCategory 3 hurricane
satlCategory 3 hurricane
wpacCategory 3-equivalent typhoon
 cat4atlCategory 4 hurricane#ff6060[W 1]Atl/EPac/SAtl80040
defaultCategory 4-equivalent tropical cyclone
epacCategory 4 hurricane
satlCategory 4 hurricane
wpacCategory 4-equivalent typhoon
 cat5atlCategory 5 hurricane#c464d9[W 1]Atl/EPac/SAtl80050
defaultCategory 5-equivalent tropical cyclone
epacCategory 5 hurricane
satlCategory 5 hurricane
wpacCategory 5-equivalent super typhoon
 csCyclonic storm#00faf4NIO50006
 cyclstormCyclonic storm#00faf4NIO50006
 dTropical depression#80ccff[1]Global90
 ddDeep depression#5ebaff[W 1]NIO50002
 deepdepressionDeep depression#5ebaff[W 1]NIO50002
 depressionTropical depression#5ebaff[W 1]Global90
 diTropical disturbance#72a9cd[W 1]Global80
 disturbanceTropical disturbance#72a9cd[W 1]Global80
 ef0EF0 tornado#00faf4Global1000
 ef1EF1 tornado#FFF795Global1010
 ef2EF2 tornado#FFD821Global1020
 ef3EF3 tornado#FF8F20[W 1]Global1030
 ef4EF4 tornado#ff6060[W 1]Global1040
 ef5EF5 tornado#C464D9[W 1]Global1050
 efuEFU tornado#ccccccGlobal1001
 escsExtremely severe cyclonic storm#ff6060[W 1]NIO50015
 esvrcyclstormExtremely severe cyclonic storm#ff6060[W 1]NIO50015
 etExtratropical cyclone#ccccccGlobal50
 exExtratropical cyclone#ccccccGlobal50
 extratropicalExtratropical cyclone#ccccccGlobal50
TCf0Calm (Force 0)#FFFFFFGlobal1500
TCf1Light Air (Force 1)#757575[W 1][W 2]Global1510
TCf10Storm (Force 10)#AAFD9CGlobal1600
TCf11Violent Storm (Force 11)#D6FFA4Global1610
TCf12Hurricane-force (Force 12)#FFFCD1Global1620
TCf2Light Breeze (Force 2)#909090[W 1]Global1520
TCf3Gentle Breeze (Force 3)#B7B7B7[W 1]Global1530
TCf4Moderate Breeze (Force 4)#D2D2D2Global1540
TCf5Fresh Breeze (Force 5)#F1F1F1Global1550
TCf6Strong Breeze (Force 6)#007FCE[W 1][W 2]Global1560
TCf7Near Gale (Force 7)#46A1FF[W 1]Global1570
TCf8Gale (Force 8)#5EDBF8Global1580
TCf9Strong Gale (Force 9)#3BFDFDGlobal1590
 fiji1Category 1 tropical cyclone#00faf4Aus/Fiji40006
 fiji2Category 2 tropical cyclone#B4FDA8Aus/Fiji40008
 fiji3Category 3 severe tropical cyclone#FFD821Aus/Fiji40010
 fiji4Category 4 severe tropical cyclone#FF6060[W 1]Aus/Fiji40013
 fiji5Category 5 severe tropical cyclone#C464D9[W 1]Aus/Fiji40015
 intenseIntense tropical cyclone#FF6060[W 1]SWIO30008
 itcIntense tropical cyclone#FF6060[W 1]SWIO30008
 landLand depression#72a9cd[W 1]NIO50000
 landdepressionLand depression#72a9cd[W 1]NIO50000
 ldLand depression#72a9cd[W 1]NIO50000
 lowTropical low#5ebaff[W 1]Aus/Fiji40002
 mdMonsoon depression#5ebaff[W 1]Global30
TCmoddepressionModerate tropical depression#5ebaff[W 1]Global95
 monsoondepressionMonsoon depression#5ebaff[W 1]Global30
 mstormModerate tropical storm#00faf4SWIO30004
 mtsModerate tropical storm#00faf4SWIO30004
 mtstormModerate tropical storm#00faf4Global105
 niocycloneCyclonic storm#00faf4NIO50006
 niodepressionDepression#72a9cd[W 1]NIO50001
 niolandLand depression#72a9cd[W 1]NIO50000
 nwpdepressionTropical depression#5ebaff[W 1]Global90
 nwpsevereSevere tropical storm#b4fda8Global120
 nwpstormTropical storm#00faf4Global100
 odOverland depression#5ebaff[W 1]Global60
 overlandOverland depression#5ebaff[W 1]Global60
 overlanddepressionOverland depression#5ebaff[W 1]Global60
 postPost-tropical depression#ccccccGlobal70
 posttropicalPost-tropical depression#ccccccGlobal70
 potentialPotential tropical cyclone#72a9cd[W 1]Global25
 potentialtropicalcyclonePotential tropical cyclone#72a9cd[W 1]Global25
 ptPotential tropical cyclone#72a9cd[W 1]Global25
 remnantPost-tropical depression#ccccccGlobal70
 remnantlowPost-tropical depression#ccccccGlobal70
 rlPost-tropical depression#ccccccGlobal70
 rsi0Category 0 "Nuisance"#ccccccAtl/EPac/SAtl80100
 rsi1Category 1 "Notable"#FFF795Atl/EPac/SAtl80110
 rsi2Category 2 "Minor"#FFD821Atl/EPac/SAtl80120
 rsi3Category 3 "Major"#FF8F20[W 1]Atl/EPac/SAtl80130
 rsi4Category 4 "Crippling"#FF6060[W 1]Atl/EPac/SAtl80140
 rsi5Category 5 "Extreme"#C464D9[W 1]Atl/EPac/SAtl80150
 rsicripplingCategory 4 "Crippling"#FF6060[W 1]Atl/EPac/SAtl80140
 rsiextremeCategory 5 "Extreme"#C464D9[W 1]Atl/EPac/SAtl80150
 rsimajorCategory 3 "Major"#FF8F20[W 1]Atl/EPac/SAtl80130
 rsiminorCategory 2 "Minor"#FFD821Atl/EPac/SAtl80120
 rsinotableCategory 1 "Notable"#FFF795Atl/EPac/SAtl80110
 rsinuisanceCategory 0 "Nuisance"#ccccccAtl/EPac/SAtl80100
 scsSevere cyclonic storm#b4fda8NIO50008
 sdSubtropical depression#5ebaff[W 1]Global62
 severeSevere tropical storm#b4fda8Global120
TCseveredepSevere tropical depression#5ebaff[W 1]Global120
 severetsSevere tropical storm#b4fda8Global120
 shdepressionTropical depression#5ebaff[W 1]Global90
TCshem1Tropical cyclone#00faf4Historical20008
TCshem2Tropical cyclone#ccffffHistorical20008
TCshem3Tropical cyclone#FFD821SWIO30006
TCshem4Tropical cyclone#ffc140Historical20008
TCshem5Severe tropical cyclone#ff6060[W 1]Historical20010
 shemdepressionTropical depression#5ebaff[W 1]Global90
TCshemsvrtcSevere tropical cyclone#ffe775Historical20020
TCshemtcTropical cyclone#FFD821SWIO30006
 spdepressionTropical depression#5ebaff[W 1]Global90
 sprcyclstormSuper cyclonic storm#c464d9[W 1]NIO50020
 ssSubtropical storm#00faf4Global65
 stormTropical storm#00faf4Global100
 strongSevere tropical storm#b4fda8Global120
 stsSevere tropical storm#b4fda8Global120
TCstyCategory 4 super typhoon#c464d9[W 1]Atl/EPac/SAtl80045
TCstyphoonSupertyphoon#C464D9[W 1]WPAC60050
 subModerate tropical storm#00faf4SWIO30004
 subdepressionSubtropical depression#5ebaff[W 1]Global62
 subdisturbanceSubtropical disturbance#72a9cd[W 1]Global55
TCsublowSubtropical low#5ebaff[W 1]Aus/Fiji40000
 subtropicalSubtropical storm#00faf4Global65
TCsubtropicalcycloneSubtropical cyclone#00faf4Global70
 sucsSuper cyclonic storm#c464d9[W 1]NIO50020
TCsupertyphoonCategory 4 super typhoon#c464d9[W 1]Atl/EPac/SAtl80045
 svrcyclstormSevere cyclonic storm#b4fda8NIO50008
TCsvtyphoonSevere typhoon#FF6060[W 1]WPAC60015
 swiodepressionTropical depression#5ebaff[W 1]Global90
 swiodisturbanceTropical disturbance#72a9cd[W 1]Global80
 [2]swiostsSevere tropical storm#b4fda8Global120
 [3]swiotcTropical cyclone#FFD821SWIO30006
 swsubdepSubtropical depression#5ebaff[W 1]Global62
 [3]tcTropical cyclone#FFD821SWIO30006
 tdTropical depression#5ebaff[W 1]Global90
 tdistTropical disturbance#72a9cd[W 1]Global80
 tlTropical low#5ebaff[W 1]Aus/Fiji40002
TCtropicalcycloneTropical cyclone#FFD821SWIO30006
 tsTropical storm#00faf4Global100
 tyTyphoon#FFD821WPAC60010
 typhoonTyphoon#FFD821WPAC60010
?unknownUnknown strength tropical cyclone#c0c0c0Global0
 vintenseVery intense tropical cyclone#C464D9[W 1]SWIO30010
 vitcVery intense tropical cyclone#C464D9[W 1]SWIO30010
TCvityViolent typhoon#C464D9[W 1]WPAC60030
TCvityphoonViolent typhoon#C464D9[W 1]WPAC60030
 vscsVery severe cyclonic storm#ffd821NIO50010
TCvstyVery strong typhoon#FF6060[W 1]WPAC60020
TCvstyphoonVery strong typhoon#FF6060[W 1]WPAC60020
 vsvrcyclstormVery severe cyclonic storm#ffd821NIO50010
 wssi0No impacts#ccccccAtl/EPac/SAtl80200
 wssi1Limited impacts#80ccffAtl/EPac/SAtl80210
 wssi2Minor impacts#ffc140Atl/EPac/SAtl80220
 wssi3Moderate impacts#ff8f20[W 1]Atl/EPac/SAtl80230
 wssi4Major impacts#ff6060[W 1]Atl/EPac/SAtl80240
 wssi5Extreme impacts#cf75ff[W 1]Atl/EPac/SAtl80250
 wssiextremeExtreme impacts#cf75ff[W 1]Atl/EPac/SAtl80250
 wssilimitedLimited impacts#80ccffAtl/EPac/SAtl80210
 wssimajorMajor impacts#ff6060[W 1]Atl/EPac/SAtl80240
 wssiminorMinor impacts#ffc140Atl/EPac/SAtl80220
 wssimoderateModerate impacts#ff8f20[W 1]Atl/EPac/SAtl80230
 wssinoneNo impacts#ccccccAtl/EPac/SAtl80200
 zodwZone of disturbed weather#72A9CD[W 1]SWIO30000
 1not available#fff795not available
 2not available#ffd821not available
 3not available#ff8f20[W 1]not available
 4not available#ff6060[W 1]not available
 5not available#c464d9[W 1]not available
 a1not available#00faf4not available
 a2not available#B4FDA8not available
 a3not available#FFD821not available
 a4not available#FF6060[W 1]not available
 a5not available#C464D9[W 1]not available
 et2not available
 ex2not available
 extratropical2not available
 stssnot available

Warnings

This table contains warnings than should be addressed. Please note that some warnings cannot be fully addressed without changes that would require consensus.

  1. ^ a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br bs bt bu bv bw bx by bz ca cb cc cd ce cf cg ch ci cj ck cl cm This color has contrast issues with links (not WCAG 2.0 AA-compatible). It should not be used in conjunction with a link.
  2. ^ a b c d e This color has contrast issues with visited links (not WCAG 2.0 AA-compatible with #0b0080). It should not be used in conjunction with a visited link.