Module:Infobox Monster: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
(Cleaner to do it this way imo)
Line 78: Line 78:
:pad(20)
:pad(20)
local ep_param = infobox.args_raw['episode']
local ep_param = string.lower(infobox.args_raw['episode'] or '')
if classMap[string.lower(ep_param or '')] ~= nil then
if classMap[ep_param] ~= nil then
infobox:addClass('infobox-'..classMap[string.lower(ep_param or '')])
infobox:addClass('infobox-'..classMap[ep_param])
end
end