Módulo:category handler/data
A documentação para este módulo pode ser criada na página Módulo:category handler/data/doc
-- 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(
title.prefixedText,
blacklist
)
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
title,
mShared.getParamMappings()
)
return data