Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
no edit summary
OtherXAdmin (talk | contribs) No edit summary Tag: Reverted |
OtherXAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 54: | Line 54: | ||
-- You can customize the infobox structure here | -- You can customize the infobox structure here | ||
table.insert(output, "{{Infobox start}}") | table.insert(output, "{{Infobox start}}") | ||
for | for i, row in ipairs(self.rows) do | ||
-- Debugging: Print the contents of the row | |||
mw.log("Row " .. i .. ": " .. tostring(row)) | |||
table.insert(output, row) | table.insert(output, row) | ||
end | end | ||
Line 61: | Line 64: | ||
return table.concat(output, "\n") -- Convert the table to a string | return table.concat(output, "\n") -- Convert the table to a string | ||
end | end | ||
return Infobox | return Infobox |