Module:Documentation/config: Difference between revisions

m
1 revision imported from wikipedia:Module:Documentation/config
(add new messages for the sandbox notice and add double brackets for some of the longer comments)
m (1 revision imported from wikipedia:Module:Documentation/config)
 
(24 intermediate revisions by 13 users not shown)
Line 14:
----------------------------------------------------------------------------------------------------
 
-- cfg['protection-templatereason-edit']
-- The protection reason for edit-protected templates to pass to
-- The name of the template that displays the protection icon (a padlock on enwiki).
-- [[Module:Protection banner]].
cfg['protection-templatereason-edit'] = 'pp-template'
 
--[[
-- cfg['protection-template-args']
-- Any arguments to send to the protection template. This should be a Lua table.
-- For example, if the protection template is "pp-template", and the wikitext template invocation
-- looks like "{{pp-template|docusage=yes}}", then this table should look like "{docusage = 'yes'}".
--]]
cfg['protection-template-args'] = {docusage = 'yes'}
 
--[[
Line 39 ⟶ 32:
-- cfg['sandbox-notice-image']
-- The image displayed in the sandbox notice.
cfg['sandbox-notice-image'] = '[[ImageFile:Sandbox.pngsvg|50px|alt=|link=]]'
 
--[[
Line 72 ⟶ 65:
-- cfg['sandbox-notice-testcases-blurb']
-- cfg['sandbox-notice-testcases-link-display']
-- cfg['sandbox-notice-testcases-run-blurb']
-- cfg['sandbox-notice-testcases-run-link-display']
-- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page
-- corresponding to this sandbox that they can edit. $1 is a link to the test cases page.
-- cfg['sandbox-notice-testcases-link-display'] is the display value for that link.
-- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page
-- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test
-- cases page, and $2 is a link to the page to run it.
-- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test
-- cases.
--]]
cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.'
cfg['sandbox-notice-testcases-link-display'] = 'test cases'
cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).'
cfg['printsandbox-notice-testcases-run-link-display'] = '/Printrun'
 
-- cfg['sandbox-category'] - A category to add to all template sandboxes.
-- cfg['module-sandbox-category'] - A category to add to all templatemodule sandboxes.
-- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules.
cfg['sandbox-category'] = 'Template sandboxes'
cfg['module-sandbox-category'] = 'Module sandboxes'
cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace'
 
 
----------------------------------------------------------------------------------------------------
Line 89 ⟶ 95:
-- cfg['documentation-icon-wikitext']
-- The wikitext for the icon shown at the top of the template.
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-infoIcon - Version (2).pngsvg|50px|link=|alt=Documentation icon]]'
 
-- cfg['template-namespace-heading']
Line 133 ⟶ 139:
-- cfg['transcluded-from-blurb']
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page.
cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[WikipediaHelp:Transclusion|transcluded]] from $1.'
 
--[[
Line 177 ⟶ 183:
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format:
--
-- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display'])
--
-- If the test cases page doesn't exist, it is in the format:
Line 230 ⟶ 236:
-- The text to display for "mirror" links.
cfg['mirror-link-display'] = 'mirror'
 
-- cfg['filemirror-docpagelink-preload']
-- The page to preload when a user clicks the "mirror" link.
cfg['filemirror-docpagelink-preload'] = 'Template:Documentation/preload-filespacemirror'
 
----------------------------------------------------------------------------------------------------
Line 254 ⟶ 264:
-- The text to display for test cases "edit" links.
cfg['testcases-edit-link-display'] = 'edit'
 
-- cfg['starttestcases-boxrun-link-iddisplay']
-- The text to display whenfor linkingtest tocases the"run" /Print subpagelinks.
cfg['testcases-run-link-display'] = 'run'
 
-- cfg['testcases-create-link-display']
Line 269 ⟶ 283:
-- link to the /doc subpage with a display value of cfg['doc-link-display'].
--]]
cfg['add-categories-blurb'] = 'Please addAdd categories to the $1 subpage.'
 
-- cfg['doc-link-display']
Line 314 ⟶ 328:
-- The name of the subpage typically used for documentation pages.
cfg['doc-subpage'] = 'doc'
 
