Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
made redirect auto-categorisation apply only to Talk namespace
Tags: Reverted Mobile edit Mobile web edit Advanced mobile edit
reverting my own edits for test case reasons
Tags: Manual revert Mobile edit Mobile web edit Advanced mobile edit
Line 31:
if args.ignorenamespace then
return nil
end
if title.subjectPageTitle.isRedirect then
return resolveExtraGrade('redirect',args)
end
local ns = title.namespace
if ns==1 then -- Talk
if require('Module:Disambiguation').isDisambiguation(title.subjectPageTitle.isRedirect:getContent()) then
return resolveExtraGrade('redirect',args)
elseif require('Module:Disambiguation').isDisambiguation(title.subjectPageTitle:getContent()) then
return resolveFQSgrade('disambig',args)
else
Line 53 ⟶ 54:
elseif ns==119 then -- Draft talk
return resolveFQSgrade('draft', args)
elseif ns==13 then -- Help talk
return resolveExtraGrade('help', args)
else
return 'NA'
Line 116 ⟶ 115:
elseif grade == 'redirect' or grade == 'red' or grade == 'redir' then
ret = resolveExtraGrade('redirect', args)
elseif grade == 'help' then
ret = resolveExtraGrade('help', args)
elseif grade == 'portal' or grade == 'project' or grade == 'draft' then
ret = resolveFQSgrade(grade, args)