Module:Sprite: Difference between revisions
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 | ||