Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
simplify code and add aliases used by WPBS
pass pagetype to class_mask
Line 92:
return FQS and lang:ucfirst(class) or 'NA'
end
local pagetype = require('Module:Pagetype' .. (sandbox or ''))._main({
page = title.prefixedText,
dab = 'dab'
})
local out = '' -- default to unassessed
title = title or mw.title.getCurrentTitle()
Line 293 ⟶ 289:
add_category('WikiProject banners without banner shells')
end
article_class = article_class and p.class_mask(article_class, title, false, pagetype)
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 321 ⟶ 317:
end
else
class = p.class_mask(class, title, true, pagetype)
end
if article_class then -- banner shell exists