Module:Infobox: Difference between revisions

Also check aliases to catch animated images
Don't bother checking for a grid image. It's been long deprecated anyway, and if you really want it you can still specify the invimage manually.
Line 67: Line 67:
local image = args['invimage' .. v]
local image = args['invimage' .. v]
if image == 'title' then
if image == 'title' then
local imageExists
if invIds[title] or invAliases[title] then
if invIds[title] or invAliases[title] then
imageExists = true
else
local imageTitle = mw.title.new( 'File:Grid ' .. title .. '.png' )
imageExists = imageTitle and imageTitle.exists
if imageExists then
category = '[[Category:Fixme]]'
end
end
if imageExists then
image = title
image = title
else
else