Module:Icon

local p = {}

function p.main(frame) local args = frame:getParent.args return p.getIcon(args) end

function p.getIcon(args) local group = args['group'] or args[1] or '' local name = args['name'] or args[2] or '' local ext = args['ext'] or 'png' local size = args['size'] or '28px' local width = args['width'] or 'auto' local link = args['link'] or '' local alt = args['alt'] or name or ''

return string.format(       '',        group,        name,        ext,        size,        width,        link,        alt    ) end

return p