Module:Category handler/data: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add a currentTitleNamespaceParameters field
(don't bother with the "or false")
(add a currentTitleNamespaceParameters field)
Line 4:
 
local data = require('Module:Category handler/config')
local matchesBlacklistmShared = require('Module:Category handler/shared').matchesBlacklist
local blacklist = require('Module:Category handler/blacklist')
local mNamespaceDetect = require('Module:Namespace detect')
local title = mw.title.getCurrentTitle()
 
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
mw.title.getCurrentTitle().prefixedText,
require('Module:Category handler/blacklist')
)
 
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
title,
mNamespaceDetect.getParamMappings()
)
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu