Module:Storm categories/colors

From Thetacola Wiki
< Module:Storm categories
Revision as of 03:55, 11 April 2022 by en>Ks0stm (Changed protection settings for "Module:Storm categories/colors": Highly visible template; requested at WP:RfPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:Storm categories/colors/doc

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"] = "80ccff",
	-- 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