Content deleted Content added
mNo edit summary |
check parent args for category |
||
Line 154:
end
p._main = function(args, raw_args, parent_args, demo, banner_name, inactive)
---------------------------
-- Initialise parameters --
Line 826:
local project_name = args.PROJECT_NAME or 'WikiProject ' .. (args.PROJECT or 'PROJECT')
local banner_name = mw.title.new(args.BANNER_NAME or 'Template:WikiProject ' .. (args.PROJECT or 'PROJECT'))
local demo = not yesno(args.category or true, true) or not yesno(parent_args.category or true, true) or args.demo_page or parent_args.demo_page
local on_template_page = not demo and current_title.rootPageTitle==banner_name.rootPageTitle
local unknown_parameters = ''
Line 851:
else
return unknown_parameters
.. p._main(args, raw_args, parent_args, demo or inactive_status, banner_name, inactive_status and true or false), nil -- nil to disregard subsequent returned values
end
end
|