Module:Storm categories: Difference between revisions

Content deleted Content added
add "-equivalent" to respective noms
case-insensitive basins
Line 94:
color = "ff6060",
name = {
Atlatl = "Category 5 hurricane",
EPacepac = "Category 5 hurricane",
SAtlsatl = "Category 5 hurricane",
WPacwpac = "Category 5-equivalent super typhoon",
default = "Category 5-equivalent tropical cyclone"
},
Line 105:
color = "ff8f20",
name = {
Atlatl = "Category 4 hurricane",
EPacepac = "Category 4 hurricane",
SAtlsatl = "Category 4 hurricane",
WPacwpac = "Category 4-equivalent typhoon",
default = "Category 4-equivalent tropical cyclone"
},
Line 116:
color = "ffc140",
name = {
Atlatl = "Category 3 hurricane",
EPacepac = "Category 3 hurricane",
SAtlsatl = "Category 3 hurricane",
WPacwpac = "Category 3-equivalent typhoon",
default = "Category 3-equivalent tropical cyclone"
},
Line 127:
color = "ffe775",
name = {
Atlatl = "Category 2 hurricane",
EPacepac = "Category 2 hurricane",
SAtlsatl = "Category 2 hurricane",
WPacwpac = "Category 2-equivalent typhoon",
default = "Category 2-equivalent tropical cyclone"
},
Line 138:
color = "ffffcc",
name = {
Atlatl = "Category 1 hurricane",
EPacepac = "Category 1 hurricane",
SAtlsatl = "Category 1 hurricane",
WPacwpac = "Category 1-equivalent typhoon",
default = "Category 1-equivalent tropical cyclone"
},
Line 412:
return type(name_def) == "table" and
(
name_def[string.lower(basin] or "default")]
or name_def["default"]
or error("No default name for basin-based category name.")
)