Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
use false if no banner shell present
pass title to _main
Line 177:
end
 
local getclass = function(args,title)
local class = '¬'
if args.QUALITY_SCALE == 'inline' then
Line 189:
args.FQS = (args.QUALITY_SCALE == 'extended') and 'yes' or 'no'
args[1] = args.class
class = p._main(args,title)
end
return class
Line 205:
 
p._quality = function(args)
local title = args.title or mw.title.getCurrentTitle().prefixedText
local local_class = getclass(args,title)
local prefix, class = 'Y', local_class
if local_class=='¬' then
Line 212:
elseif args.QUALITY_CRITERIA ~= 'custom' then -- project uses standard scale and will inherit article class if needed
local article_class = (args.article_class~='' and args.article_class) or p.readarticleclass(title,{ignore_subtemplates=true})
article_class = article_class and p._main{article_class, ignorenamespace=args.ignorenamespace, title=title} or '' -- normalise
if article_class == '' then -- banner shell exists but no article class defined
if local_class == '' then -- local class also does not exist, check whether any other class parameters are defined inside the shell