Jump to content

Module:Category handler/data

විකිපීඩියා වෙතින්
02:56, 28 අප්‍රේල් 2023 වන විට Lee (සාකච්ඡාව | දායකත්ව) (en:Module: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
"https://si.wikipedia.org/w/index.php?title=Module:Category_handler/data&oldid=548176" වෙතින් සම්ප්‍රවේශනය කෙරිණි