Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
doesn't make sense
Line 327:
else -- check fallbacks for non-article classes
local new_class = class
-- temporary transition code
local category_exists = function(class)
local category_exists_suffix = function(class, oldsuffix)
local cat = mw.title.new(cfg.quality.assessment_category:format(class, category .. ' ' .. (articleoldsuffix and 'articles' or 'pages')))
return cat.exists and #cat:getContent()>0 -- check if category exists and is not blank
end
local category_exists = function(class)
return category_exists_suffix(false) or category_exists_suffix(true)
end
if class=='FM' and not category_exists('FM') then