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

이삭위키
둘러보기로 이동 검색으로 이동
(궁내동톨게이트입구(토론)의 24478706판 편집을 되돌림)
잔글 (판 1개를 가져왔습니다)
 
(사용자 3명의 중간 판 4개는 보이지 않습니다)
1번째 줄: 1번째 줄:
rm =rf
-- This module assembles data to be passed to [[Module:Category handler]] using
rm =rf
-- mw.loadData. This includes the configuration data and whether the current
rm =rf
-- page matches the title blacklist.
rm =rf
 
rm =rf
local data = require('Module:Category handler/config')
rm =rf
local mShared = require('Module:Category handler/shared')
rm =rf
local blacklist = require('Module:Category handler/blacklist')
rm =rf
local title = mw.title.getCurrentTitle()
rm =rf
 
rm =rf
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
rm =rf
title.prefixedText,
rm =rf
blacklist
rm =rf
)
rm =rf
 
rm =rf
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
rm =rf
title,
rm =rf
mShared.getParamMappings()
rm =rf
)
rm =rf
 
rm =rf
return data
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf
rm =rf

2023년 4월 25일 (화) 15:00 기준 최신판

이 모듈의 자세한 설명은 en: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