Difference between revisions of "Module:Display"

Jump to navigation Jump to search
45 bytes added ,  08:40, 17 October 2021
no edit summary
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
innerFrame = mw.html.create('span')
innerData = mw.text.split(v, ',')
innerFrame:wikitext('[[file:' .. innerData[1] .. '|50px|frameless]] - ') -- .. innerData[2])
innerFrame = mw.html.create('span')
innerResult = innerResult .. tostring(innerFrame)
innerFrame:wikitext('[[file:' .. innerData[1] ..  
'|50px|frameless]] - ' .. innerData[2])
innerResult = innerResult .. tostring(innerFrame)
end
end
end
result:wikitext(innerResult)
result:wikitext(innerResult)

Navigation menu