Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
no longer used
add Redirect and Help to FQS
Line 26:
local resolveFQSgrade = function(grade, args)
if (args[grade] or args.FQS) == 'yes' then
return ucfirst(grade)
else
return 'NA'
end
end
 
local resolveExtraGrade = function(grade, args)
if args[grade] == 'yes' then
return ucfirst(grade)
else
Line 42 ⟶ 34:
local resolveDefaultGrade = function(args, title, talkDefault)
if title.subjectPageTitle.isRedirect then
return resolveExtraGraderesolveFQSgrade('redirect',args)
end
local ns = title.namespace
Line 64 ⟶ 56:
return resolveFQSgrade('draft', args)
elseif ns==13 then -- Help talk
return resolveExtraGraderesolveFQSgrade('help', args)
else
return 'NA'
Line 125 ⟶ 117:
ret = resolveFQSgrade('disambig', args)
elseif grade == 'redirect' or grade == 'red' or grade == 'redir' then
ret = resolveExtraGraderesolveFQSgrade('redirect', args)
elseif grade == 'help' then
ret = resolveExtraGraderesolveFQSgrade('help', args)
elseif grade == 'portal' or grade == 'project' or grade == 'draft' then
ret = resolveFQSgrade(grade, args)