This is an old revision of this page, as edited by Pppery (talk | contribs) at 18:50, 20 April 2023 (Per edit request). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 18:50, 20 April 2023 by Pppery (talk | contribs) (Per edit request)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff) Module documentation[view] [edit] [history] [purge]This Lua module is used on approximately 5,500 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This page contains the tropical cyclone category data for Module:Storm categories.
Each category is expected to contain the following information:
ID
– the ID is derived from the key/index of the category in thecats
table- This ID must be in lowercase and have no special symbols; the module will take care of data sanitization.
color
– the hexadecimal code of the category's color, withoutname
– the name of the categorysortkey
– the sortkey of the category- Give decent spacing in between keys for future categories.
icon
(incomplete) – the icon of the category in wikitextbasin
(to be done) – a table (list) of basins to which this category applies toscale
(to be done) – a wikilink (without brackets) leading to the scale of this categoryq
(to be done) – the Wikidata entity of this category
Aliases are defined at the bottom of the module. They are in the following format:, where actual
is the ID of the category:
cats = catsThe above documentation is transcluded from Module:Storm categories/categories/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Subpages of this module.
local p = {} -- Define categories -- All sortkeys have been guessed. They may be changed by common sense -- or consensus at ] local cats = { -- -- TROPICAL CYCLONES -- severe = { color = "C0FFC0", name = "Severe tropical storm", sortkey = 120, icon = "]" }, mtstorm = { color = "4DFFFF", -- Old {{storm colour}} did not support. Value guessed. name = "Moderate tropical storm", sortkey = 105, icon = "]" }, storm = { color = "4DFFFF", name = "Tropical storm", sortkey = 100, icon = "]" }, severedep = { color = "6EC1EA", -- Old {{storm colour}} did not support. Value guessed. name = "Severe tropical depression", sortkey = 120 }, moddepression = { color = "6EC1EA", -- Old {{storm colour}} did not support. Value guessed. name = "Moderate tropical depression", sortkey = 95 }, depression = { color = "6EC1EA", name = "Tropical depression", sortkey = 90, icon = "]" }, disturbance = { color = "1591DE", name = "Tropical disturbance", sortkey = 80, icon = "]" }, subtropicalcyclone = { color = "4DFFFF", name = "Subtropical cyclone", sortkey = 70 }, subtropical = { color = "4DFFFF", name = "Subtropical storm", sortkey = 65, icon = "]" }, subdepression = { color = "6EC1EA", name = "Subtropical depression", sortkey = 62, icon = "]" }, overland = { color = "6EC1EA", name = "Overland depression", sortkey = 60, icon = "]" }, subdisturbance = { color = "1591DE", name = "Subtropical disturbance", sortkey = 55, icon = "]" }, extratropical = { color = "CCCCCC", name = "Extratropical cyclone", sortkey = 50, icon = "]" }, monsoondepression = { color = "6EC1EA", name = "Monsoon depression", sortkey = 30, icon = "]" }, potential = { color = "1591DE", name = "Potential tropical cyclone", sortkey = 25, icon = "]" }, posttropical = { color = "CCCCCC", name = "Post-tropical depression", sortkey = 70, icon = "]" }, remnant = { color = "CCCCCC", name = "Post-tropical depression", sortkey = 70, icon = "]" }, unknown = { color = "C0C0C0", name = "Unknown-strength storm", sortkey = 0, icon = "'''?'''" }, -- SSWHS hurricane categories cat5 = { color = "A188FC", name = { atl = "Category 5 hurricane", epac = "Category 5 hurricane", satl = "Category 5 hurricane", wpac = "Category 5-equivalent super typhoon", default = "Category 5-equivalent tropical cyclone" }, sortkey = 80050, icon = "]" }, cat4 = { color = "FF738A", name = { atl = "Category 4 hurricane", epac = "Category 4 hurricane", satl = "Category 4 hurricane", wpac = "Category 4-equivalent typhoon", default = "Category 4-equivalent tropical cyclone" }, sortkey = 80040, icon = "]" }, cat3 = { color = "FF9E59", name = { atl = "Category 3 hurricane", epac = "Category 3 hurricane", satl = "Category 3 hurricane", wpac = "Category 3-equivalent typhoon", default = "Category 3-equivalent tropical cyclone" }, sortkey = 80030, icon = "]" }, cat2 = { color = "FFD98C", name = { atl = "Category 2 hurricane", epac = "Category 2 hurricane", satl = "Category 2 hurricane", wpac = "Category 2-equivalent typhoon", default = "Category 2-equivalent tropical cyclone" }, sortkey = 80020, icon = "]" }, cat1 = { color = "FFFFD9", name = { atl = "Category 1 hurricane", epac = "Category 1 hurricane", satl = "Category 1 hurricane", wpac = "Category 1-equivalent typhoon", default = "Category 1-equivalent tropical cyclone" }, sortkey = 80010, icon = "]" }, supertyphoon = { color = "FF738A", name = "Category 4 super typhoon", sortkey = 80045 }, typhoon = { color = "FFD98C", name = "Typhoon", sortkey = 60010 }, -- HKO svtyphoon = { color = "FF738A", name = "Severe typhoon", sortkey = 60015 }, vstyphoon = { color = "FF738A", name = "Very strong typhoon", sortkey = 60020, icon = "]" }, vityphoon = { color = "A188FC", name = "Violent typhoon", sortkey = 60030, icon = "]" }, -- PAGASA styphoon = { color = "A188FC", name = "Supertyphoon", sortkey = 60050 }, sprcyclstorm = { color = "A188FC", name = "Super cyclonic storm", sortkey = 50020, icon = "]" }, esvrcyclstorm = { color = "FF738A", name = "Extremely severe cyclonic storm", sortkey = 50015, icon = "]" }, vsvrcyclstorm = { color = "FFD98C", name = "Very severe cyclonic storm", sortkey = 50010, icon = "]" }, svrcyclstorm = { color = "C0FFC0", name = "Severe cyclonic storm", sortkey = 50008, icon = "]" }, niocyclone = { color = "4DFFFF", name = "Cyclonic storm", sortkey = 50006, icon = "]" }, deepdepression = { color = "6EC1EA", name = "Deep depression", sortkey = 50002, icon = "]" }, niodepression = { color = "1591DE", name = "Depression", sortkey = 50001, icon = "]" }, nioland = { color = "1591DE", name = "Land depression", sortkey = 50000, icon = "]" }, aus5 = { color = "A188FC", name = "Category 5 severe tropical cyclone", sortkey = 40015, icon = "]" }, aus4 = { color = "FF738A", name = "Category 4 severe tropical cyclone", sortkey = 40013, icon = "]" }, aus3 = { color = "FFD98C", name = "Category 3 severe tropical cyclone", sortkey = 40010, icon = "]" }, aus2 = { color = "C0FFC0", name = "Category 2 tropical cyclone", sortkey = 40008, icon = "]" }, aus1 = { color = "4DFFFF", name = "Category 1 tropical cyclone", sortkey = 40006, icon = "]" }, low = { color = "6EC1EA", name = "Tropical low", sortkey = 40002, icon = "]" }, sublow = { color = "6EC1EA", name = "Subtropical low", sortkey = 40000 }, vintense = { color = "A188FC", name = "Very intense tropical cyclone", sortkey = 30010, icon = "]" }, intense = { color = "FF738A", name = "Intense tropical cyclone", sortkey = 30008, icon = "]" }, tropicalcyclone = { color = "FFD98C", name = "Tropical cyclone", sortkey = 30006, icon = "'''TC'''" }, mstorm = { color = "4DFFFF", name = "Moderate tropical storm", sortkey = 30004, icon = "]" }, zodw = { color = "1591DE", name = "Zone of disturbed weather", sortkey = 30000, icon = "]" }, shemsvrtc = { color = "FFD98C", name = "Severe tropical cyclone", sortkey = 20020 }, shem5 = { color = "A188FC", name = "Severe tropical cyclone", sortkey = 20010 }, shem4 = { color = "FFD98C", name = "Tropical cyclone", sortkey = 20008 }, shem2 = { color = "C0FFC0", name = "Tropical cyclone", sortkey = 20008 }, shem1 = { color = "4DFFFF", name = "Tropical cyclone", sortkey = 20008 }, -- -- WINTER STORMS -- -- Regional Snowfall Index rsi0 = { color = "CCCCCC", name = "Category 0 \"Nuisance\"", sortkey = 80100, icon = "]" }, rsi1 = { color = "FFFFD9", name = "Category 1 \"Notable\"", sortkey = 80110, icon = "]" }, rsi2 = { color = "FFD98C", name = "Category 2 \"Minor\"", sortkey = 80120, icon = "]" }, rsi3 = { color = "FF9E59", name = "Category 3 \"Major\"", sortkey = 80130, icon = "]" }, rsi4 = { color = "FF738A", name = "Category 4 \"Crippling\"", sortkey = 80140, icon = "]" }, rsi5 = { color = "A188FC", name = "Category 5 \"Extreme\"", sortkey = 80150, icon = "]" }, -- Winter Storm Severity Index wssinone = { color = "CCCCCC", name = "No impacts", sortkey = 80200, }, wssilimited = { color = "1591DE", name = "Limited impacts", sortkey = 80210, }, wssiminor = { color = "FF9E59", name = "Minor impacts", sortkey = 80220, }, wssimoderate = { color = "FF738A", name = "Moderate impacts", sortkey = 80230, }, wssimajor = { color = "A188FC", name = "Major impacts", sortkey = 80240, }, wssiextreme = { color = "CF75FF", name = "Extreme impacts", sortkey = 80250, }, spia0 = { color = "4DFFFF", name = "Ice Damage Index: 0", sortkey = 80300, }, spia1 = { color = "FFFFD9", name = "Ice Damage Index: 1", sortkey = 80301, }, spia2 = { color = "FFD98C", name = "Ice Damage Index: 2", sortkey = 80302, }, spia3 = { color = "FF9E59", name = "Ice Damage Index: 3", sortkey = 80303, }, spia4 = { color = "FF738A", name = "Ice Damage Index: 4", sortkey = 80304, }, spia5 = { color = "A188FC", name = "Ice Damage Index: 5", sortkey = 80305, }, -- -- TORNADOES -- efu = { color = "CCCCCC", name = "EFU tornado", sortkey = 1001, icon = "]" }, ef0 = { color = "4DFFFF", name = "EF0 tornado", sortkey = 1000, icon = "]" }, ef1 = { color = "FFFFD9", name = "EF1 tornado", sortkey = 1010, icon = "]" }, ef2 = { color = "FFD98C", name = "EF2 tornado", sortkey = 1020, icon = "]" }, ef3 = { color = "FF9E59", name = "EF3 tornado", sortkey = 1030, icon = "]" }, ef4 = { color = "FF738A", name = "EF4 tornado", sortkey = 1040, icon = "]" }, ef5 = { color = "A188FC", name = "EF5 tornado", sortkey = 1050, icon = "]" }, ifu = { color = "CCCCCC", name = "IFU tornado", sortkey = 1100, }, if0m = { color = "58EBF8", name = "IF0- tornado", sortkey = 1101, }, if0 = { color = "4DFFFF", name = "IF0 tornado", sortkey = 1102, }, if0p = { color = "89FFF3", name = "IF0+ tornado", sortkey = 1103, }, if1m = { color = "C4FFE6", name = "IF1- tornado", sortkey = 1104, }, if1 = { color = "FFFFD9", name = "IF1 tornado", sortkey = 1105, }, if1p = { color = "FFF2BF", name = "IF1+ tornado", sortkey = 1106, }, if2m = { color = "FFE5A5", name = "IF2- tornado", sortkey = 1107, }, if2 = { color = "FFD98C", name = "IF2 tornado", sortkey = 1108, }, if2p = { color = "FFC57B", name = "IF2+ tornado", sortkey = 1109, }, if3 = { color = "FF9E59", name = "IF3 tornado", sortkey = 1110, }, if4 = { color = "FF738A", name = "IF4 tornado", sortkey = 1111, }, if5 = { color = "A188FC", name = "IF5 tornado", sortkey = 1112, }, tu = { color = "CCCCCC", name = "TU tornado", sortkey = 1200, }, fc = { color = "6EC1EA", name = "Funnel Cloud", sortkey = 1201, }, t0 = { color = "5EE0F5", name = "T0 tornado", sortkey = 1202, }, t1 = { color = "4DFFFF", name = "T1 tornado", sortkey = 1203, }, t2 = { color = "A6FFEC", name = "T2 tornado", sortkey = 1204, }, t3 = { color = "FFFFD9", name = "T3 tornado", sortkey = 1205, }, t4 = { color = "FFECB3", name = "T4 tornado", sortkey = 1206, }, t5 = { color = "FFD98C", name = "T5 tornado", sortkey = 1207, }, t6 = { color = "FFBC73", name = "T6 tornado", sortkey = 1208, }, t7 = { color = "FF9E59", name = "T7 tornado", sortkey = 1209, }, t8 = { color = "FF8972", name = "T8 tornado", sortkey = 1210, }, t9 = { color = "FF738A", name = "T9 tornado", sortkey = 1211, }, t10 = { color = "D07EC3", name = "T10 tornado", sortkey = 1212, }, t11 = { color = "A188FC", name = "T11 tornado", sortkey = 1213, }, -- Beaufort Scale (windstorms) beaufort0 = { color = "FFFFFF", name = "Calm (Force 0)", sortkey = 1500, icon = "]" }, beaufort1 = { color = "757575", name = "Light Air (Force 1)", sortkey = 1510, icon = "]" }, beaufort2 = { color = "909090", name = "Light Breeze (Force 2)", sortkey = 1520, icon = "]" }, beaufort3 = { color = "B7B7B7", name = "Gentle Breeze (Force 3)", sortkey = 1530, icon = "]" }, beaufort4 = { color = "D2D2D2", name = "Moderate Breeze (Force 4)", sortkey = 1540, icon = "]" }, beaufort5 = { color = "F1F1F1", name = "Fresh Breeze (Force 5)", sortkey = 1550, icon = "]" }, beaufort6 = { color = "1591DE", name = "Strong Breeze (Force 6)", sortkey = 1560, icon = "]" }, beaufort7 = { color = "6EC1EA", name = "Near Gale (Force 7)", sortkey = 1570, icon = "]" }, beaufort8 = { color = "5EE0F5", name = "Gale (Force 8)", sortkey = 1580, icon = "]" }, beaufort9 = { color = "4DFFFF", name = "Strong Gale (Force 9)", sortkey = 1590, icon = "]" }, beaufort10 = { color = "C0FFC0", name = "Storm (Force 10)", sortkey = 1600, icon = "]" }, beaufort11 = { color = "E0FFCD", name = "Violent Storm (Force 11)", sortkey = 1610, icon = "]" }, beaufort12 = { color = "FFFFD9", name = "Hurricane-force (Force 12)", sortkey = 1620, icon = "]" }, -- Drought/Flood palmer7 = { color = "FF0800", name = "Extreme Drought", sortkey = 81000, }, palmer6 = { color = "FF5A55", name = "Severe Drought", sortkey = 81001, }, palmer5 = { color = "FFB3B0", name = "Moderate Drought", sortkey = 81002, }, palmer4 = { color = "FFFFFF", name = "Near Normal", sortkey = 81003, }, palmer3 = { color = "A9FEC4", name = "Moderately Moist", sortkey = 81004, }, palmer2 = { color = "5FFF46", name = "Very Moist", sortkey = 81005, }, palmer1 = { color = "1BC800", name = "Extremely moist", sortkey = 81006, }, drought0 = { color = "FFFFD9", name = "Abnormally Dry", sortkey = 81100, }, drought1 = { color = "FFD98C", name = "Moderate Drought", sortkey = 81101, }, drought2 = { color = "FF9E59", name = "Severe Drought", sortkey = 81102, }, drought3 = { color = "FF738A", name = "Extreme Drought", sortkey = 81103, }, drought4 = { color = "A188FC", name = "Exceptional Drought", sortkey = 81104, }, atmosriv1 = { color = "FFFFD9", name = "Category 1: Weak (Atmospheric river)", sortkey = 81200, }, atmosriv2 = { color = "FFD98C", name = "Category 2: Moderate (Atmospheric river)", sortkey = 81201, }, atmosriv3 = { color = "FF9E59", name = "Category 3: Strong (Atmospheric river)", sortkey = 81202, }, atmosriv4 = { color = "FF738A", name = "Category 4: Extreme (Atmospheric river)", sortkey = 81203, }, atmosriv5 = { color = "A188FC", name = "Category 5: Exceptional (Atmospheric river)", sortkey = 81204, }, -- Space Weather radio1 = { color = "FFFFD9", name = "Minor Radio Blackout", sortkey = 82000, }, radio2 = { color = "FFD98C", name = "Moderate Radio Blackout", sortkey = 82001, }, radio3 = { color = "FF9E59", name = "Strong Radio Blackout", sortkey = 82002, }, radio4 = { color = "FF738A", name = "Severe Radio Blackout", sortkey = 82003, }, radio5 = { color = "A188FC", name = "Extreme Radio Blackout", sortkey = 82004, }, solar1 = { color = "FFFFD9", name = "Minor Solar Radiation Storms", sortkey = 82100, }, solar2 = { color = "FFD98C", name = "Moderate Solar Radiation Storms", sortkey = 82101, }, solar3 = { color = "FF9E59", name = "Strong Solar Radiation Storms", sortkey = 82102, }, solar4 = { color = "FF738A", name = "Severe Solar Radiation Storms", sortkey = 82103, }, solar5 = { color = "A188FC", name = "Extreme Solar Radiation Storms", sortkey = 82104, }, geo1 = { color = "FFFFD9", name = "Minor Geomagnetic Storms", sortkey = 82200, }, geo2 = { color = "FFD98C", name = "Moderate Geomagnetic Storms", sortkey = 82201, }, geo3 = { color = "FF9E59", name = "Strong Geomagnetic Storms", sortkey = 82202, }, geo4 = { color = "FF738A", name = "Severe Geomagnetic Storms", sortkey = 82203, }, geo5 = { color = "A188FC", name = "Extreme Geomagnetic Storms", sortkey = 82204, }, -- Heatwaves and Fireweather/Coldwaves/Temperature heatw = { color = "FFFFD9", name = "Warm", sortkey = 83000, }, heat4 = { color = "FFD98C", name = "Category 4: Very Warm", sortkey = 83001, }, heat3 = { color = "FF9E59", name = "Category 3: Hot", sortkey = 83002, }, heat2 = { color = "FF738A", name = "Category 2: Very Hot", sortkey = 83003, }, heat1 = { color = "A188FC", name = "Category 1: Extremely Hot", sortkey = 83004, }, redflagnil = { color = "4DFFFF", name = "RFTI NIL", sortkey = 83100, }, redflagelv = { color = "FFFFD9", name = "RFTI Elevated", sortkey = 83101, }, redflagcrl = { color = "FFD98C", name = "RFTI Critical-low", sortkey = 83102, }, redflagcrh = { color = "FF9E59", name = "RFTI Critical-High", sortkey = 83103, }, redflagecr = { color = "FF738A", name = "RFTI Extremely Critical", sortkey = 83104, }, redflaghcr = { color = "A188FC", name = "RFTI Historically critical", sortkey = 83004, }, -- WPC/SPC Risk categories tstm = { color = "A9FEC4", name = "T-storm", sortkey = 84000, }, mrglr = { color = "1BC800", name = "Marginal Risk", sortkey = 84001, }, slgtr = { color = "FFD98C", name = "Slight Risk", sortkey = 84002, }, enhr = { color = "FF9E59", name = "Enhanced Risk", sortkey = 84003, }, mdtr = { color = "FF738A", name = "Moderate Risk", sortkey = 84004, }, highr = { color = "A188FC", name = "High Risk", sortkey = 84005, }, elevatedr = { color = "FF9E59", name = "Elevated Risk", sortkey = 84100, }, criticalr = { color = "FF738A", name = "Critical Risk", sortkey = 84101, }, extremer = { color = "A188FC", name = "Extreme risk", sortkey = 84102, } } -- Define aliases -- All non-alphanumeric characters are already stripped, and the string is -- already set to lowercase, so additional aliases for those are no longer -- required. cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats cats = cats -- Key standardization check for k, v in pairs(cats) do if k ~= mw.ustring.gsub(k, "", "") then mw.addWarning( "Category \"" .. k .. "\" in ] is defined with a non-alphanumeric key. " .. "This key will likely be unusable unless non-alphanumeric characters are removed." ) end end p.defaultCategory = "unknown" p.cats = cats return pCategory: