Module:Sprite: Difference between revisions

Undo revision 908902 by Majr (talk) well we're on 1.26, so this should work now
Add nocat
Line 143: Line 143:
local title = mw.title.getCurrentTitle()
local title = mw.title.getCurrentTitle()
-- Remove categories on language pages, talk pages, and in User/UserWiki/UserProfile namespaces
-- Remove categories on language pages, talk pages, and in User/UserWiki/UserProfile namespaces
local disallowCats = 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 type( idData ) == 'table' then
if type( idData ) == 'table' then