Module:Sprite: Difference between revisions

No edit summary
No edit summary
Line 147: Line 147:
local disallowCats = args.nocat or title.isTalkPage or title.nsText:find( '^User' )
local disallowCats = args.nocat or title.isTalkPage or title.nsText:find( '^User' )
if idData then
if idData then
if idData.deprecated and not disallowCats then
if idData.deprecated then
categories[#categories + 1] = f:expandTemplate{ title = 'Translation category', args = { 'Pages using deprecated sprite names', project = 0 } }
args.class = ( args.class or '' ) .. ' sprite-deprecated'
if not disallowCats then
categories[#categories + 1] = f:expandTemplate{ title = 'Translation category', args = { 'Pages using deprecated sprite names', project = 0 } }
end
end
end