Module:Documentation: Difference between revisions
Jump to navigation
Jump to search
per edit request on talk page - make the doc environment behave correctly, giving the actual template name on the doc page rather than the name of the "doc" subpage
Setlist_infobox>Rarani (Update from master using #Synchronizer) |
Module:TNT>Paine Ellsworth (per edit request on talk page - make the doc environment behave correctly, giving the actual template name on the doc page rather than the name of the "doc" subpage) |
||
Line 237: | Line 237: | ||
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') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then | ||
return mw.title.makeTitle(subjectSpace, title.baseText) | return mw.title.makeTitle(subjectSpace, title.baseText) | ||
else | else |