模組:Category handler/data

出自Gea-Suan Lin's Wiki
< Module:Category handler
於 2018年2月4日 (日) 21:15 由 Gslin留言 | 貢獻 所做的修訂 (Created page with "-- 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 th...")
跳至導覽 跳至搜尋

此模塊的文檔可以在Module: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