Module:Infobox Monster: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
InvalidCards (talk | contribs) (yahoo!) |
No edit summary |
||
Line 5: | Line 5: | ||
local classMap = { |
local classMap = { |
||
[' |
['hopeport'] = 'hopeport', |
||
[' |
['hopeforest'] = 'hopeforest', |
||
[' |
['mine of mantuban'] = 'mantuban', |
||
[' |
['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 |
||