Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
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 |
||
class_name = self:get_param(class, self.default_version) |
|||
if type(class_name) == 'string' then |
|||
self.rtable:addClass('infobox-'..mw.ustring.gsub(class_name, '%s', '_')) |
|||
end |
|||
end |
end |
||
-- Create the switch datatable if multiple versions |
-- Create the switch datatable if multiple versions |