Module:Documentation/config: Difference between revisions
From Video Credit Archive
Content deleted Content added
wikpedia>Mr. Stradivarius add a config value for the protection reason to use with Module:Protection banner |
Cocopuff2018 (talk | contribs) m 1 revision imported: Requested By User |
||
(13 intermediate revisions by 10 users not shown) | |||
Line 13:
-- Protection template configuration
----------------------------------------------------------------------------------------------------
-- cfg['protection-reason-edit']
Line 22 ⟶ 18:
-- [[Module:Protection banner]].
cfg['protection-reason-edit'] = 'template'
--[[
Line 103 ⟶ 91:
-- cfg['documentation-icon-wikitext']
-- 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['template-namespace-heading']
Line 191 ⟶ 179:
-- $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-link-display'] | cfg['testcases-run-link-display'])
--
-- If the test cases page doesn't exist, it is in the format:
Line 244 ⟶ 232:
-- The text to display for "mirror" links.
cfg['mirror-link-display'] = 'mirror'
-- cfg['mirror-link-preload']
-- The page to preload when a user clicks the "mirror" link.
cfg['mirror-link-preload'] = 'Template:Documentation/mirror'
----------------------------------------------------------------------------------------------------
Line 268 ⟶ 260:
-- The text to display for test cases "edit" links.
cfg['testcases-edit-link-display'] = 'edit'
-- cfg['testcases-run-link-display']
-- The text to display for test cases "run" links.
cfg['testcases-run-link-display'] = 'run'
-- cfg['testcases-create-link-display']
|