- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 441:
Line 441:
+
+
+
+
− self._vars.table_class = collapsible and "mw-collapsible mw-collapsed" or "" +
+
+
+
+
Add in temporary custom class support
end
end
self._vars = {icons = icons, labels = labels}
self._vars = {icons = icons, labels = labels}
local table_classes = {}
if self._args.classes then
table.insert(table_classes, self._args.classes)
end
local collapsible = self._args.collapsible
local collapsible = self._args.collapsible
if collapsible then
table.insert(table_classes, "mw-collapsible")
table.insert(table_classes, "mw-collapsed")
end
self._vars.table_class = table.concat(table_classes, " ")
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
self._vars.float = self._args.float or "none"
self._vars.float = self._args.float or "none"