మాడ్యూల్:Storm categories/doc

వికీపీడియా నుండి
Jump to navigation Jump to search

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|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. 1.0 1.1 Overriden from original color (  #5ebaff)
  2. 2.0 2.1 Overriden from original icon (File:Severe tropical storm icon.png)
  3. 3.0 3.1 3.2 Overriden from original icon (TC)
IconIDNameColorSortkey
BasinNameBasinSortkey
aus1Category 1 tropical cyclone#00faf4Aus/Fiji40006
aus2Category 2 tropical cyclone#ccffffAus/Fiji40008
aus3Category 3 severe tropical cyclone#ffffccAus/Fiji40010
aus4Category 4 severe tropical cyclone#ffc140Aus/Fiji40013
aus5Category 5 severe tropical cyclone#ff6060[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#ffffccAtl/EPac/SAtl80010
defaultCategory 1-equivalent tropical cyclone
epacCategory 1 hurricane
satlCategory 1 hurricane
wpacCategory 1-equivalent typhoon
cat2atlCategory 2 hurricane#ffe775Atl/EPac/SAtl80020
defaultCategory 2-equivalent tropical cyclone
epacCategory 2 hurricane
satlCategory 2 hurricane
wpacCategory 2-equivalent typhoon
cat3atlCategory 3 hurricane#ffc140Atl/EPac/SAtl80030
defaultCategory 3-equivalent tropical cyclone
epacCategory 3 hurricane
satlCategory 3 hurricane
wpacCategory 3-equivalent typhoon
cat4atlCategory 4 hurricane#ff8f20[W 1]Atl/EPac/SAtl80040
defaultCategory 4-equivalent tropical cyclone
epacCategory 4 hurricane
satlCategory 4 hurricane
wpacCategory 4-equivalent typhoon
cat5atlCategory 5 hurricane#ff6060[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#80ccffGlobal80
disturbanceTropical disturbance#80ccffGlobal80
ef0EF0 tornado#00faf4Global1000
ef1EF1 tornado#ffffccGlobal1010
ef2EF2 tornado#ffe775Global1020
ef3EF3 tornado#ffc140Global1030
ef4EF4 tornado#ff8f20[W 1]Global1040
ef5EF5 tornado#ff6060[W 1]Global1050
efuEFU tornado#ccccccGlobal1001
escsExtremely severe cyclonic storm#ffc140NIO50015
esvrcyclstormExtremely severe cyclonic storm#ffc140NIO50015
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#ccffffAus/Fiji40008
fiji3Category 3 severe tropical cyclone#ffffccAus/Fiji40010
fiji4Category 4 severe tropical cyclone#ffc140Aus/Fiji40013
fiji5Category 5 severe tropical cyclone#ff6060[W 1]Aus/Fiji40015
intenseIntense tropical cyclone#ffc140SWIO30008
itcIntense tropical cyclone#ffc140SWIO30008
landLand depression#80ccffNIO50000
landdepressionLand depression#80ccffNIO50000
ldLand depression#80ccffNIO50000
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#80ccffNIO50001
niolandLand depression#80ccffNIO50000
nwpdepressionTropical depression#5ebaff[W 1]Global90
nwpsevereSevere tropical storm#ccffffGlobal120
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#80ccffGlobal25
potentialtropicalcyclonePotential tropical cyclone#80ccffGlobal25
ptPotential tropical cyclone#80ccffGlobal25
remnantPost-tropical depression#ccccccGlobal70
remnantlowPost-tropical depression#ccccccGlobal70
rlPost-tropical depression#ccccccGlobal70
rsi0Category 0 "Nuisance"#ccccccAtl/EPac/SAtl80100
rsi1Category 1 "Notable"#ffffccAtl/EPac/SAtl80110
rsi2Category 2 "Minor"#ffe775Atl/EPac/SAtl80120
rsi3Category 3 "Major"#ffc140Atl/EPac/SAtl80130
rsi4Category 4 "Crippling"#ff8f20[W 1]Atl/EPac/SAtl80140
rsi5Category 5 "Extreme"#ff6060[W 1]Atl/EPac/SAtl80150
rsicripplingCategory 4 "Crippling"#ff8f20[W 1]Atl/EPac/SAtl80140
rsiextremeCategory 5 "Extreme"#ff6060[W 1]Atl/EPac/SAtl80150
rsimajorCategory 3 "Major"#ffc140Atl/EPac/SAtl80130
rsiminorCategory 2 "Minor"#ffe775Atl/EPac/SAtl80120
rsinotableCategory 1 "Notable"#ffffccAtl/EPac/SAtl80110
rsinuisanceCategory 0 "Nuisance"#ccccccAtl/EPac/SAtl80100
scsSevere cyclonic storm#ccffffNIO50008
sdSubtropical depression#5ebaff[W 1]Global62
severeSevere tropical storm#ccffffGlobal120
TCseveredepSevere tropical depression#5ebaff[W 1]Global120
severetsSevere tropical storm#ccffffGlobal120
shdepressionTropical depression#5ebaff[W 1]Global90
TCshem1Tropical cyclone#00faf4Historical20008
TCshem2Tropical cyclone#ccffffHistorical20008
TCshem3Tropical cyclone#ffffccSWIO30006
TCshem4Tropical cyclone#ffc140Historical20008
TCshem5Severe tropical cyclone#ff6060[W 1]Historical20010
shemdepressionTropical depression#5ebaff[W 1]Global90
TCshemsvrtcSevere tropical cyclone#ffe775Historical20020
TCshemtcTropical cyclone#ffffccSWIO30006
spdepressionTropical depression#5ebaff[W 1]Global90
sprcyclstormSuper cyclonic storm#ff6060[W 1]NIO50020
ssSubtropical storm#00faf4Global65
stormTropical storm#00faf4Global100
strongSevere tropical storm#ccffffGlobal120
stsSevere tropical storm#ccffffGlobal120
TCstyCategory 4 super typhoon#ff6060[W 1]Atl/EPac/SAtl80045
TCstyphoonSupertyphoon#ff6060[W 1]WPAC60050
subModerate tropical storm#00faf4SWIO30004
subdepressionSubtropical depression#5ebaff[W 1]Global62
subdisturbanceSubtropical disturbance#80ccffGlobal55
TCsublowSubtropical low#5ebaff[W 1]Aus/Fiji40000
subtropicalSubtropical storm#00faf4Global65
TCsubtropicalcycloneSubtropical cyclone#00faf4Global70
sucsSuper cyclonic storm#ff6060[W 1]NIO50020
TCsupertyphoonCategory 4 super typhoon#ff6060[W 1]Atl/EPac/SAtl80045
svrcyclstormSevere cyclonic storm#ccffffNIO50008
TCsvtyphoonSevere typhoon#ff8f20[W 1]WPAC60015
swiodepressionTropical depression#5ebaff[W 1]Global90
swiodisturbanceTropical disturbance#80ccffGlobal80
[2]swiostsSevere tropical storm#ccffffGlobal120
[3]swiotcTropical cyclone#ffffccSWIO30006
swsubdepSubtropical depression#5ebaff[W 1]Global62
[3]tcTropical cyclone#ffffccSWIO30006
tdTropical depression#5ebaff[W 1]Global90
tdistTropical disturbance#80ccffGlobal80
tlTropical low#5ebaff[W 1]Aus/Fiji40002
TCtropicalcycloneTropical cyclone#ffffccSWIO30006
tsTropical storm#00faf4Global100
tyTyphoon#fdaf9aWPAC60010
typhoonTyphoon#fdaf9aWPAC60010
?unknownUnknown strength tropical cyclone#c0c0c0Global0
vintenseVery intense tropical cyclone#ff6060[W 1]SWIO30010
vitcVery intense tropical cyclone#ff6060[W 1]SWIO30010
vityViolent typhoon#ff6060[W 1]WPAC60030
vityphoonViolent typhoon#ff6060[W 1]WPAC60030
vscsVery severe cyclonic storm#ffffccNIO50010
vstrtyphoonVery strong typhoon#fe887d[W 1]WPAC60020
vstyVery strong typhoon#fe887d[W 1]WPAC60020
vstyphoonVery strong typhoon#fe887d[W 1]WPAC60020
vsvrcyclstormVery severe cyclonic storm#ffffccNIO50010
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#80ccffSWIO30000
1not available#ffffccnot available
2not available#ffe775not available
3not available#ffc140not available
4not available#ff8f20[W 1]not available
5not available#ff6060[W 1]not available
a1not available#00faf4not available
a2not available#ccffffnot available
a3not available#ffffccnot available
a4not available#ffc140not available
a5not available#ff6060[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. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.57 1.58 1.59 1.60 1.61 1.62 1.63 1.64 1.65 This color has contrast issues with links (not WCAG 2.0 AA-compatible). It should not be used in conjunction with a link.
  2. 2.0 2.1 2.2 2.3 2.4 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.