-- cfg['file-docpage-preload']
-- Preload file for documentation page in the file namespace.
cfg['file-docpage-preload'] = 'Template:Documentation/preload-filespace'
 
-- cfg['docpage-preload']
Line 328 ⟶ 338:
 
----------------------------------------------------------------------------------------------------
-- PrintHTML versionand CSS configuration
----------------------------------------------------------------------------------------------------
 
-- cfg['print-subpagetemplatestyles']
-- The name of the templateTemplateStyles subpagepage usedwhere forCSS printis versionskept.
-- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed.
cfg['print-subpage'] = 'Print'
cfg['templatestyles'] = 'Module:Documentation/styles.css'
 
-- cfg['print-link-displaycontainer']
-- Class which can be used to set flex or grid CSS on the
-- The text to display when linking to the /Print subpage.
-- two child divs documentation and documentation-metadata
cfg['print-link-display'] = '/Print'
cfg['container'] = 'documentation-container'
 
-- cfg['printmain-blurbdiv-classes']
-- The CSS classesClasses added to the main HTML "div" tag.
-- Text to display if a /Print subpage exists. $1 is a link to the subpage with a display value of cfg['print-link-display'].
cfg['main-div-classes'] = 'documentation'
cfg['print-blurb'] = 'A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at $1.'
.. ' If you make a change to this template, please update the print version as well.'
 
-- cfg['displaymain-printdiv-categoryheading-class']
-- Class for the main heading for templates and modules and assoc. talk spaces
-- Set to true to enable output of cfg['print-category'] if a /Print subpage exists.
cfg['main-div-heading-class'] = 'documentation-heading'
-- This should be a boolean value (either true or false).
cfg['display-print-category'] = true
 
-- cfg['printstart-categorybox-class']
-- Class for the start box
-- Category to output if cfg['display-print-category'] is set to true, and a /Print subpage exists.
cfg['printstart-categorybox-class'] = 'Templates with print versionsdocumentation-startbox'
 
-- cfg['start-box-linkclasseslink-classes']
----------------------------------------------------------------------------------------------------
-- The CSS classesClasses used for the [view][edit][history] or [create] links in the start box.
-- HTML and CSS configuration
-- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]]
----------------------------------------------------------------------------------------------------
cfg['start-box-linkclasseslink-classes'] = 'mw-editsection-like plainlinks'
 
-- cfg['mainend-divbox-idclass']
-- TheClass "id" attribute offor the main HTML "div"end tagbox.
cfg['mainend-divbox-idclass'] = 'template-documentation-metadata'
 
-- cfg['mainend-divbox-classesplainlinks']
-- Plainlinks
-- The CSS classes added to the main HTML "div" tag.
cfg['mainend-divbox-classesplainlinks'] = 'template-documentation iezoomfixplainlinks'
 
-- cfg['start-box-linkclasses']
-- The CSS classes used for the [view][edit][history] or [create] links in the start box.
cfg['start-box-linkclasses'] = 'mw-editsection plainlinks'
 
-- cfg['start-box-link-id']
-- The HTML "id" attribute for the links in the start box.
cfg['start-box-link-id'] = 'doc_editlinks'
 
----------------------------------------------------------------------------------------------------
-- {{fmbox}} template configuration
----------------------------------------------------------------------------------------------------
 
-- cfg['fmboxtoolbar-idclass']
-- Class added for toolbar links.
-- The id sent to the "id" parameter of the {{fmbox}} template.
cfg['fmboxtoolbar-idclass'] = 'documentation-meta-datatoolbar'
 
-- cfg['fmbox-styleclear']
-- Just used to clear things.
-- The value sent to the style parameter of {{fmbox}}.
cfg['fmbox-styleclear'] = 'backgrounddocumentation-color: #ecfcf4clear'
 
-- cfg['fmbox-textstyle']
-- The value sent to the "textstyle parameter of {{fmbox}}.
cfg['fmbox-textstyle'] = 'font-style: italic'
 
----------------------------------------------------------------------------------------------------