1,124
edits
Line 52: | Line 52: | ||
table.insert(result, headerData) | table.insert(result, headerData) | ||
end | end | ||
local rowClass = 'infobow-row' | local rowClass = 'infobow-row' | ||
if rows then | if rows then | ||
rowClass = rowClass .. ' data-rows-' .. rows | rowClass = rowClass .. ' data-rows-' .. rows | ||
end | end | ||
local rowData = mw.html.create('div') | local rowData = mw.html.create('div') | ||
rowData:addClass(rowClass) | rowData:addClass(rowClass) | ||
:node( | for k,v in ipairs(data) do | ||
rowData:node(v) | |||
end | |||
table.insert(result, rowData) | table.insert(result, rowData) | ||
end | end |