1,124
edits
Line 10: | Line 10: | ||
innerResult = '' | innerResult = '' | ||
for k, v in ipairs(data) do | for k, v in ipairs(data) do | ||
innerData = mw.text.split(v, ',') | if v ~= nil and v ~= '' then | ||
innerData = mw.text.split(v, ',') | |||
innerFrame = mw.html.create('span') | |||
innerFrame:wikitext('[[file:' .. innerData[1] .. | |||
'|50px|frameless]] - ' .. innerData[2]) | |||
innerResult = innerResult .. tostring(innerFrame) | |||
end | |||
end | end | ||
result:wikitext(innerResult) | result:wikitext(innerResult) |