Module:Class mask/sandbox: Difference between revisions

Content deleted Content added
rmv
simp
Line 2:
 
local function getDocWarning(title)
if title.namespace == 10 and title.subpageText == 'class' then
return mw.getCurrentFrame():expandTemplate{
title = 'Class mask/doc warning'
}
end
end
 
Line 152 ⟶ 147:
function p._main(args, title)
title = title or mw.title.getCurrentTitle()
local docWarning = getDocWarning(title) or ''
if title.namespace == 10 and title.subpageText == 'class' then
returndocWarning = mw.getCurrentFrame():expandTemplate{
title = 'Class mask/doc warning'
}
end
local grade = getGrade(args, title) or ''
return docWarning .. grade