Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
update assessment_category to strip "pages" as well as "articles" from category names
Tag: Reverted
add parameters.showblankpositional = 1 so empty pipes ("|") can be found, these might be typing errors but can also be signs of vandalism or incorrect usages
Line 946:
table.insert(parameters, parameter)
end
parameters.showblankpositional = 1
local check_for_unknown = require('Module:Check for unknown parameters')._check
local unknowns = check_for_unknown(parameters, parent_args)
if unknowns and unknowns~='' then-- there are some unknown parameters
--Note: there is no need to call the module twice; this is incorrect code.
if unknowns and unknowns~='' then -- there are some unknown parameters
parameters.preview = cfg.unknown_parameters.preview:format(wikilink(banner_name.fullText))
local unknown_category = cfg.unknown_parameters.tracking:format(project_name)