imported>Oetterer |
|||
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
-- This module contains configuration data for [[Module:Submit an edit request]]. | -- This module contains configuration data for [[Module:Submit an edit request]]. | ||
− | + | return { | |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
− | -- | + | -- Messages |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- The default display value for edit requests. | -- The default display value for edit requests. | ||
− | + | ['default-display-value'] = 'Submit an edit request', | |
− | |||
− | |||
-- The template that stores the edit request preload text | -- The template that stores the edit request preload text | ||
− | + | ['preload-template'] = 'Template:Submit an edit request/preload', | |
-- The section heading that is generated when a user clicks on an edit request | -- The section heading that is generated when a user clicks on an edit request | ||
Zeile 19: | Zeile 17: | ||
-- "Template-protected". $2 is the current date, in the format specified by the | -- "Template-protected". $2 is the current date, in the format specified by the | ||
-- "preload-title-date-format" message. | -- "preload-title-date-format" message. | ||
− | + | ['preload-title-text'] = '$1 edit request on $2', | |
-- The date format for the automatically-generated section heading. The format | -- The date format for the automatically-generated section heading. The format | ||
-- must be valid input for the #time parser function. | -- must be valid input for the #time parser function. | ||
− | + | ['preload-title-date-format'] = 'j F Y', | |
+ | |||
+ | -- What do do with the generated section header if another header with the same section already exists | ||
+ | -- $1 is the original section header. $2 is an automatically generated number, starting at 2 and increasing | ||
+ | -- by one until a unique header is found. | ||
+ | ['preload-title-dedup-suffix'] = '$1 ($2)', | ||
+ | |||
+ | -- The names of pages (and their subpages) that make up the content of the main page for this wiki | ||
+ | ['main-page-content'] = { | ||
+ | ['Main Page'] = true, | ||
+ | ['Hauptseite'] = true, | ||
+ | }, | ||
+ | |||
+ | -- The page used to request changes to things on the Main Page. | ||
+ | ['main-page-request-page'] = 'Wikipedia:Main Page/Errors', | ||
+ | |||
+ | -- The page used to request edits to protected talk pages. | ||
+ | ['protected-talk-page-request-page'] = 'Wikipedia:Requests for page protection/Edit', | ||
-- The names of the templates to be used as wrappers for the "link" and "button" | -- 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 | -- functions. These are passed as arguments to the "wrappers" option of | ||
-- [[Module:Arguments]]. | -- [[Module:Arguments]]. | ||
− | + | ['link-wrapper-template'] = 'Template:Submit an edit request/link', | |
− | + | ['button-wrapper-template'] = 'Template:Submit an edit request', | |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- Protection level config | -- Protection level config | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
+ | |||
+ | protectionLevels = { | ||
--[[ | --[[ | ||
Zeile 53: | Zeile 70: | ||
-- Semi-protection | -- Semi-protection | ||
− | + | semi = { | |
− | + | editintro = 'Template:Edit semi-protected/editintro', | |
− | + | requestTemplate = 'edit semi-protected', | |
+ | levelText = 'Semi-protected', | ||
+ | }, | ||
+ | |||
+ | -- Extended-confirmed-protection | ||
+ | extended = { | ||
+ | editintro = 'Template:Edit extended-protected/editintro', | ||
+ | requestTemplate = 'edit extended-protected', | ||
+ | levelText = 'Extended-confirmed-protected', | ||
+ | }, | ||
-- Template-protection | -- Template-protection | ||
− | + | template = { | |
− | + | editintro = 'Template:Edit template-protected/editintro', | |
− | + | requestTemplate = 'edit template-protected', | |
+ | levelText = 'Template-protected', | ||
+ | }, | ||
-- Full protection | -- Full protection | ||
− | + | full = { | |
− | + | editintro = 'Template:Edit protected/editintro', | |
− | + | requestTemplate = 'edit fully-protected', | |
+ | levelText = 'Protected', | ||
+ | }, | ||
+ | |||
+ | -- Interface-protection | ||
+ | interface = { | ||
+ | editintro = 'Template:Edit interface-protected/editintro', | ||
+ | requestTemplate = 'edit interface-protected', | ||
+ | levelText = 'Interface-protected', | ||
+ | }, | ||
+ | |||
+ | } | ||
− | + | } |
Aktuelle Version vom 8. Oktober 2022, 08:44 Uhr
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
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]].
return {
--------------------------------------------------------------------------------
-- Messages
--------------------------------------------------------------------------------
-- The default display value for edit requests.
['default-display-value'] = 'Submit an edit request',
-- The template that stores the edit request preload text
['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.
['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.
['preload-title-date-format'] = 'j F Y',
-- What do do with the generated section header if another header with the same section already exists
-- $1 is the original section header. $2 is an automatically generated number, starting at 2 and increasing
-- by one until a unique header is found.
['preload-title-dedup-suffix'] = '$1 ($2)',
-- The names of pages (and their subpages) that make up the content of the main page for this wiki
['main-page-content'] = {
['Main Page'] = true,
['Hauptseite'] = true,
},
-- The page used to request changes to things on the Main Page.
['main-page-request-page'] = 'Wikipedia:Main Page/Errors',
-- The page used to request edits to protected talk pages.
['protected-talk-page-request-page'] = 'Wikipedia:Requests for page protection/Edit',
-- 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]].
['link-wrapper-template'] = 'Template:Submit an edit request/link',
['button-wrapper-template'] = 'Template:Submit an edit request',
--------------------------------------------------------------------------------
-- Protection level config
--------------------------------------------------------------------------------
protectionLevels = {
--[[
-- 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
semi = {
editintro = 'Template:Edit semi-protected/editintro',
requestTemplate = 'edit semi-protected',
levelText = 'Semi-protected',
},
-- Extended-confirmed-protection
extended = {
editintro = 'Template:Edit extended-protected/editintro',
requestTemplate = 'edit extended-protected',
levelText = 'Extended-confirmed-protected',
},
-- Template-protection
template = {
editintro = 'Template:Edit template-protected/editintro',
requestTemplate = 'edit template-protected',
levelText = 'Template-protected',
},
-- Full protection
full = {
editintro = 'Template:Edit protected/editintro',
requestTemplate = 'edit fully-protected',
levelText = 'Protected',
},
-- Interface-protection
interface = {
editintro = 'Template:Edit interface-protected/editintro',
requestTemplate = 'edit interface-protected',
levelText = 'Interface-protected',
},
}
}