qiuwenbaike>WaitSpring 小 (已保护“Module:Category handler/data”([编辑=仅允许模板编辑员](无限期)[移动=仅允许模板编辑员](无限期))) |
小 (导入1个版本:维基百科的按钮模板) |
(未显示另一用户的1个中间版本) | |
(没有差异)
|
2023年3月24日 (五) 23:39的最新版本
-- 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