Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
exists
fix
Line 399:
class = check_fallbacks(class, assessment_cat)
local category = (class=='' and 'Unassessed' or class..'-Class') .. ' ' .. assessment_cat -- .. ' ' .. (article and 'articles' or 'pages')
if not article and mw.title.new('Category:' .. category .. ' pages').exists then
category = category .. ' pages' -- use "pages" for non-articles if the category exists: temporary transition code
else
Line 454:
if importance then -- banner gives importance ratings
local category = importance .. '-' .. importance_name .. ' ' .. assessment_cat
if importance=='NA' and mw.title.new('Category:' .. category .. ' pages').exists then
category = category .. ' pages' -- use "pages" for non-articles if the category exists: temporary transition code
else
Line 555:
end
tf_importance_category = tf_importance .. '-' .. importance_name .. ' ' .. tf_assessment_cat
if tf_importance=='NA' and mw.title.new('Category:' .. tf_importance_category .. ' pages').exists then
category = category .. ' pages' -- use "pages" for non-articles if the category exists: temporary transition code
else
Line 610:
local tf_class = check_fallbacks(class, tf_assessment_cat)
local category = (tf_class=='' and 'Unassessed' or tf_class..'-Class') .. ' ' .. tf_assessment_cat
if not article and mw.title.new('Category:' .. category .. ' pages').exists then
category = category .. ' pages' -- use "pages" for non-articles if the category exists: temporary transition code
else