Module:Category handler/data

番版𠓨𣅶10:32、𣈜6𣎃1𢆥2016𧵑SaigonSarang (討論 | 㨂𢵰) (1 翻版)
() ←番版𫇰 | 番版㵋一 (恪) | 番版㵋→ (恪)

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