Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
fix
split logic for clarity
Line 376:
end
end
class = check_fallbacks(class, assessment_cat)
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 = check_fallbacks(article_class, assessment_cat) -- check fallbacks again now that class may have changed
elseif class==article_class then -- local class matches article class or is blank
check_redundant()
elseif article_class=='FM' then
class = check_fallbacks(article_class, assessment_cat)
check_redundant()
elseif article_class=='' then -- local class defined and no article class defined
Line 397 ⟶ 402:
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 not article and mw.title.new('Category:' .. category .. ' pages').exists then