Content deleted Content added
don't think isarticle is needed anymore |
revert this |
||
Line 185:
table.sort(task_forces, function (x, y) return tonumber(x) < tonumber(y) end)
table.sort(notes, function (x, y) return tonumber(x) < tonumber(y) end)
local assessment_category = function(cat, name)
if cat then
else
end
end
local assessment_cat = assessment_category(args.ASSESSMENT_CAT, project)
Line 330 ⟶ 328:
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 cat.exists and #cat:getContent()>0 -- check if category exists and is not blank
end
Line 400 ⟶ 398:
end
class = check_fallbacks(class, assessment_cat)
local category = (class=='' and 'Unassessed' or class..'-Class') .. ' ' .. assessment_cat .. ' ' .. (article and 'articles' or 'pages')
if show then -- quality rating shown in banner
local rating
Line 450 ⟶ 448:
local importance_name = args.IMPN or (raw_args.priority and 'priority' or cfg.importance.default_name)
if importance then -- banner gives importance ratings
local category = importance .. '-' .. importance_name .. ' ' .. assessment_cat .. ' articles'
if importance~='NA' then -- display importance rating
local rating = importance=='Unknown' and cfg.importance.not_yet or cfg.importance.rated:format(importance, importance_name)
Line 565 ⟶ 563:
and ' ' .. cfg.task_force.importance:format(
wikilink(
':Category:' .. tf_importance .. '-' .. importance_name .. ' ' .. tf_assessment_cat .. ' articles',
tf_importance .. '-' .. importance_name
)
Line 595 ⟶ 593:
if yesno(args[tf_prefix..'QUALITY']) and class then
local tf_class = check_fallbacks(class, tf_assessment_cat)
add_category((tf_class=='' and 'Unassessed' or tf_class..'-Class') .. ' ' .. tf_assessment_cat .. ' ' .. (article and 'articles' or 'pages'))
end
if tf_importance then
add_category(tf_importance .. '-' .. importance_name .. ' ' .. tf_assessment_cat .. ' articles')
end
if args[tf_prefix..'QII_FORMAT'] then
|