Module:Infobox: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
m bugfix entering rows: each row is a table with one or two entries (how it already was)
Line 176: Line 176:
local row = nil
local row = nil
if (header ~= nil or data ~= nil) then
if (header == nil and data ~= nil) then
row = {
table.insert(row, data)
["Header"] = header,
elseif (header ~= nil and data ~= nil) then
["Data"] = ((header ~= nil and data == nil) and "" or data),
table.insert(row, header)
}
table.insert(row, data)
end
end
if row ~= nil then
if row ~= nil then