Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
check article_class exists first
rmv ignorenamespace
Line 41:
 
local resolveDefaultGrade = function(args, title, talkDefault)
if args.ignorenamespace then
return nil
end
if title.subjectPageTitle.isRedirect then
return resolveExtraGrade('redirect',args)
Line 212 ⟶ 209:
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.prefixedText,{ignore_subtemplates=true})
article_class = article_class and p._main({article_class, ignorenamespace=args.ignorenamespace}, title)
if article_class then -- banner shell exists
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
local classparam = p.readarticleclass(title.prefixedText,{ignore_blank=true, only_subtemplates=true})