Pang-bô͘:Module rating

This template contains color overrides for Module:Storm categories. These color overrides can either add an extra color to the template without adding a category, or override the color of an existing category or category alias for backwards compatibility. Make sure that added colors are compatible with black at a bare minimum, or else Module:Storm categories/demo will display errors as a check. As much as possible, also make the colors comply with at least the for contrast with links and visited links. Additional warnings are shown by the demo template for these.

Overrides are defined in the following format:

    -- For overrides that include the color of an existing category.
    ["override_id"] = cats["actual_category"].color,
    -- For overrides that introduce a new color.
    ["override_id"] = "ff80ff",

Overview

siu-kái
Beaufort
scale
1-minute sustained winds
(NHC/CPHC/JTWC)
10-minute sustained winds
(WMO/JMA/MF/BOM/FMS)
NE Pacific &
N Atlantic
NHC/CPHC
NW Pacific
JTWC
NW Pacific
JMA
N Indian Ocean
IMD
SW Indian Ocean
MF
Australia & S Pacific
BOM/FMS
0–7 <32 knots (37 mph; 59 km/h) <28 knots (32 mph; 52 km/h) Tropical Depression Tropical Depression Tropical Depression Depression Zone of Disturbed Weather Tropical Disturbance
7 33 knots (38 mph; 61 km/h) 28–29 knots (32–33 mph; 52–54 km/h) Deep Depression Tropical Disturbance Tropical Depression
8 34–37 knots (39–43 mph; 63–69 km/h) 30.–33 knots (35–38 mph; 56–61 km/h) Tropical Storm Tropical Storm Tropical Depression Tropical Low
9–10 38–54 knots (44–62 mph; 70–100 km/h) 34–47 knots (39–54 mph; 63–87 km/h) Tropical Storm Cyclonic Storm Moderate
Tropical Storm
Category 1
Tropical Cyclone
11 55–63 knots (63–72 mph; 102–117 km/h) 48–55 knots (55–63 mph; 89–102 km/h) Severe
Tropical Storm
Severe
Cyclonic Storm
Severe
Tropical Storm
Category 2
Tropical Cyclone
12+ 64–71 knots (74–82 mph; 119–131 km/h) 56–63 knots (64–72 mph; 104–117 km/h) Category 1
Hurricane
Typhoon
72–82 knots (83–94 mph; 133–152 km/h) 64–72 knots (74–83 mph; 119–133 km/h) Strong Typhoon Very Severe
Cyclonic Storm
Tropical Cyclone Category 3
Severe Tropical Cyclone
83–95 knots (96–109 mph; 154–176 km/h) 73–83 knots (84–96 mph; 135–154 km/h) Category 2
Hurricane
96–97 knots (110–112 mph; 178–180 km/h) 84–85 knots (97–98 mph; 156–157 km/h) Category 3
Major Hurricane
Very Strong Typhoon
98–112 knots (113–129 mph; 181–207 km/h) 86–98 knots (99–113 mph; 159–181 km/h) Extremely Severe
Cyclonic Storm
Intense
Tropical Cyclone
Category 4
Severe Tropical Cyclone
113–122 knots (130–140 mph; 209–226 km/h) 99–107 knots (114–123 mph; 183–198 km/h) Category 4
Major Hurricane
123–129 knots (142–148 mph; 228–239 km/h) 108–113 knots (124–130 mph; 200–209 km/h) Violent Typhoon Category 5
Severe Tropical Cyclone
130.–136 knots (150–157 mph; 241–252 km/h) 114–119 knots (131–137 mph; 211–220 km/h) Super
Typhoon
Super
Cyclonic Storm
Very Intense
Tropical Cyclone
>136 knots (157 mph; 252 km/h) >120. knots (138 mph; 222 km/h) Category 5
Major Hurricane

local p = {}
local cats = require("Module:Storm categories/categories").cats

-- Ambiguous color names. This is because the old {[storm colour}} itself is 
-- extremely ambiguous. This is also used to override the output of some codes.
local colors = {
	-- Basin colors
	["5"] = cats["cat5"].color,
	["4"] = cats["cat4"].color,
	["3"] = cats["cat3"].color,
	["2"] = cats["cat2"].color,
	["1"] = cats["cat1"].color,
	-- Depression
	["d"] = "1591de",
	-- FMS scale
	["a5"] = cats["aus5"].color,
	["a4"] = cats["aus4"].color,
	["a3"] = cats["aus3"].color,
	["a2"] = cats["aus2"].color,
	["a1"] = cats["aus1"].color
}

p.colors = colors
return p