Difference between revisions of "Module:Documentation/config"
Topic:V24p1ieaeai6tho8
meta>Vermont m (Reverted changes by 182.251.70.42 (talk) to last version by Pharos) |
>Tomybrz |
||
Line 9: | Line 9: | ||
local cfg = {} -- Do not edit this line. | local cfg = {} -- Do not edit this line. | ||
cfg['templatestyles-scr'] = 'Module:Documentation/styles.css' | |||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- Protection template configuration | -- Protection template configuration | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- cfg['protection-template'] | |||
-- The name of the template that displays the protection icon (a padlock on enwiki). | |||
cfg['protection-template'] = 'pp-template' | |||
-- cfg['protection-reason-edit'] | -- cfg['protection-reason-edit'] | ||
Line 18: | Line 24: | ||
-- [[Module:Protection banner]]. | -- [[Module:Protection banner]]. | ||
cfg['protection-reason-edit'] = 'template' | cfg['protection-reason-edit'] = '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 32: | Line 46: | ||
-- cfg['sandbox-notice-image'] | -- cfg['sandbox-notice-image'] | ||
-- The image displayed in the sandbox notice. | -- The image displayed in the sandbox notice. | ||
cfg['sandbox-notice-image'] = '[[Image:Sandbox.svg| | cfg['sandbox-notice-image'] = '[[Image:Edit In Sandbox Icon - Color.svg|40px|alt=|link=]]' | ||
--[[ | --[[ | ||
Line 91: | Line 105: | ||
-- cfg['documentation-icon-wikitext'] | -- cfg['documentation-icon-wikitext'] | ||
-- The wikitext for the icon shown at the top of the template. | -- The wikitext for the icon shown at the top of the template. | ||
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt= | cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=Documentation icon]]' | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
Line 179: | Line 157: | ||
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: | -- $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 | -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display']) | ||
-- | -- | ||
-- If the test cases page doesn't exist, it is in the format: | -- If the test cases page doesn't exist, it is in the format: | ||
Line 260: | Line 238: | ||
-- The text to display for test cases "edit" links. | -- The text to display for test cases "edit" links. | ||
cfg['testcases-edit-link-display'] = 'edit' | cfg['testcases-edit-link-display'] = 'edit' | ||
-- cfg['testcases-create-link-display'] | -- cfg['testcases-create-link-display'] | ||
Line 373: | Line 347: | ||
-- cfg['main-div-classes'] | -- cfg['main-div-classes'] | ||
-- The CSS classes added to the main HTML "div" tag. | -- The CSS classes added to the main HTML "div" tag. | ||
cfg['main-div- | cfg['main-div-class'] = 'ts-doc-doc' | ||
cfg['header-div-class'] = 'ts-doc-header' | |||
cfg['heading-div-class'] = 'ts-doc-heading' | |||
cfg['content-div-class'] = 'ts-doc-content' | |||
cfg['footer-div-class'] = 'ts-doc-footer plainlinks' | |||
cfg['sandbox-class'] = 'ts-doc-sandbox' | |||
-- cfg['start-box-linkclasses'] | -- cfg['start-box-linkclasses'] | ||
-- The CSS classes used for the [view][edit][history] or [create] links in the start box. | -- 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-linkclasses'] = 'ts-tlinks-tlinks mw-editsection-like plainlinks' | ||
-- cfg['start-box-link-id'] | -- cfg['start-box-link-id'] | ||
-- The HTML "id" attribute for the links in the start box. | -- The HTML "id" attribute for the links in the start box. | ||
cfg['start-box-link-id'] = 'doc_editlinks' | cfg['start-box-link-id'] = 'doc_editlinks' | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |