Misplaced Pages

Module:Storm categories/categories: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Module:Storm categories Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 16:15, 25 February 2023 view sourceMSGJ (talk | contribs)Autopatrolled, Administrators130,916 edits further update← Previous edit Revision as of 18:50, 20 April 2023 view source Pppery (talk | contribs)Interface administrators, Administrators100,604 edits Per edit requestNext edit →
Line 44: Line 44:
}, },
disturbance = { disturbance = {
color = "1591de", color = "1591DE",
name = "Tropical disturbance", name = "Tropical disturbance",
sortkey = 80, sortkey = 80,
Line 73: Line 73:
}, },
subdisturbance = { subdisturbance = {
color = "1591de", color = "1591DE",
name = "Subtropical disturbance", name = "Subtropical disturbance",
sortkey = 55, sortkey = 55,
Line 79: Line 79:
}, },
extratropical = { extratropical = {
color = "cccccc", color = "CCCCCC",
name = "Extratropical cyclone", name = "Extratropical cyclone",
sortkey = 50, sortkey = 50,
Line 91: Line 91:
}, },
potential = { potential = {
color = "1591de", color = "1591DE",
name = "Potential tropical cyclone", name = "Potential tropical cyclone",
sortkey = 25, sortkey = 25,
Line 97: Line 97:
}, },
posttropical = { posttropical = {
color = "cccccc", color = "CCCCCC",
name = "Post-tropical depression", name = "Post-tropical depression",
sortkey = 70, sortkey = 70,
Line 103: Line 103:
}, },
remnant = { remnant = {
color = "cccccc", color = "CCCCCC",
name = "Post-tropical depression", name = "Post-tropical depression",
sortkey = 70, sortkey = 70,
Line 109: Line 109:
}, },
unknown = { unknown = {
color = "c0c0c0", color = "C0C0C0",
name = "Unknown-strength storm", name = "Unknown-strength storm",
sortkey = 0, sortkey = 0,
Line 116: Line 116:
-- SSWHS hurricane categories -- SSWHS hurricane categories
cat5 = { cat5 = {
color = "a188fc", color = "A188FC",
name = { name = {
atl = "Category 5 hurricane", atl = "Category 5 hurricane",
Line 198: Line 198:
}, },
vityphoon = { vityphoon = {
color = "a188fc", color = "A188FC",
name = "Violent typhoon", name = "Violent typhoon",
sortkey = 60030, sortkey = 60030,
Line 205: Line 205:
-- PAGASA -- PAGASA
styphoon = { styphoon = {
color = "a188fc", color = "A188FC",
name = "Supertyphoon", name = "Supertyphoon",
sortkey = 60050 sortkey = 60050
}, },
sprcyclstorm = { sprcyclstorm = {
color = "a188fc", color = "A188FC",
name = "Super cyclonic storm", name = "Super cyclonic storm",
sortkey = 50020, sortkey = 50020,
Line 246: Line 246:
}, },
niodepression = { niodepression = {
color = "1591de", color = "1591DE",
name = "Depression", name = "Depression",
sortkey = 50001, sortkey = 50001,
Line 252: Line 252:
}, },
nioland = { nioland = {
color = "1591de", color = "1591DE",
name = "Land depression", name = "Land depression",
sortkey = 50000, sortkey = 50000,
Line 258: Line 258:
}, },
aus5 = { aus5 = {
color = "a188fc", color = "A188FC",
name = "Category 5 severe tropical cyclone", name = "Category 5 severe tropical cyclone",
sortkey = 40015, sortkey = 40015,
Line 299: Line 299:
}, },
vintense = { vintense = {
color = "a188fc", color = "A188FC",
name = "Very intense tropical cyclone", name = "Very intense tropical cyclone",
sortkey = 30010, sortkey = 30010,
Line 323: Line 323:
}, },
zodw = { zodw = {
color = "1591de", color = "1591DE",
name = "Zone of disturbed weather", name = "Zone of disturbed weather",
sortkey = 30000, sortkey = 30000,
Line 334: Line 334:
}, },
shem5 = { shem5 = {
color = "a188fc", color = "A188FC",
name = "Severe tropical cyclone", name = "Severe tropical cyclone",
sortkey = 20010 sortkey = 20010
Line 358: Line 358:
-- Regional Snowfall Index -- Regional Snowfall Index
rsi0 = { rsi0 = {
color = "cccccc", color = "CCCCCC",
name = "Category 0 \"Nuisance\"", name = "Category 0 \"Nuisance\"",
sortkey = 80100, sortkey = 80100,
Line 388: Line 388:
}, },
rsi5 = { rsi5 = {
color = "a188fc", color = "A188FC",
name = "Category 5 \"Extreme\"", name = "Category 5 \"Extreme\"",
sortkey = 80150, sortkey = 80150,
Line 395: Line 395:
-- Winter Storm Severity Index -- Winter Storm Severity Index
wssinone = { wssinone = {
color = "cccccc", color = "CCCCCC",
name = "No impacts", name = "No impacts",
sortkey = 80200, sortkey = 80200,
icon = "]"
}, },
wssilimited = { wssilimited = {
color = "1591de", color = "1591DE",
name = "Limited impacts", name = "Limited impacts",
sortkey = 80210, sortkey = 80210,
icon = "]"
}, },
wssiminor = { wssiminor = {
Line 410: Line 408:
name = "Minor impacts", name = "Minor impacts",
sortkey = 80220, sortkey = 80220,
icon = "]"
}, },
wssimoderate = { wssimoderate = {
Line 416: Line 413:
name = "Moderate impacts", name = "Moderate impacts",
sortkey = 80230, sortkey = 80230,
icon = "]"
}, },
wssimajor = { wssimajor = {
color = "a188fc", color = "A188FC",
name = "Major impacts", name = "Major impacts",
sortkey = 80240, sortkey = 80240,
icon = "]"
}, },
wssiextreme = { wssiextreme = {
color = "cf75ff", color = "CF75FF",
name = "Extreme impacts", name = "Extreme impacts",
sortkey = 80250, sortkey = 80250,
},
icon = "]"
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,
}, },
-- --
Line 434: Line 458:
-- --
efu = { efu = {
color = "cccccc", color = "CCCCCC",
name = "EFU tornado", name = "EFU tornado",
sortkey = 1001, sortkey = 1001,
Line 470: Line 494:
}, },
ef5 = { ef5 = {
color = "a188fc", color = "A188FC",
name = "EF5 tornado", name = "EF5 tornado",
sortkey = 1050, sortkey = 1050,
icon = "]" 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) -- Beaufort Scale (windstorms)
Line 480: Line 639:
name = "Calm (Force 0)", name = "Calm (Force 0)",
sortkey = 1500, sortkey = 1500,
icon = "]"
}, },
beaufort1 = { beaufort1 = {
Line 485: Line 645:
name = "Light Air (Force 1)", name = "Light Air (Force 1)",
sortkey = 1510, sortkey = 1510,
icon = "]"
}, },
beaufort2 = { beaufort2 = {
Line 490: Line 651:
name = "Light Breeze (Force 2)", name = "Light Breeze (Force 2)",
sortkey = 1520, sortkey = 1520,
icon = "]"
}, },
beaufort3 = { beaufort3 = {
Line 495: Line 657:
name = "Gentle Breeze (Force 3)", name = "Gentle Breeze (Force 3)",
sortkey = 1530, sortkey = 1530,
icon = "]"
}, },
beaufort4 = { beaufort4 = {
Line 500: Line 663:
name = "Moderate Breeze (Force 4)", name = "Moderate Breeze (Force 4)",
sortkey = 1540, sortkey = 1540,
icon = "]"
}, },
beaufort5 = { beaufort5 = {
Line 505: Line 669:
name = "Fresh Breeze (Force 5)", name = "Fresh Breeze (Force 5)",
sortkey = 1550, sortkey = 1550,
icon = "]"
}, },
beaufort6 = { beaufort6 = {
color = "007FCE", color = "1591DE",
name = "Strong Breeze (Force 6)", name = "Strong Breeze (Force 6)",
sortkey = 1560, sortkey = 1560,
icon = "]"
}, },
beaufort7 = { beaufort7 = {
color = "46A1FF", color = "6EC1EA",
name = "Near Gale (Force 7)", name = "Near Gale (Force 7)",
sortkey = 1570, sortkey = 1570,
icon = "]"
}, },
beaufort8 = { beaufort8 = {
color = "5EDBF8", color = "5EE0F5",
name = "Gale (Force 8)", name = "Gale (Force 8)",
sortkey = 1580, sortkey = 1580,
icon = "]"
}, },
beaufort9 = { beaufort9 = {
color = "3BFDFD", color = "4DFFFF",
name = "Strong Gale (Force 9)", name = "Strong Gale (Force 9)",
sortkey = 1590, sortkey = 1590,
icon = "]"
}, },
beaufort10 = { beaufort10 = {
color = "AAFD9C", color = "C0FFC0",
name = "Storm (Force 10)", name = "Storm (Force 10)",
sortkey = 1600, sortkey = 1600,
icon = "]"
}, },
beaufort11 = { beaufort11 = {
color = "D6FFA4", color = "E0FFCD",
name = "Violent Storm (Force 11)", name = "Violent Storm (Force 11)",
sortkey = 1610, sortkey = 1610,
icon = "]"
}, },
beaufort12 = { beaufort12 = {
color = "FFFCD1", color = "FFFFD9",
name = "Hurricane-force (Force 12)", name = "Hurricane-force (Force 12)",
sortkey = 1620, 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,
} }
} }
Line 636: Line 1,072:
cats = cats cats = cats
cats = cats cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
cats = cats
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 -- Key standardization check

Revision as of 18:50, 20 April 2023

Module documentation[view] [edit] [history] [purge]
WarningThis 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 the cats 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, without
  • name – the name of the category
  • sortkey – the sortkey of the category
    • Give decent spacing in between keys for future categories.
  • icon (incomplete) – the icon of the category in wikitext
  • basin (to be done) – a table (list) of basins to which this category applies to
  • scale (to be done) – a wikilink (without brackets) leading to the scale of this category
  • q (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 = cats
The 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 p
Category: