Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
don't need this?
rmv invoke param
Line 96:
end
 
p._main = function(args, raw_args, demo, banner_name, invoke)
---------------------------
-- Initialise parameters --
Line 688:
local demo = not yesno(args.category or true, true)
local on_template_page = not demo and current_title.rootPageTitle==banner_name.rootPageTitle
local invoke = frame.args.PROJECT and frame.args.PROJECT~='' -- checks whether banner template is using {{#invoke:WikiProject banner}}
local unknown_parameters = banner_name.exists and not demo and parameter_check(frame, banner_name, project_name) or ''
if on_template_page then
local templatepage = require('Module:WikiProject banner/templatepage' .. (sandbox or '')).templatepage
return templatepage(args, raw_args, invoke, inactive)
else
return unknown_parameters .. p._main(args, raw_args, demo or inactive, banner_name, invoke), nil -- nil to disregard subsequent returned values
end
end