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: | Line 662: | ||
local text = '' |
local text = '' |
||
if linkBox then |
if linkBox then |
||
-- Use custom link box content if it is defined. |
|||
text = text .. linkBox |
text = text .. linkBox |
||
else |
else |
||
text = text .. (p.makeDocPageBlurb(args, env) or '') |
text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-- "Editors can experiment in this template's sandbox and testcases pages." |
|||
text = text .. p.makeExperimentBlurb(args, env) |
text = text .. p.makeExperimentBlurb(args, env) |
||
text = text .. '<br />' |
text = text .. '<br />' |
||
if not args.content and not args[1] then |
if not args.content and not args[1] then |
||
-- |
-- "Please add categories to the /doc 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 |
|||
-- where to add the categories. |
-- as then it is unclear where to add the categories. |
||
text = text .. (p.makeCategoriesBlurb(args, env) or '') |
text = text .. (p.makeCategoriesBlurb(args, env) or '') |
||
end |
end |
||
text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') |
text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" |
||
local printBlurb = p.makePrintBlurb(args, env) |
local printBlurb = p.makePrintBlurb(args, env) -- Two-line blurb about print versions of templates. |
||
if printBlurb then |
if printBlurb then |
||
text = text .. '<br />' .. printBlurb |
text = text .. '<br />' .. printBlurb |