Модул:Category handler/data
Изглед
Документацијата за овој модул можете да ја создадете на Модул:Category handler/data/док
-- Модул:Category handler/data
-- Imported from mk.wikipedia
-- 2016-06-22 -- V2 -- last modified by DenisWasRight
-- Extended version for mk.wiktionary
-- 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('Модул:Category handler/config')
local mShared = require('Модул:Category handler/shared')
local blacklist = require('Модул:Category handler/blacklist')
local title = mw.title.getCurrentTitle()
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
title.prefixedText,
blacklist
)
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
title,
mShared.getParamMappings()
)
return data