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
text = text .. linkBox
else
text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]."
-- Add links to /sandbox and /testcases when appropriate.▼
▲ if subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 then
▲ -- 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
--
-- Don't show this message with inline docs or with an explicitly specified doc page,
-- 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
|