Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Documentation: Difference between revisions

Content added Content deleted
(don't check that we are not in the file namespace before adding the subpage blurb, as we already know we're either in the user, template or module namespace)
(tweak comments)
Line 662:
local text = ''
if linkBox then
-- Use custom link box content if it is defined.
text = text .. linkBox
else
text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]."
if subjectSpace == 2 or subjectSpace == 82810 or subjectSpace == 10828 then
-- Add links to /sandbox and /testcases when appropriate.
-- We are in the user, moduletemplate or templatemodule namespaces.
if subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 then
-- Add links to /sandbox and /testcases when appropriatelinks.
-- We are in the user, module or template namespaces.
-- "Editors can experiment in this template's sandbox and testcases pages."
text = text .. p.makeExperimentBlurb(args, env)
text = text .. '<br />'
if not args.content and not args[1] then
-- Show"Please theadd categories text, but not if we haveto the content on the template page/doc itself,subpage."
-- Don't show this message with inline docs or with an explicitly specified doc page,
-- or if the documentation page has been specified explicitly, since then it is unclear
-- as then it is unclear where to add the categories.
text = text .. (p.makeCategoriesBlurb(args, env) or '')
end
text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template"
local printBlurb = p.makePrintBlurb(args, env) -- Two-line blurb about print versions of templates.
if printBlurb then
text = text .. '<br />' .. printBlurb
Cookies help us deliver our services. By using our services, you agree to our use of cookies.