FANDOM


local Icon = {}
local getArgs = require('Dev:Arguments').getArgs
local data = mw.loadData("Module:Icon/data")
 
function Icon.main(frame) -- Implements {{icon|1=icon}}
	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('['..'['..'File:'..result..'|x16px|link=]]')
end
 
return Icon

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.