Content deleted Content added
+1 user project page |
move banner shell check outside of class code |
||
Line 293:
end
local class = raw_args.class
if class then -- banner gives quality ratings▼
▲ local title = args.demo_page and mw.title.new(args.demo_page) or current_title
if not article_class then
▲ local article_class = p.readarticleclass({ignore_subtemplates=true}, title.prefixedText)
if
▲ add_category(cfg.category.no_banner_shell_articles)
▲ elseif title.namespace==3 then --User talk namespace
"AlexNewArtBot",
▲ local valid_users = {
▲ }
▲ for _, user in ipairs(valid_users) do
▲ if string.find(title.rootText, user) then
▲ add_category(cfg.category.no_banner_shell)
end▼
end
else▼
add_category(cfg.category.no_banner_shell)▼
end
end
▲if class then -- banner gives quality ratings
article_class = article_class and p.class_mask(article_class, title, false, pagetype)
local show_quality, conflict = true, false
|