Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
pass category
don't need this?
Line 687:
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)
local on_template_page = not demo and (current_title.rootPageTitle==banner_name.rootPageTitle
current_title.rootPageTitle==banner_name.rootPageTitle
or (current_title.rootPageTitle and current_title.rootPageTitle.prefixedText=='Template:WPBannerMeta')
)
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 ''