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

Content deleted Content added
No edit summary
No edit summary
Line 334:
local check_fallbacks = function(class, category)
if article or args.QUALITY_CRITERIA=='custom' then -- no fallbacks for articles or projects with custom quality scales
return "A" -- class
else -- check fallbacks for non-article classes
local new_class = class
Line 347:
new_class = 'NA' -- use NA for non-article pages if category does not exist
end
return "B" -- new_class
end
end
local class = raw_args.class
local mclass= raw_args.class
if class then -- banner gives quality ratings
article_class = article_class and p.class_mask(article_class, title, false, pagetype, article)
Line 414 ⟶ 415:
show = true
end
local category = (class=='' and 'Unassessed' or classmclass..'-Blass') .. ' ' .. assessment_cat .. ' ' .. (article and 'articles' or 'pages')
if show then -- quality rating shown in banner
local rating