Module:Sprite: Difference between revisions

You can't index a number, of course.
Still can't index a number.
Line 145: Line 145:
local allowCats = not mw.title.getCurrentTitle().isSubpage
local allowCats = not mw.title.getCurrentTitle().isSubpage
if idData then
if idData then
if idData.deprecated and allowCats then
table.insert( categories, '[[Category:Pages using deprecated sprite names]]' )
end
if type( idData ) == 'table' then
if type( idData ) == 'table' then
if idData.deprecated and allowCats then
table.insert( categories, '[[Category:Pages using deprecated sprite names]]' )
end
args.pos = idData.pos
args.pos = idData.pos
else
else