Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
37 bytes added ,  18:13, 11 August 2022
no edit summary
Line 52: Line 52:
table.insert(result, headerData)
table.insert(result, headerData)
end
end
local rowClass = 'infobow-row'
if rows then
if rows then
rows = 'data-rows-' .. rows
rowClass = rowClass ..  ' data-rows-' .. rows
end
end
local rowData = mw.html.create('div')
local rowData = mw.html.create('div')
rowData:addClass('infobox-row ' .. rows)
rowData:addClass(rowClass)
:node(data)
:node(data)
table.insert(result, rowData)
table.insert(result, rowData)

Navigation menu