Module:SpecialCategorizer/blacklist

-- This is a blacklist for Module:SpecialCategorizer. It is loaded -- with mw.loadData, which means it is only processed once per page rather than -- once per template.

local blacklist = { -- Don't categorize the following pages. '^Template:UnusedPage$',

-- Don't categorize the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wookieepedia:Userbox proposal%f[/\0]', '^Wookieepedia:Template messages%f[/\0]' }

local function isBlacklisted local pagename = mw.title.getCurrentTitle.prefixedText for _, pattern in ipairs(blacklist) do		if mw.ustring.find(pagename, pattern) then return true end end return false end

return { isBlacklisted = isBlacklisted }