1,124
edits
Line 6: | Line 6: | ||
currentRow = mw.text.split(currentRow, ';') | currentRow = mw.text.split(currentRow, ';') | ||
objects = table.getn(currentRow) | objects = table.getn(currentRow) | ||
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)) | ||