Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
rearrange
this check needs to happen earlier
Line 410:
warning = warning .. display_error(cfg.banner_shell.piqa_warning)
end
elseif article_class=='FM' and not args.QUALITY_CRITERIA=='custom' then
class = check_fallbacks(article_class, assessment_cat) -- TODO performance?
check_redundant()
elseif not article and class~='FM' then -- article class and local class are both non-article classes
check_redundant()
elseif args.QUALITY_CRITERIA=='custom' then -- project uses custom criteria and class differs
show = true -- show quality class in project banner
elseif article_class=='FM' then
class = check_fallbacks(article_class, assessment_cat) -- TODO performance?
check_redundant()
else -- article class exists and differs from local class
show = 'conflict'