Module:Infobox Monster: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
(there is an attempt)
Line 3: Line 3:
local Infobox = require('Module:Infobox')
local Infobox = require('Module:Infobox')
local parse = require('Module:Param Parse')
local parse = require('Module:Param Parse')

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


function p.main(frame)
function p.main(frame)
Line 70: Line 77:
}
}
:pad(20)
:pad(20)
local ep_param = Infobox.raw_param('episode');
if classMap[ep_param] ~= nil then
infobox.addClass('infobox-'..classMap[ep_param])
end
return infobox
return infobox