Jump to content

Module:Documentation: Difference between revisions

fix env.templateTitle value when title is in a talk namespace
m>Mr. Stradivarius
(add missing return statement from p.renderStartBoxLinks)
m>Mr. Stradivarius
(fix env.templateTitle value when title is in a talk namespace)
Line 217: Line 217:
-- 'testcases-subpage' --> 'testcases'
-- 'testcases-subpage' --> 'testcases'
--]]
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local title = env.title
local subpage = title.subpageText
local subpage = title.subpageText
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then
return title.basePageTitle
return mw.title.makeTitle(subjectSpace, title.baseText)
else
else
return title
return mw.title.makeTitle(subjectSpace, title.text)
end
end
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.