模組:Category handler/data
外观
| 此模块被使用在系統訊息中。 對此模板的修改會立即反映在維基百科用戶界面上。為避免造成大規模的影響,任何編輯應該先在此的/sandbox或/testcases子页面上测试,或在阁下的用户空间。测试过的改动可以一次性加入此。请在修改前在讨论页上讨论。 |
Template:Synchronizer Module:Code第34行Lua错误:Parameters 2 and 3 are not used by this template.
-- 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