Module:Documentation/config: Difference between revisions
m>Mr. Stradivarius (add a "subpages-blurb" message) |
m (12 revisions imported from templatewiki:Module:Documentation/config: see Topic:Vtixlm0q28eo6jtf) |
||
| (40 intermediate revisions by 25 users not shown) | |||
| Line 14: | Line 14: | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- cfg['protection- | -- cfg['protection-reason-edit'] | ||
-- The | -- The protection reason for edit-protected templates to pass to | ||
-- [[Module:Protection banner]]. | |||
cfg['protection-reason-edit'] = 'template' | |||
-- | |||
cfg['protection- | |||
--[[ | |||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- Sandbox notice configuration | -- Sandbox notice configuration | ||
| Line 32: | Line 28: | ||
-- messages that the notices contains. | -- messages that the notices contains. | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
--]] | |||
-- 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'] = '[[ | 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['sandbox-notice-blurb'] | -- cfg['sandbox-notice-blurb'] | ||
-- cfg['sandbox-notice-diff-blurb'] | -- cfg['sandbox-notice-diff-blurb'] | ||
-- cfg['sandbox-notice-diff-display'] | -- cfg['sandbox-notice-diff-display'] | ||
-- cfg['sandbox-notice-diff-blurb'] is the opening sentence of the sandbox notice | -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence | ||
-- to the main template page, and $ | -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page | ||
-- type, which is either cfg['sandbox-notice-pagetype-template'], | |||
cfg['sandbox-notice | -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what | ||
-- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between | |||
-- the sandbox and the main template. The display value of the diff link is set by | |||
-- cfg['sandbox-notice-compare-link-display']. | |||
--]] | |||
cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' | |||
cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' | |||
cfg['sandbox-notice-compare-link-display'] = 'diff' | cfg['sandbox-notice-compare-link-display'] = 'diff' | ||
--[[ | |||
-- cfg['sandbox-notice-testcases-blurb'] | -- cfg['sandbox-notice-testcases-blurb'] | ||
-- cfg['sandbox-notice-testcases-link-display'] | -- 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 | -- 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. | -- 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-link-display'] is the display value for that link. | ||
-- | |||