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
local category_exists = function(class)
local cat = mw.title.new(cfg.quality.assessment_category:format(class, category .. ' ' .. (article and 'articles' or 'pages')))
return
end
if class=='FM' and not category_exists('FM') then
Line 347:
new_class = 'NA' -- use NA for non-article pages if category does not exist
end
return "B" -- new_class
end
end
|