Module:ImageGridFromList: Difference between revisions

From The First Descendant Wiki
No edit summary
No edit summary
Tag: Reverted
Line 11: Line 11:
end
end


return p
return "WHAT"

Revision as of 17:22, 1 June 2024

Documentation for this module may be created at Module:ImageGridFromList/doc

local p = {}

function p.split(frame)
    local str = frame.args[1]
    local sep = frame.args[2]
    local result = {}
    for match in (str..sep):gmatch("(.-)"..sep) do
        table.insert(result, '<div class="image-item">[[File:' .. match .. '|200px]]</div>')
    end
    return table.concat(result, "\n")
end

return "WHAT"