Module:Icon: Difference between revisions
From Eco - English Wiki
| [checked revision] | [checked revision] |
Created page with "local p = {} function p.main(param) local Utils = require('Module:Utils') local IconUtils = require('Module:IconUtils') end return p" |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
local IconUtils = require('Module:IconUtils') | local IconUtils = require('Module:IconUtils') | ||
local args = Utils.normaliseArgs(param) | |||
local itemID = args.id | |||
if (itemID == nil) then itemID = Utils.CheckId(args.name); end | |||
return IconUtils.main{ name = args.name, id = itemID , size = args.size , style = args.style , link = args.link , border = args.border , count = args.count } | |||
end | end | ||
return p | return p | ||
Latest revision as of 20:58, 23 February 2026
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 = args.id
if (itemID == nil) then itemID = Utils.CheckId(args.name); end
return IconUtils.main{ name = args.name, id = itemID , size = args.size , style = args.style , link = args.link , border = args.border , count = args.count }
end
return p