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 | if idData.deprecated then | ||
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 | ||