Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
simp
simp
Line 148:
 
else
-- We can't guarantee that we will only have Ascii grades any more, so
-- normalize the grade again using mw.ustring where necessary.
local trimmedGrade = trim(args[1])
 
-- Upper-case syntax
ret = args[mw.ustring.grade:upper(trimmedGrade)]
 
-- Lower-case syntax
if not ret then
local normalizedGrade = mw.ustring.lower(grade)
if args[grade:upperlower()] == 'yes' then
ret = mw.language.getContentLanguage():ucfirst(grade:upperlower())
end
end