Module:Infobox: Difference between revisions

See if anyone is using this
Also check aliases to catch animated images
Line 63: Line 63:
local slot
local slot
local invIds = mw.loadData( 'Module:InvSprite' ).ids
local invIds = mw.loadData( 'Module:InvSprite' ).ids
local invAliases = mw.loadData( 'Module:Inventory slot/Aliases' )
for k, v in ipairs( invImgCount ) do
for k, v in ipairs( invImgCount ) do
local image = args['invimage' .. v]
local image = args['invimage' .. v]
if image == 'title' then
if image == 'title' then
local imageExists
local imageExists
if invIds[title] then
if invIds[title] or invAliases[title] then
imageExists = true
imageExists = true
else
else