Module:Character icon

local getArgs = require('Module:Arguments').getArgs local data   = mw.loadData('Module:Character icon/data')

local p = {}

function p.main(frame) local args = getArgs(frame) return p._main(args) end

function p._main(args) local character = string.lower(args[1] or '') local size = args['size'] or '30px'

local icons = data.icons local links = data.links if icons[character] then return string.format(, icons[character], size, links[character] or ) end return nil end

return p