模組:Category handler/data
跳转到导航
跳转到搜索
| File:Ambox important.svg | 此模块被引用于系统界面中。 任何对此模块的修改会立即反映于维基百科的用户界面。 为了避免造成大规模的影响,编者可以在本模块的沙盒和测试样例页面进行实验。 测试后无误的版本可以一次性地加入此模块中,但是修改前请务必于讨论页发起讨论。 |
| File:Icons8 flat synchronize.svg | 本模块已全域手动同步。 请注意,若您修改本地的模块,将可能影响同步。 |
| File:Lua-Logo.svg | 此模块使用Lua语言: |
-- 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