Module:Infobox: Difference between revisions

let's see how this goes
No edit summary
(let's see how this goes)
Line 6:
local editbutton = require('Module:Edit button')
local smwutils = require('Module:SMW Utils')
 
local episode_classes = {
['hopeport'] = 'hopeport',
['hopeforest'] = 'hopeforest',
['mine of mantuban'] = 'mantuban',
['crenopolis'] = 'crenopolis',
}
 
local Infobox = {}
Line 552 ⟶ 559:
end
 
function Infobox:set_episode_class(ep_param)
ep_param = string.lower(ep_param or '')
if episode_classes[ep_param] ~= nil then
self:addClass('infobox-'..episode_classes[ep_param])
end
end
 
--[[