開啟主選單

模組:Category handler/data

< 模組:Category handler
於 2017年2月1日 (三) 05:15 由 Az對話 | 貢獻 所做的修訂 (已建立頁面,內容為 "-- This module assembles data to be passed to Module:Category handler using -- mw.loadData. This includes the configuration data and whether the current -- page...")
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

此模組的說明文件可於 模組: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