Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
48 bytes added ,  19:45, 11 August 2022
no edit summary
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(data)
for k,v in ipairs(data) do
rowData:node(v)
end
table.insert(result, rowData)
table.insert(result, rowData)
end
end

Navigation menu