Content deleted Content added
FM-class added to FQS |
new logic for b-class checklist parameters, mask will not autodemote or promote unless the whole checklist is completed |
||
Line 17:
-- Should not be used with non-ascii strings.
return s:sub(1, 1):upper() .. s:sub(2, -1)
end
Line 61 ⟶ 56:
end
end
local getGrade = function(args, title)
local grade = args[1]
Line 76 ⟶ 72:
-- B
elseif grade == 'b' or grade == 'c' then
local mask = mw.loadData('Module:WikiProject banner/config').b_checklist.mask
local isExtended =
if args[param] then▼
break▼
if isExtended then
local
for
local b_param = args['b'..i] and mask[string.lower(args['b'..i])]
if b_param and b_param~='y' and b_param~='x' then -- criterion in use and is not passed or marked not applicable
isB = false▼
if b_param~='n' then
end
end
ret =
or all_complete and 'C' -- or return C if whole checklist is completed but not all passed
or grade:upper() -- otherwise defer to entered grade
ret = 'B'▼
end
-- Upper-case
elseif grade == 'fa' or grade == 'fl' or grade == 'a' or grade == 'ga
if args[grade] ~= 'no' then
ret = grade:upper()
|