Module:Category handler/data

番版𠓨𣅶12:32、𣈜17𣎃8𢆥2015𧵑Mxn (討論 | 㨂𢵰) (Đã khóa “Mô đun:Category handler/data”: Bản mẫu hay mô đun được sử dụng rất nhiều: Sẽ được sử dụng trong Mô đun:Message box ([Sửa đổi=Cấm mọi thành viên (trừ bảo quản viên)] (vô thời h…)
(恪) ←番版𫇰 | 番版㵋一 () | 番版㵋→ ()

-- This module assembles data to be passed to Mô đun:Category handler using -- mw.loadData. This includes the configuration data and whether the current -- page matches the title blacklist.

local data = require('Mô đun:Category handler/config') local mShared = require('Mô đun:Category handler/shared') local blacklist = require('Mô đun:Category handler/blacklist') local title = mw.title.getCurrentTitle()

data.currentTitleMatchesBlacklist = mShared.matchesBlacklist( title.prefixedText, blacklist )

data.currentTitleNamespaceParameters = mShared.getNamespaceParameters( title, mShared.getParamMappings() )

return data