Module:Infobox: Difference between revisions
no edit summary
OtherXAdmin (talk | contribs) No edit summary Tag: Reverted |
OtherXAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 24: | Line 24: | ||
function Infobox.defineParams(self, params) | function Infobox.defineParams(self, params) | ||
self.params = params | self.params = params | ||
end | |||
-- addRow method to add rows to the infobox | |||
function Infobox.addRow(self, row) | |||
if not self.rows then | |||
self.rows = {} | |||
end | |||
table.insert(self.rows, row) | |||
end | end | ||