Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
group classes
rename some messages
Line 297:
if not article_class then
if pagetype=='article' then
add_category(cfg.banner_shell.category.no_banner_shell_articles)
elseif title.namespace==3 then --User talk namespace
local valid_users = {
Line 308:
for _, user in ipairs(valid_users) do
if string.find(title.rootText, user) then
add_category(cfg.banner_shell.category.no_banner_shell)
end
end
else
add_category(cfg.banner_shell.category.no_banner_shell)
end
end
Line 354:
end
elseif not demo then
add_category(cfg.banner_shell.category.no_quality_rating)
warning = warning .. display_error(cfg.quality.piqa_warning)
end
Line 361:
class = article_class
if raw_args.class~='' and args.QUALITY_CRITERIA~='custom' then
add_category(cfg.banner_shell.category.redundant_class)
end
elseif (article_class=='NA') and not isarticle(class) then -- article class and local class are both non-article classes