Module:Infobox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 48:
obj:store_smw()
obj:parse_categories()
if obj.args_raw.__dump then
obj:dump()
end
return obj
end
Line 571 ⟶ 568:
category_text = category_text..'[[Category:'..key..']]'
end
local dump = ''
return tostring(self.rtable) .. tostring(self.switch_datatable) .. error_text .. category_text
if obj.args_raw.__dump then
setmetatable(self, nil)
dump = mw.dumpObject(self)
setmetatable(self, Infobox)
end
return tostring(self.rtable) .. tostring(self.switch_datatable) .. error_text .. category_text .. dump
end