Difference between revisions of "Module:Bundles"

Jump to navigation Jump to search
No change in size ,  21:43, 24 October 2021
no edit summary
Line 6: Line 6:
currentRow = mw.text.split(currentRow, ';')
currentRow = mw.text.split(currentRow, ';')
objects = table.getn(currentRow)
objects = table.getn(currentRow)
result = mw.html.create('div')
result:addClass('bundle-row bundle-col-' .. objects)
rowGroup = {}
rowGroup = {}
for k, v in ipairs(currentRow) do
for k, v in ipairs(currentRow) do
Line 25: Line 23:
mw.log(k .. ' - ' .. tostring(v) .. '\n')
mw.log(k .. ' - ' .. tostring(v) .. '\n')
end
end
result = mw.html.create('div')
result:addClass('bundle-row bundle-col-' .. objects)
result:wikitext(tostring(rowGroup))
result:wikitext(tostring(rowGroup))

Navigation menu