Changes

Jump to: navigation, search

Module:Category handler/shared

262 bytes added, 06:55, 7 July 2014
add a getNamespaceParameters function
-- and its submodules.
local p = {} function p.matchesBlacklist(page, blacklist)
for i, pattern in ipairs(blacklist) do
local match = mw.ustring.match(page, pattern)
end
return {function p.getNamespaceParameters(titleObj, mappings) -- We don't use title.nsText for the namespace name because it adds -- underscores. local mappingsKey = mw.site.namespaces[titleObj.namespace].name matchesBlacklist mappingsKey = matchesBlacklistmw.ustring.lower(mappingsKey) return mappings[mappingsKey] or {}end return p
Anonymous user

Navigation menu