본문으로 이동

모듈:Category handler/data

위키백과, 우리 모두의 백과사전.
ChongDae (토론 | 기여)님의 2019년 6월 25일 (화) 14:01 판 ("모듈:Category handler/data" 문서를 보호했습니다: 훼손시 영향이 큰 틀이나 모듈 ([편집=장기인증된 사용자와 관리자만 허용] (무기한) [이동=장기인증된 사용자와 관리자만 허용] (무기한)))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

-- 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