ਮੌਡਿਊਲ:Storm categories/colors
ਦਿੱਖ
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
This Lua module is used on many 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. |
Usage
[ਸੋਧੋ]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
[ਸੋਧੋ]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) | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Tropical Depression | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Tropical Depression | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Tropical Depression | style="background: #ਫਰਮਾ:Storm colour" | Depression | style="background: #ਫਰਮਾ:Storm colour" | Zone of Disturbed Weather | style="background: #ਫਰਮਾ:Storm colour" | Tropical Disturbance |
7 | 33 knots (38 mph; 61 km/h) | 28–29 knots (32–33 mph; 52–54 km/h) | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Deep Depression | style="background: #ਫਰਮਾ:Storm colour" | Tropical Disturbance | style="background: #ਫਰਮਾ:Storm colour" |Tropical Depression | |||
8 | 34–37 knots (39–43 mph; 63–69 km/h) | 30–33 knots (35–38 mph; 56–61 km/h) | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Tropical Storm | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Tropical Storm | style="background: #ਫਰਮਾ:Storm colour" | Tropical Depression | style="background: #ਫਰਮਾ:Storm colour" |Tropical Low | ||
9–10 | 38–54 knots (44–62 mph; 70–100 km/h) | 34–47 knots (39–54 mph; 63–87 km/h) | style="background: #ਫਰਮਾ:Storm colour" | Tropical Storm | style="background: #ਫਰਮਾ:Storm colour" | Cyclonic Storm | style="background: #ਫਰਮਾ:Storm colour" | Moderate Tropical Storm |
style="background: #ਫਰਮਾ:Storm colour" | 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) | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Severe Tropical Storm |
rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Severe Cyclonic Storm |
rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Severe Tropical Storm |
rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | 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) | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Category 1 Hurricane |
rowspan="7" style="background: #ਫਰਮਾ:Storm colour" | Typhoon | ||||
72–82 knots (83–94 mph; 133–152 km/h) | 64–72 knots (74–83 mph; 119–133 km/h) | rowspan="2" style="background:#ਫਰਮਾ:Storm colour" | Strong Typhoon | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Very Severe Cyclonic Storm |
rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Tropical Cyclone | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | 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) | style="background: #ਫਰਮਾ:Storm colour" | Category 2 Hurricane | ||||||
96–97 knots (110–112 mph; 178–180 km/h) | 84–85 knots (97–98 mph; 156–157 km/h) | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Category 3 Major Hurricane |
rowspan="3" style="background:#ਫਰਮਾ:Storm colour" | Very Strong Typhoon | |||||
98–112 knots (113–129 mph; 181–207 km/h) | 86–98 knots (99–113 mph; 159–181 km/h) | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Extremely Severe Cyclonic Storm |
rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Intense Tropical Cyclone |
rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | 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) | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | Category 4 Major Hurricane | ||||||
123–129 knots (142–148 mph; 228–239 km/h) | 108–113 knots (124–130 mph; 200–209 km/h) | rowspan="3" style="background:#ਫਰਮਾ:Storm colour" | Violent Typhoon | rowspan="3" style="background: #ਫਰਮਾ:Storm colour" | 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) | rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Super Typhoon |
rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Super Cyclonic Storm |
rowspan="2" style="background: #ਫਰਮਾ:Storm colour" | Very Intense Tropical Cyclone | ||||
>136 knots (157 mph; 252 km/h) | >120 knots (138 mph; 222 km/h) | style="background: #ਫਰਮਾ:Storm colour" | 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