Module:Appearances

-- local Appearances = {} local getArgs = require('Dev:Arguments').getArgs local data = mw.loadData('Module:Codename')

function Appearances.main(frame) -- Implements local args = getArgs(frame) return Appearances._main(args) end local function appoutput(app) app = string.lower(app) local result = data[app] if result then return string.format(           '  ',            result['icon'],            result['link']        ) else return '' end end

function Appearances._main(args) local output = {} for i, app in ipairs(args) do       table.insert( output, appoutput(app) ) end return table.concat(output) end

return Appearances