"ماڈیول:Category handler/data" کے نسخوں کے درمیان فرق
Appearance
نیا صفحہ: -- 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 t... |
م 1 نسخہ درآمد کیا گیا |
(کوئی فرق نہیں)
| |
حالیہ نسخہ بمطابق 18:20، 17 مئی 2023ء
"اس ماڈیول کی دستاویز ماڈیول: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