Module:Documentation/config: Difference between revisions
m
12 revisions imported from templatewiki:Module:Documentation/config: see Topic:Vtixlm0q28eo6jtf
m>Mr. Stradivarius (split experimentBlurb into two separate messages so that we can avoid guessing whether languages have possessive forms or not) |
m (12 revisions imported from templatewiki:Module:Documentation/config: see Topic:Vtixlm0q28eo6jtf) |
||
| (53 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 27: | 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'] | ||
-- cfg['sandbox-notice-diff-display'] | |||
-- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence | |||
-- 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-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. | --[[ | ||
-- | -- cfg['sandbox-notice-testcases-blurb'] | ||
cfg. | -- 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['sandbox-notice-testcases-run-link-display'] = 'run' | |||
-- cfg | -- cfg['sandbox-category'] | ||
- | -- A category to add to all template sandboxes. | ||
-- | cfg['sandbox-category'] = 'Template sandboxes' | ||
cfg | |||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
| Line 62: | Line 89: | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- cfg | -- 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 | cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' | ||
-- cfg | -- cfg['template-namespace-heading'] | ||
-- The heading shown in the template namespace. | -- The heading shown in the template namespace. | ||
cfg | cfg['template-namespace-heading'] = 'Template documentation' | ||
-- cfg | -- cfg['module-namespace-heading'] | ||
-- The heading shown in the module namespace. | -- The heading shown in the module namespace. | ||
cfg | cfg['module-namespace-heading'] = 'Module documentation' | ||
-- cfg | -- cfg['file-namespace-heading'] | ||
-- The heading shown in the file namespace. | -- The heading shown in the file namespace. | ||
cfg | cfg['file-namespace-heading'] = 'Summary' | ||
-- cfg | -- cfg['other-namespaces-heading'] | ||
-- The heading shown in other namespaces. | -- The heading shown in other namespaces. | ||
cfg | cfg['other-namespaces-heading'] = 'Documentation' | ||
-- cfg | -- cfg['view-link-display'] | ||
-- The text to display for "view" links. | -- The text to display for "view" links. | ||
cfg | cfg['view-link-display'] = 'view' | ||
-- cfg | -- cfg['edit-link-display'] | ||
-- The text to display for "edit" links. | -- The text to display for "edit" links. | ||
cfg | cfg['edit-link-display'] = 'edit' | ||
-- cfg | -- cfg['history-link-display'] | ||
-- The text to display for "history" links. | -- The text to display for "history" links. | ||
cfg | cfg['history-link-display'] = 'history' | ||
-- cfg | -- cfg['purge-link-display'] | ||
-- The text to display for "purge" links. | -- The text to display for "purge" links. | ||
cfg | cfg['purge-link-display'] = 'purge' | ||
-- cfg | -- cfg['create-link-display'] | ||
-- The text to display for "create" links. | -- The text to display for "create" links. | ||
cfg | cfg['create-link-display'] = 'create' | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
| Line 130: | Line 133: | ||
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
-- cfg | -- cfg['transcluded-from-blurb'] | ||
- | |||
- | |||
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. | -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. | ||
cfg | cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from $1.' | ||
-- cfg | --[[ | ||
-- cfg['create-module-doc-blurb'] | |||
-- Notice displayed in the module namespace when the documentation subpage does not exist. | -- Notice displayed in the module namespace when the documentation subpage does not exist. | ||
-- $1 is a link to create the documentation page with the preload cfg | -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the | ||
-- display cfg. | |||