Module:Documentation/config: Difference between revisions
m>Mr. Stradivarius (remove unused messages) |
m (12 revisions imported from templatewiki:Module:Documentation/config: see Topic:Vtixlm0q28eo6jtf) |
||
| (51 intermediate revisions by 25 users not shown) | |||
| Line 9: | Line 9: | ||
local cfg = {} -- Do not edit this line. | local cfg = {} -- Do not edit this line. | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
| Line 39: | Line 14: | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- cfg | -- cfg['protection-reason-edit'] | ||
-- The | -- The protection reason for edit-protected templates to pass to | ||
-- [[Module:Protection banner]]. | |||
cfg['protection-reason-edit'] = 'template' | |||
-- | |||
-- | |||
--[[ | |||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- Sandbox | -- Sandbox notice configuration | ||
-- | -- | ||
-- On sandbox pages the module can display a template notifying users that the current page is a | -- On sandbox pages the module can display a template notifying users that the current page is a | ||
-- sandbox, and the location of test cases pages, etc. The module decides whether the page is a | -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a | ||
-- sandbox or not based on the value of cfg | -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the | ||
-- | -- messages that the notices contains. | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
--]] | |||
-- cfg['sandbox-notice-image'] | |||
-- The image displayed in the sandbox notice. | |||
cfg['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]' | |||
--[[ | |||
-- cfg['sandbox-notice-pagetype-template'] | |||
-- cfg['sandbox-notice-pagetype-module'] | |||
-- cfg['sandbox-notice-pagetype-other'] | |||
-- The page type of the sandbox page. The message that is displayed depends on the current subject | |||
-- namespace. This message is used in either cfg['sandbox-notice-blurb'] or | |||
-- cfg['sandbox-notice-diff-blurb']. | |||
--]] | |||
cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' | |||
cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' | |||
cfg['sandbox-notice-pagetype-other'] = 'sandbox page' | |||
-- cfg | --[[ | ||
-- The | -- cfg['sandbox-notice-blurb'] | ||
cfg. | -- cfg['sandbox-notice-diff-blurb'] | ||
-- | |||