Module:Sprite: Difference between revisions

No edit summary
Filter out translation pages
Line 119: Line 119:
local id = mw.text.trim( args[1] or '' )
local id = mw.text.trim( args[1] or '' )
local pos = ids[id] or ids[mw.ustring.lower( id ):gsub( '[%s%+]', '-' )]
local pos = ids[id] or ids[mw.ustring.lower( id ):gsub( '[%s%+]', '-' )]
if not pos then
if not pos and not mw.title.getCurrentTitle().isSubpage then
category = '[[Category:Pages with missing sprites]]'
category = '[[Category:Pages with missing sprites]]'
end
end