Module:Icon

local Icon = {} local getArgs = require('Dev:Arguments').getArgs local data = mw.loadData("Module:Icon/data") function Icon.main(frame) -- Implements local args = getArgs(frame) return Icon._main(args) end function Icon._main(args) local icon = args['icon'] or args[1] or nil assert(icon, "No icon was listed.") icon = string.lower(icon) local result = data[icon]:gsub("|", "|alt=") return string.format('') end return Icon