Module:Documentation: Difference between revisions
From Roses, Tulips, & Liberty
Content deleted Content added
add missing return statement from p.renderStartBoxLinks |
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 |