Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
add pages/articles to assessment_cat
don't think isarticle is needed anymore
Line 45:
return fallback or target
end
end
 
local isarticle = function(class)
local article = true
for _,v in ipairs(cfg.quality.non_article_classes) do
if class==v then -- class matches one of the non-article classes
article = false
break
end
end
return article
end
 
Line 336 ⟶ 325:
end
local check_fallbacks = function(class, category)
if isarticle(class)article then -- no fallbackfallbacks for article classesarticles
return class
else -- check fallbacks for non-article classes
Line 399 ⟶ 388:
warning = warning .. display_error(cfg.banner_shell.piqa_warning)
end
elseif not article and not isarticle(class) 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