Advertisement

local mArguments -- lazy load

local p = {}

function p.main( frame )
	mArguments = require("Module:Arguments")
	local args = mArguments.getArgs(frame, {
		wrappers = "Template:Link",
	})
	return p._main(args)
end

function p._main(args)
	local page = args[1]
    local color = args[2]
    local size = args.s or "18px"
    local link = ""
  
    if size ~= "0" then
        link = "[[File:Icon " .. page .. ".png|link=|" .. size .. "]] "
    end
 
    link = link .. "[[" .. page .. "]]"
 
    return link
end

return p