Changes
fix env.templateTitle value when title is in a talk namespace
-- 'testcases-subpage' --> 'testcases'
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local subpage = title.subpageText
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then
return mw.title.makeTitle(subjectSpace, title.basePageTitlebaseText)
else
return mw.title.makeTitle(subjectSpace, title.text)
end
end