Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
remove unsuppored functions
pass pagetype to class mask
Line 50:
end
 
---------------------------
-- Importance mask --------
---------------------------
local importance_mask = function(raw_importance, class, scale, banner_name)
local importance
Line 85 ⟶ 88:
-- otherwise returns class parameter
end
p.class_mask = function(class, title, pagetype, FQS)
local resolveFQSgrade = function(class)
if (class or FQS)==true then
Line 93 ⟶ 96:
end
end
local out = ''
title = title or mw.title.getCurrentTitle()
if not class then -- undefined
local out = ''
title = title or mw.title.getCurrentTitle()
if not class then -- undefined
out = nil'' -- default to unassessed
else
local ns = title.namespace
class = class:match('^%s*(.-)%s*$'):lower()
Line 298 ⟶ 300:
add_category('WikiProject banners without banner shells')
end
article_class = article_class and p.class_mask(article_class, title, pagetype, false)
local show_quality, conflict = true, false
if args.QUALITY_CRITERIA=='custom' then -- project has opted out of standard assessment scale and uses a custom mask
Line 325 ⟶ 327:
end
else
class = p.class_mask(class, title, pagetype, true)
end
if article_class then -- banner shell exists