Module:Infobox Monster: Difference between revisions

let's see how this goes x2combo
(Cleaner to do it this way imo)
(let's see how this goes x2combo)
Line 3:
local Infobox = require('Module:Infobox')
local parse = require('Module:Param Parse')
 
local classMap = {
['hopeport'] = 'hopeport',
['hopeforest'] = 'hopeforest',
['mine of mantuban'] = 'mantuban',
['crenopolis'] = 'crenopolis',
}
 
function p.main(frame)
Line 77 ⟶ 70:
}
:pad(20)
local ep_param = string.lower :set_episode_class(infobox.args_raw['episode'] or '')
local ep_param = string.lower(infobox.args_raw['episode'] or '')
if classMap[ep_param] ~= nil then
infobox:addClass('infobox-'..classMap[ep_param])
end
return infobox