Module:Documentation/config: Difference between revisions

    From Nonbinary Wiki
    (Created page with "---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation...")
     
    (36 intermediate revisions by 24 users not shown)
    Line 7: Line 7:
    -- should be string values.
    -- should be string values.
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
     
    local cfg = {} -- Do not edit this line.
    local cfg = {} -- Do not edit this line.
     
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
    -- Protection template configuration
    -- Protection template configuration
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
     
    -- cfg['protection-template']
    -- cfg['protection-reason-edit']
    -- The name of the template that displays the protection icon (a padlock on enwiki).
    -- The protection reason for edit-protected templates to pass to
    cfg['protection-template'] = 'pp-template'
    -- [[Module:Protection banner]].
    cfg['protection-reason-edit'] = 'template'
    --[[
     
    -- cfg['protection-template-args']
    -- Any arguments to send to the protection template. This should be a Lua table.
    -- For example, if the protection template is "pp-template", and the wikitext template invocation
    -- looks like "{{pp-template|docusage=yes}}", then this table should look like "{docusage = 'yes'}".
    --]]
    cfg['protection-template-args'] = {docusage = 'yes'}
    --[[
    --[[
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
    Line 36: Line 29:
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
    --]]
    --]]
     
    -- 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'] = '[[Image:Sandbox.png|50px|alt=|link=]]'
    cfg['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]'
     
    --[[
    --[[
    -- cfg['sandbox-notice-pagetype-template']
    -- cfg['sandbox-notice-pagetype-template']
    Line 52: Line 45:
    cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page'
    cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page'
    cfg['sandbox-notice-pagetype-other'] = 'sandbox page'
    cfg['sandbox-notice-pagetype-other'] = 'sandbox page'
     
    --[[
    --[[
    -- cfg['sandbox-notice-blurb']
    -- cfg['sandbox-notice-blurb']
    Line 68: Line 61:
    cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).'
    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.
    -- 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-blurb'] = 'See also the companion subpage for $1.'
    cfg['sandbox-notice-testcases-link-display'] = 'test cases'
    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['sandbox-category']
    -- cfg['sandbox-category']
    -- A category to add to all template sandboxes.
    -- A category to add to all template sandboxes.
    cfg['sandbox-category'] = 'Template sandboxes'<