1,124
edits
(Created page with "local p = {} function gridIconList(data) result = '' if data ~= nil and data ~= '' then data = mw.text.split(data, '\n') result = mw.html.create('div') result:addClas...") |
|||
Line 1: | Line 1: | ||
--<nowiki> | |||
local p = {} | local p = {} | ||
Line 11: | Line 12: | ||
innerData = mw.text.split(v, ',') | innerData = mw.text.split(v, ',') | ||
innerFrame = mw.html.create('span') | innerFrame = mw.html.create('span') | ||
innerFrame:wikitext('[[file:' .. innerData[1] .. ']] - ' .. innerData[2]) | innerFrame:wikitext('[[file:' .. innerData[1] .. '|50px|frameless]] - ' .. innerData[2]) | ||
innerResult = innerResult .. tostring(innerFrame) | innerResult = innerResult .. tostring(innerFrame) | ||
end | end |