Module:Documentation/config: Difference between revisions
From Video Credit Archive
Content deleted Content added
wikpedia>Mr. Stradivarius remove more unused argument messages |
wikpedia>Mr. Stradivarius new messages for the sandbox notice |
||
Line 44: | Line 44: | ||
---------------------------------------------------------------------------------------------------- |
---------------------------------------------------------------------------------------------------- |
||
-- 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.sandboxSubpage. The following settings configure |
-- sandbox or not based on the value of cfg.sandboxSubpage. The following settings configure the |
||
-- messages that the notices contains. |
|||
-- template is displayed and what the arguments passed to it are. |
|||
---------------------------------------------------------------------------------------------------- |
---------------------------------------------------------------------------------------------------- |
||
-- cfg. |
-- cfg.sandboxNoticeImage |
||
-- The |
-- The image displayed in the sandbox notice. |
||
cfg.sandboxNoticeImage = '[[Image:Sandbox.png|50px|alt=|link=]]' |
|||
cfg.sandboxNoticeTemplate = 'template sandbox notice' |
|||
-- cfg. |
-- cfg.sandboxNoticeBlurb |
||
-- The |
-- The opening sentence of the sandbox notice. $1 is a link to the main template page. |
||
cfg.sandboxNoticeBlurb = 'This is the [[Wikipedia:Template test cases|template sandbox]] page for $1.' |
|||
cfg.sandboxNoticeLivepageParam = 1 |
|||
-- cfg.sandboxNoticeDiffBlurb |
|||
-- cfg.sandboxNoticeDiffDisplay |
|||
-- cfg.sandboxNoticeDiffBlurb is the opening sentence of the sandbox notice, with a diff link. $1 is a link |
|||
-- to the main template page, and $2 is a diff link between the sandbox and the main template. The |
|||
-- display value of the diff link is set by cfg.sandboxNoticeDiffDisplay. |
|||
cfg.sandboxNoticeDiffBlurb = 'This is the [[Wikipedia:Template test cases|template sandbox]] page for $1 ($2).' |
|||
cfg.sandboxNoticeDiffDisplay = 'diff' |
|||
-- cfg.sandboxNoticeTestcasesBlurb |
|||
-- cfg.sandboxNoticeTestcasesLinkDisplay |
|||
-- cfg.sandboxNoticeTestcasesBlurb 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.sandboxNoticeTestcasesLinkDisplay is the display value for that link. |
|||
cfg.sandboxNoticeTestcasesBlurb = 'See also the companion subpage for $1.' |
|||
cfg.sandboxNoticeTestcasesLinkDisplay = 'test cases' |
|||
---------------------------------------------------------------------------------------------------- |
---------------------------------------------------------------------------------------------------- |