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