1,124
edits
Line 11: | Line 11: | ||
for k, v in ipairs(currentRow) do | for k, v in ipairs(currentRow) do | ||
vs = mw.text.split(v, '-') | vs = mw.text.split(v, '-') | ||
object = mw.html.create('span') | object = mw.html.create('span') | ||
:wikitext(icon.icon(vs[1], vs[2], nil, 'no')) | :wikitext(icon.icon(vs[1], vs[2], nil, 'no')) | ||
Line 21: | Line 21: | ||
end | end | ||
table.insert(rowGroup, k, object) | table.insert(rowGroup, k, object) | ||
mw.log(rowGroup[k]) | |||
end | end | ||
result:wikitext(tostring(rowGroup)) | result:wikitext(tostring(rowGroup)) |