Module:IconUtils: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.main() | function p.main(name,style,link,size,type) | ||
local Utils = require('Module:Utils') | local Utils = require('Module:Utils') | ||
local itemData = mw.loadData("Module:ItemData") | local itemData = mw.loadData("Module:ItemData") | ||
local Icon = '' | local Icon = '' | ||
local itemTable = itemData.items[name] | |||
if itemTable == nil then | |||
return item .. ' could not be found ' | |||
end | |||
return Icon | return Icon |
Revision as of 07:31, 14 June 2024
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 item .. ' could not be found '
end
return Icon
end
return p