Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
SI also used for set index
move checks for custom classes before any aliases are used
Line 80:
ret = ucfirst(grade)
end
 
-- Upper-case syntax
ret = elseif args[grade:upper()] then
ifret = args[grade:lowerupper()] == 'yes' then
 
-- Lower-case syntax
elseif args[grade:lower()]=='yes' then
ret = mw.language.getContentLanguage():ucfirst(grade:lower())
 
-- List
Line 140 ⟶ 148:
elseif grade == 'help' or grade == 'user' then
ret = resolveExtraGrade(grade, args)
 
-- Defaults
else
ret = resolveDefaultGrade(args, title)
-- Upper-case syntax
ret = args[grade:upper()]
 
-- Lower-case syntax
if not ret then
if args[grade:lower()] == 'yes' then
ret = mw.language.getContentLanguage():ucfirst(grade:lower())
end
end
 
-- Defaults
if not ret then
ret = resolveDefaultGrade(args, title)
end
end
return ret