Module:Documentation/config: Difference between revisions

m
1 revision imported from wikipedia:Module:Documentation/config
(rm alt text on icon, since the adjacent text is sufficient alternative text (per edit request))
m (1 revision imported from wikipedia:Module:Documentation/config)
 
(15 intermediate revisions by 9 users not shown)
Line 32:
-- cfg['sandbox-notice-image']
-- The image displayed in the sandbox notice.
cfg['sandbox-notice-image'] = '[[ImageFile:Sandbox.svg|50px|alt=|link=]]'
 
--[[
Line 81:
cfg['sandbox-notice-testcases-run-link-display'] = 'run'
 
-- 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 135 ⟶ 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 279 ⟶ 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 324 ⟶ 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 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-link-idclasses']
----------------------------------------------------------------------------------------------------
-- 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-like 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'
 
----------------------------------------------------------------------------------------------------