Module:Documentation: Difference between revisions

change docpageRoot to docpageBase, as usually base and root mean different things with respect to titles
(fix env.templateTitle value when title is in a talk namespace)
(change docpageRoot to docpageBase, as usually base and root mean different things with respect to titles)
Line 172:
-- env.subjectSpace - the number of the title's subject namespace.
-- env.docSpace - the number of the namespace the title puts its documentation in.
-- env.docpageRootdocpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace.
-- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template.
--
Line 239:
docpage = docname
else
docpage = env.docpageRootdocpageBase .. '/' .. message('doc-subpage')
end
return mw.title.new(docpage)
Line 250:
-- 'sandbox-subpage' --> 'sandbox'
--]]
return mw.title.new(env.docpageRootdocpageBase .. '/' .. message('sandbox-subpage'))
end
Line 259:
-- 'testcases-subpage' --> 'testcases'
--]]
return mw.title.new(env.docpageRootdocpageBase .. '/' .. message('testcases-subpage'))
end
Line 288:
end
 
function envFuncs.docpageRootdocpageBase()
-- The base page of the /doc, /sandbox, and /testcases subpages.
-- For some namespaces this is the talk page, rather than the template page.