Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
+unassessed bubble
+assessment_category
Line 277:
if args.QUALITY_CRITERIA~='custom' then
conflict = true
add_category('Articles with conflicting quality ratings'cfg.conflict_category)
end
end
end
if not isarticle(class) then
local cat = mw.title.new('Category:' cfg.quality. assessment_category:format(class .. '-Class' .. ' ' .., assessment_cat))
if not (cat.exists and #cat:getContent()>0) then --check if category exists and is not blank
class = 'NA' -- automatically use NA for non-article pages if category does not exist