Module:Icon: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
No edit summary
No edit summary
Line 8: Line 8:
     if args.name == nil or args.name == '' then return 'Module:IconUtils \'name\' must be specified.' end
     if args.name == nil or args.name == '' then return 'Module:IconUtils \'name\' must be specified.' end


     Icon = args.name .. '_Icon.png'
     local Icon = IconUtils.main{ name = args.name, size = 128, style = 3, link = tagLink }
     return Icon
     return Icon
end
end


return p
return p

Revision as of 18:18, 7 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)
    if args.name == nil or args.name == '' then return 'Module:IconUtils \'name\' must be specified.' end

    local Icon = IconUtils.main{ name = args.name, size = 128, style = 3, link = tagLink }
    return Icon
end

return p