Jump to content

Module:Storm categories/icons

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Anthony Appleyard (talk | contribs) at 00:34, 3 February 2022 (Anthony Appleyard moved page Module:Tropical cyclone categories/icons to Module:Storm categories/icons without leaving a redirect: Requested by Chlod at WP:RM/TR: Module's scope has now expanded to include other non-tropical storms (such as tornadoes). As such, the name "Tropical cyclone categories" is unfitting. This module includes many subpages (some are submodules, others are documentation pages) which require the page mover right to move (or a...). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

-- Icon overrides for old {{Tropical cyclone status icons}} that don't have a
-- viable category.
local icons = {
	-- Ambiguious 5-tier scale
	["1"] = cats["cat1"].icon,
	["2"] = cats["cat2"].icon,
	["3"] = cats["cat3"].icon,
	["4"] = cats["cat4"].icon,
	["5"] = cats["cat5"].icon,
	-- FMS scale
	["a5"] = cats["aus5"].icon,
	["a4"] = cats["aus4"].icon,
	["a3"] = cats["aus3"].icon,
	["a2"] = cats["aus2"].icon,
	["a1"] = cats["aus1"].icon,
	-- Misc
	["extratropical2"] = "[[File:Extratropical storm icon.png|18px]]",
	["typhoon"] = "[[File:Typhoon icon.png|18px]]",
	["swiosts"] = "[[File:Severe tropical storm south icon.png|18px]]",
	["swiotc"] = "[[File:SWIO tropical cyclone icon.png|18px]]"
}

icons["et2"] = icons["extratropical2"]
icons["ex2"] = icons["extratropical2"]
icons["ty"] = icons["typhoon"]
icons["stss"] = icons["swiosts"]
icons["tc"] = icons["swiotc"]

p.icons = icons
return p