Module:Category handler: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
pass through page parameter to Module:Namespace detect, tweak comments a bit
fix default parameter main namespace bug
வரிசை 85:
}
 
-- 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 = {
0'main', -- Main
6'file', -- File
12'help', -- Help
14 -- Category'category'
}
 
வரி 195 ⟶ 197:
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 _, nsidndarg in ipairs( cfg.defaultNamespaces ) do
ndargs[ mw.ustring.lower( mw.site.namespaces[ nsid ].name ) ndarg] = args[1]
end
ndargs.page = args.page
"https://tamilar.wiki/w/Module:Category_handler" இலிருந்து மீள்விக்கப்பட்டது