Content deleted Content added
m simp |
automatically use NA-class if class category does not exist |
||
Line 284:
elseif (article_class=='NA') and not isarticle(class) then -- article class and local class are both non-article classes
show_quality = false
local cat = mw.title.new('Category:' .. 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
end
else -- article class exists and differs from local class
add_category('Articles with conflicting quality ratings')
|