Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 13:
 
local function resolveFQSgrade(grade, args)
local SD = require "Module:SimpleDebug"
if (args[grade] or args.FQS) == 'yes' then
return SD.v(grade, args[grade], args.FQS) .. ucfirst(grade)
else
return 'NA'
return SD.v(grade, args[grade], args.FQS) .. 'NA'
end
end
Line 37 ⟶ 36:
end
local ns = title.namespace
-- local SD = require "Module:SimpleDebug"
if ns==1 then -- Talk
if require('Module:Disambiguation').isDisambiguation(title.subjectPageTitle:getContent()) then
Line 50 ⟶ 48:
elseif ns==101 then -- Portal talk
return resolveFQSgrade('portal', args)
elseif ns==11 or ns==829 then -- Template talk
return resolveFQSgrade('template', args)
elseif ns==829 then -- Module talk
return resolveFQSgrade('template', args)
elseif ns==5 then -- Wikipedia talk