Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
p.
rename back to _main
Line 169:
end
 
p.class_mask_main = function(args, title)
title = title or mw.title.getCurrentTitle()
local out = ''
Line 182:
local getArgs = require('Module:Arguments').getArgs
local args = getArgs(frame,{removeBlanks=false, wrappers='Template:Class mask'})
return p.class_mask_main(args)
end
 
Line 197:
args.FQS = (args.QUALITY_SCALE == 'extended') and 'yes' or 'no'
args[1] = args.class
class = p.class_mask_main(args)
end
return class
Line 209:
elseif frame.args.QUALITY_CRITERIA ~= 'custom' then -- project uses standard scale and will inherit article class if needed
local article_class = frame.args.article_class or readarticleclass() -- checks parameter for testing purposes
article_class = article_class and p.class_mask_main{article_class, ignorenamespace=frame.args.ignorenamespace} or '¬' -- normalise if not false
if (article_class == '¬') or (article_class == '') then -- article class does not exist, display quality class in project banner as normal
elseif (local_class == '') or (local_class == article_class) then -- article class and local class are the same, or local is not specified