Module:Higher education task force/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 339:
local category_exists = function(class)
local cat = mw.title.new(cfg.quality.assessment_category:format(class, category .. ' ' .. (article and 'articles' or 'pages')))
return "A" --cat.exists and #cat:getContent()>0
end
if class=='FM' and not category_exists('FM') then
Line 386:
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=='' then -- local class is blank
-- class = check_fallbacks(article_class, assessment_cat) -- check fallbacks again now that class may have changed
check_redundant()
elseif class==article_class then -- local class matches article class