모듈:Category handler/data: 두 판 사이의 차이

Revi HQ
잔글 (Protected Module:Category handler/data: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
 
잔글 (판 1개를 가져왔습니다: See same page name in English Wikipedia for full history.)
 
(차이 없음)

2018년 3월 17일 (토) 17:25 기준 최신판

이 모듈에 대한 설명문서는 모듈: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