Difference between revisions of "Module:Submit an edit request/config"
Jump to navigation
Jump to search
blackwiki>Mr. Stradivarius m (Protected Module:Submit an edit request/config: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
blackwiki>Mr. Stradivarius (add comments) |
||
| Line 3: | Line 3: | ||
local cfg = {} | local cfg = {} | ||
| + | -------------------------------------------------------------------------------- | ||
| + | -- General config | ||
| + | -------------------------------------------------------------------------------- | ||
| + | |||
| + | -- The default display value for edit requests. | ||
cfg['default-display-value'] = 'Submit an edit request' | cfg['default-display-value'] = 'Submit an edit request' | ||
| + | -- The template that stores the edit request preload text | ||
cfg['preload-template'] = 'Template:Submit an edit request/preload' | cfg['preload-template'] = 'Template:Submit an edit request/preload' | ||
| + | |||
| + | -- The section heading that is generated when a user clicks on an edit request | ||
| + | -- link. $1 is the protection level text, e.g. "Semi-protected" or | ||
| + | -- "Template-protected". $2 is the current date, in the format specified by the | ||
| + | -- "preload-title-date-format" message. | ||
cfg['preload-title-text'] = '$1 edit request on $2' | cfg['preload-title-text'] = '$1 edit request on $2' | ||
| + | |||
| + | -- The date format for the automatically-generated section heading. The format | ||
| + | -- must be valid input for the #time parser function. | ||
cfg['preload-title-date-format'] = 'j F Y' | cfg['preload-title-date-format'] = 'j F Y' | ||
| + | -- The names of the templates to be used as wrappers for the "link" and "button" | ||
| + | -- functions. These are passed as arguments to the "wrappers" option of | ||
| + | -- [[Module:Arguments]]. | ||
| + | cfg['link-wrapper-template'] = 'Template:Submit an edit request/link' | ||
| + | cfg['button-wrapper-template'] = 'Template:Submit an edit request' | ||
| + | |||
| + | -------------------------------------------------------------------------------- | ||
| + | -- Protection level config | ||
| + | -------------------------------------------------------------------------------- | ||
| + | |||
| + | --[[ | ||
| + | -- These settings are for the different protection levels which the module can | ||
| + | -- output edit request links for. | ||
| + | -- | ||
| + | -- editintro: | ||
| + | -- The template to use as the edit intro users see when they click on an edit | ||
| + | -- request link. | ||
| + | -- | ||
| + | -- request-template: | ||
| + | -- The name of the edit request template for that protection level. Do not | ||
| + | -- include the "Template:" text. | ||
| + | -- | ||
| + | -- protectionlevel: | ||
| + | -- The name of the protection level, used for formatting the automatically- | ||
| + | -- generated section headings. | ||
| + | --]] | ||
| + | |||
| + | -- Semi-protection | ||
cfg['semi-editintro'] = 'Template:Edit semi-protected/editintro' | cfg['semi-editintro'] = 'Template:Edit semi-protected/editintro' | ||
cfg['semi-request-template'] = 'edit semi-protected' | cfg['semi-request-template'] = 'edit semi-protected' | ||
cfg['semi-protectionlevel'] = 'Semi-protected' | cfg['semi-protectionlevel'] = 'Semi-protected' | ||
| + | -- Template-protection | ||
cfg['template-editintro'] = 'Template:Edit template-protected/editintro' | cfg['template-editintro'] = 'Template:Edit template-protected/editintro' | ||
cfg['template-request-template'] = 'edit template-protected' | cfg['template-request-template'] = 'edit template-protected' | ||
cfg['template-protectionlevel'] = 'Template-protected' | cfg['template-protectionlevel'] = 'Template-protected' | ||
| + | -- Full protection | ||
cfg['full-editintro'] = 'Template:Edit protected/editintro' | cfg['full-editintro'] = 'Template:Edit protected/editintro' | ||
cfg['full-request-template'] = 'edit protected' | cfg['full-request-template'] = 'edit protected' | ||
cfg['full-protectionlevel'] = 'Protected' | cfg['full-protectionlevel'] = 'Protected' | ||
| − | |||
| − | |||
| − | |||
return cfg | return cfg | ||
Revision as of 06:26, 11 June 2014
| 40x40px | This module is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this module's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this module. Please discuss any changes on the talk page before implementing them. |
This module provides configuration data for Module:Submit an edit request. Please see the module comments for a description of what each message does.
-- This module contains configuration data for [[Module:Submit an edit request]].
local cfg = {}
--------------------------------------------------------------------------------
-- General config
--------------------------------------------------------------------------------
-- The default display value for edit requests.
cfg['default-display-value'] = 'Submit an edit request'
-- The template that stores the edit request preload text
cfg['preload-template'] = 'Template:Submit an edit request/preload'
-- The section heading that is generated when a user clicks on an edit request
-- link. $1 is the protection level text, e.g. "Semi-protected" or
-- "Template-protected". $2 is the current date, in the format specified by the
-- "preload-title-date-format" message.
cfg['preload-title-text'] = '$1 edit request on $2'
-- The date format for the automatically-generated section heading. The format
-- must be valid input for the #time parser function.
cfg['preload-title-date-format'] = 'j F Y'
-- The names of the templates to be used as wrappers for the "link" and "button"
-- functions. These are passed as arguments to the "wrappers" option of
-- [[Module:Arguments]].
cfg['link-wrapper-template'] = 'Template:Submit an edit request/link'
cfg['button-wrapper-template'] = 'Template:Submit an edit request'
--------------------------------------------------------------------------------
-- Protection level config
--------------------------------------------------------------------------------
--[[
-- These settings are for the different protection levels which the module can
-- output edit request links for.
--
-- editintro:
-- The template to use as the edit intro users see when they click on an edit
-- request link.
--
-- request-template:
-- The name of the edit request template for that protection level. Do not
-- include the "Template:" text.
--
-- protectionlevel:
-- The name of the protection level, used for formatting the automatically-
-- generated section headings.
--]]
-- Semi-protection
cfg['semi-editintro'] = 'Template:Edit semi-protected/editintro'
cfg['semi-request-template'] = 'edit semi-protected'
cfg['semi-protectionlevel'] = 'Semi-protected'
-- Template-protection
cfg['template-editintro'] = 'Template:Edit template-protected/editintro'
cfg['template-request-template'] = 'edit template-protected'
cfg['template-protectionlevel'] = 'Template-protected'
-- Full protection
cfg['full-editintro'] = 'Template:Edit protected/editintro'
cfg['full-request-template'] = 'edit protected'
cfg['full-protectionlevel'] = 'Protected'
return cfg