Difference between revisions 51846 and 51847 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) fmargs.image = 'none' fmargs.style = message('fmbox-style') -- Sets 'background-color: #ecfcf4' fmargs.textstyle = message('fmbox-textstyle') -- 'font-style: italic;' -- Assemble the fmbox text field. 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 '')⏎ -- Add links to /sandbox and /testcases when appropriate. -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 82810 or subjectSpace == 10828 then -- We are in the user, module or template namestemplate or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pacges. " 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"Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly, sincepecified 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 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 All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://wikimania.wikimedia.org/w/index.php?diff=prev&oldid=51847.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|