Module:Infobox Monster: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(yahoo!)
No edit summary
Line 5: Line 5:


local classMap = {
local classMap = {
['Hopeport'] = 'hopeport',
['hopeport'] = 'hopeport',
['Hopeforest'] = 'hopeforest',
['hopeforest'] = 'hopeforest',
['Mine of Mantuban'] = 'mantuban',
['mine of mantuban'] = 'mantuban',
['Crenopolis'] = 'crenopolis',
['crenopolis'] = 'crenopolis',
}
}


Line 79: Line 79:
local ep_param = infobox.args_raw['episode']
local ep_param = infobox.args_raw['episode']
if classMap[ep_param] ~= nil then
if classMap[string.lower(ep_param or '')] ~= nil then
infobox:addClass('infobox-'..classMap[ep_param])
infobox:addClass('infobox-'..classMap[string.lower(ep_param or '')])
end
end