Difference between revisions of "Module:Documentation"

108 bytes added ,  01:22, 23 January 2014
fix env.templateTitle value when title is in a talk namespace
>Mr. Stradivarius
(add missing return statement from p.renderStartBoxLinks)
>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