Module:Icon: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
local itemID = Utils.CheckId(args.name) | local itemID = Utils.CheckId(args.name) | ||
return IconUtils.main{ name = itemID , size = args.size , style = args.style , link = args.link } | return IconUtils.main{ name = args.name, id = itemID , size = args.size , style = args.style , link = args.link } | ||
end | end | ||
return p | return p |
Latest revision as of 09:24, 8 December 2024
Documentation for this module may be created at Module:Icon/doc
local p = {}
function p.main(param)
local Utils = require('Module:Utils')
local IconUtils = require('Module:IconUtils')
local args = Utils.normaliseArgs(param)
local itemID = Utils.CheckId(args.name)
return IconUtils.main{ name = args.name, id = itemID , size = args.size , style = args.style , link = args.link }
end
return p