Module:Storm categories: Difference between revisions

Content deleted Content added
m Changed protection settings for "Module:Storm categories": Highly visible template; requested at WP:RfPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
per edit request on talk page - fixes
Line 49:
name_def[string.lower(basin or "default")]
or name_def["default"]
or (not nullIfMissing and nil or error("No default name for basin-based category name.") or nil)
)
or name_def
Line 71:
return icons[icon] or (cats[icon] ~= nil and (
cats[icon].icon or cats["tropicalcyclone"].icon
) or (not nullIfMissing and nil or cats[defaultCategory].icon) or nil)
end