Changes
fix default parameter main namespace bug
}
-- This is a table of namespaces to categorise by default. They-- should be in the format of parameter names accepted by-- [[Module:Namespace detect]].
cfg.defaultNamespaces = {
}
if needsBlacklistCheck( args ) and not findBlacklistMatch( pageObject ) then
if not nsParamsExist( mappings, args ) then
-- No namespace parameters exist; basic usage. Pass args[1] to -- [[Module:Namespace detect]] using the default namespace -- parameters, and return the result.
local ndargs = {}
for _, nsid ndarg in ipairs( cfg.defaultNamespaces ) do ndargs[ mw.ustring.lower( mw.site.namespaces[ nsid ].name ) ndarg] = args[1]
end
ndargs.page = args.page