6,140 Pages

-- <pre>
local p = {}
 
local lib       = require('Module:Feature')
local IL        = require('Module:ImageLink')
 
function p.main(frame)
    local args; if frame.args == nil then args = lib.arguments(frame) else args = lib.arguments(frame.args) end
 
    local splittable = lib.split(args[1], ",")
 
    local s = '<div style="margin-left:auto; margin-right:auto; width:90%; text-align: center;">\n'
    for _, split in pairs(splittable) do
        championname = mw.text.trim(split)
        s = s .. tostring(IL.loading{
            champion   = championname,
            text       = lib.validateName(championname),
            size       = 120,
            display    = 'inline-grid',
            iconstyle  = 'padding:3px 0px',
            labelstyle = 'background-color:#00000099; text-align:center; position:relative; margin:-26px 0px; width: 120px; height: 22px'}) .. '\n'
    end
    s = s .. '</div>\n'
 
    return s
end
 
return p
 
-- </pre>
-- [[Category:Lua]]
Community content is available under CC-BY-SA unless otherwise noted.