Module:Documentation: Difference between revisions
Jump to navigation
Jump to search
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. | return mw.title.makeTitle(subjectSpace, title.baseText) | ||
else | else | ||
return title | return mw.title.makeTitle(subjectSpace, title.text) | ||
end | end | ||
end | end |