Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
needs to be outside this closure
fixes
Line 346:
end
if not category_exists(new_class) then
new_class = 'NA' -- automatically use NA for non-article pages if category does not exist
end
return new_class
Line 382:
class = p.class_mask(class, title, true, pagetype, article)
end
class = check_fallbacks(class, assessment_cat)
local check_redundant = function()
if raw_args.class~='' and args.QUALITY_CRITERIA~='custom' then -- banner has a non-blank class value which is ignored
Line 390 ⟶ 389:
local show = false -- hide quality class in project banner by default
if article_class then -- banner shell exists
if class=='' or class==article_class or article_class=='FM' then -- local class matches article class or is blank
class = article_class
check_redundant()
Line 409 ⟶ 408:
show = true
end
class = check_fallbacks(class, assessment_cat)
local category = (class=='' and 'Unassessed' or class..'-Class') .. ' ' .. assessment_cat .. ' ' .. (article and 'articles' or 'pages')
if show then -- quality rating shown in banner