Difference between revisions 51845 and 51846 on wikimaniawiki

-- This module implements {{documentation}}.

-- Get required modules.
local getArgs = require('Module:Arguments').getArgs
local htmlBuilder = require('Module:HtmlBuilder')
local messageBox = require('Module:Message box')

-- Get the config table.
(contracted; show full)	else
		text = text .. (p.makeDocPageBlurb(args, env) or '')
		-- 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. 
			text = text .. p.makeExperimentBlurb(args, env)
			text = text .. '<br />'

			if not args.content and not args[1] then
				-- Show the categories text, but not if we have the content on the template page itself,
					-- or if the documentation page has been specified explicitly, since then it is unclear
					-- where to add the categories.
			if not args.content and not args[1] then
				text = text .. (p.makeCategoriesBlurb(args, env) or '')
			end
			-- Show the "subpages" link if we are not in the File namespace.
			if subjectSpace ~= 6 then
				text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '')
			end
			-- Show the "print" link if it exists.
			local printBlurb = p.makePrintBlurb(args, env)
			if printBlurb then
				text = text .. '<br />' .. printBlurb
			end
		end
	end
	fmargs.text = text

(contracted; show full)		and (subpage == message('doc-subpage') or subpage == message('testcases-subpage'))
	then
		ret = ret .. makeCategoryLink(message('strange-usage-category'))
	end
	return ret
end

return p