You are browsing a read-only backup copy of Wikitech. The live site can be found at

Module:Category handler/data: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
m (9 revisions imported from mw:Module:Category_handler/data)
imported>Andrew Bogott
m (1 revision imported from mw:Module:Category_handler/data)
(2 intermediate revisions by one other user not shown)
(No difference)

Latest revision as of 19:58, 5 October 2018

Documentation for this module may be created at Module:Category handler/data/doc (Test casesTest results)

-- This module assembles data to be passed to [[Module:Category handler]] using
-- mw.loadData. This includes the configuration data and whether the current
-- page matches the title blacklist.

local data = require('Module:Category handler/config')
local mShared = require('Module:Category handler/shared')
local blacklist = require('Module:Category handler/blacklist')
local title = mw.title.getCurrentTitle()

data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(

data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(

return data