Editing Module:Infobox
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 409: | Line 409: | ||
:addClass('infobox-'..self.infobox_name) |
:addClass('infobox-'..self.infobox_name) |
||
for _, class in ipairs(self.classes) do |
for _, class in ipairs(self.classes) do |
||
self.rtable:addClass('infobox-'..mw.ustring.gsub(self:get_param(class, self.default_version)), '%s', '_') |
|||
if type(class_name) == 'string' then |
|||
self.rtable:addClass('infobox-'..mw.ustring.gsub(class_name, '%s', '_')) |
|||
⚫ | |||
end |
end |
||
-- Create the switch datatable if multiple versions |
-- Create the switch datatable if multiple versions |
||
Line 565: | Line 562: | ||
end |
end |
||
local episode_classes = { |
|||
['hopeport'] = 'hopeport', |
|||
['hopeforest'] = 'hopeforest', |
|||
['mine of mantuban'] = 'mantuban', |
|||
['crenopolis'] = 'crenopolis', |
|||
} |
|||
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 |
|||
--[[ |
--[[ |