Module:IconUtils: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
No edit summary
No edit summary
Line 8: Line 8:
     local itemTable = itemData.items[name]
     local itemTable = itemData.items[name]
     if itemTable == nil then
     if itemTable == nil then
         return item .. ' could not be found '
         return name .. ' could not be found '
     end
     end



Revision as of 08:32, 14 June 2024

Documentation for this module may be created at Module:IconUtils/doc

local p = {}

function p.main(name,style,link,size,type)
local Utils = require('Module:Utils')
local itemData = mw.loadData("Module:ItemData")
local Icon = ''

    local itemTable = itemData.items[name]
    if itemTable == nil then
        return name .. ' could not be found '
    end

return Icon
end

return p