Difference between revisions of "Module:Category handler/data"

From KitwarePublic
Jump to navigationJump to search
m (1 revision)
 
(No difference)

Latest revision as of 23:19, 12 July 2016

Documentation for this module may be created at Module:Category handler/data/doc

 1 -- This module assembles data to be passed to [[Module:Category handler]] using
 2 -- mw.loadData. This includes the configuration data and whether the current
 3 -- page matches the title blacklist.
 4 
 5 local data = require('Module:Category handler/config')
 6 local mShared = require('Module:Category handler/shared')
 7 local blacklist = require('Module:Category handler/blacklist')
 8 local title = mw.title.getCurrentTitle()
 9 
10 data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
11 	title.prefixedText,
12 	blacklist
13 )
14 
15 data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
16 	title,
17 	mShared.getParamMappings()
18 )
19 
20 return data