Module:Protection banner/config: Difference between revisions
(rm stuff that would only be useful for pp-create and other things unused in favor of salting) |
(add a description field to each of the banners for auto-generating some of the documentation) |
||
| Line 118: | Line 118: | ||
edit = { | edit = { | ||
blp = { | blp = { | ||
description = 'For pages protected to promote compliance with the' | |||
.. ' [[Wikipedia:Biographies of living persons' | |||
.. '|biographies of living persons]] policy.', | |||
text = '${INTROBLURB} to promote compliance with' | text = '${INTROBLURB} to promote compliance with' | ||
.. ' [[Wikipedia:Biographies of living persons' | .. ' [[Wikipedia:Biographies of living persons' | ||
| Line 126: | Line 129: | ||
}, | }, | ||
dispute = { | dispute = { | ||
description = 'For pages protected due to editing disputes.', | |||
text = '${DISPUTEBLURB}', | text = '${DISPUTEBLURB}', | ||
explanation = "This protection is '''not''' an endorsement of the" | explanation = "This protection is '''not''' an endorsement of the" | ||
| Line 132: | Line 136: | ||
}, | }, | ||
template = { | template = { | ||
description = 'For [[Wikipedia:High-risk templates|high-risk]]' | |||
.. ' templates and Lua modules.', | |||
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' | text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' | ||
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].', | .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', | ||
| Line 148: | Line 154: | ||
}, | }, | ||
office = { | office = { | ||
description = 'For pages protected by the Wikimedia Foundation.', | |||
text = '${OFFICEBLURB}', | text = '${OFFICEBLURB}', | ||
explanation = "If you can edit this page, please discuss all changes and" | explanation = "If you can edit this page, please discuss all changes and" | ||
| Line 156: | Line 163: | ||
}, | }, | ||
reset = { | reset = { | ||
description = 'For pages protected by the Wikimedia Foundation and' | |||
.. ' "reset" to a bare-bones version.', | |||
text = '${RESETBLURB}' | text = '${RESETBLURB}' | ||
.. ' Standard Wikipedia policies will apply to its rewriting—which' | .. ' Standard Wikipedia policies will apply to its rewriting—which' | ||
| Line 175: | Line 184: | ||
}, | }, | ||
sock = { | sock = { | ||
description = 'For pages protected due to' | |||
.. ' [[Wikipedia:Sock puppetry|sock puppetry]].', | |||
text = '${INTROBLURB} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' | text = '${INTROBLURB} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' | ||
.. ' [[Wikipedia:Blocking policy|blocked]] or' | .. ' [[Wikipedia:Blocking policy|blocked]] or' | ||
| Line 183: | Line 194: | ||
}, | }, | ||
usertalk = { | usertalk = { | ||
description = 'For pages protected against disruptive edits by a' | |||
.. ' particular user.', | |||
text = '${INTROBLURB} to prevent ${VANDAL} from using it to make disruptive edits,' | text = '${INTROBLURB} to prevent ${VANDAL} from using it to make disruptive edits,' | ||
.. ' such as abusing the' | .. ' such as abusing the' | ||
| Line 198: | Line 211: | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
description = 'For pages protected against' | |||
.. ' [[Wikipedia:Vandalism|vandalism]].', | |||
text = '${INTROBLURB} due to [[Wikipedia:Vandalism|vandalism]].', | text = '${INTROBLURB} due to [[Wikipedia:Vandalism|vandalism]].', | ||
tooltip = '${TOOLTIPBLURB} due to vandalism', | tooltip = '${TOOLTIPBLURB} due to vandalism', | ||
| Line 204: | Line 219: | ||
move = { | move = { | ||
dispute = { | dispute = { | ||
description = 'For pages protected against page moves due to' | |||
.. ' disputes over the page title.', | |||
explanation = "This protection is '''not''' an endorsement of the" | explanation = "This protection is '''not''' an endorsement of the" | ||
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', | ||
| Line 209: | Line 226: | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
description = 'For pages protected against' | |||
.. '[[Wikipedia:Vandalism#Page-move vandalism' | |||
.. ' |page-move vandalism]].' | |||
} | } | ||
}, | }, | ||
Revision as of 02:24, 1 July 2014
Documentation for this module may be created at Module:Protection banner/config/doc
-- This module provides configuration data for [[Module:Protection banner]].
return {
--------------------------------------------------------------------------------
-- BANNER DATA
--------------------------------------------------------------------------------
-- PARAMETERS
--
-- The values in the banner data can take parameters. These are specified
-- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name
-- enclosed in curly braces). Available parameters:
--
-- ${CURRENTVERSION} - a link to the page history or the move log, with the
-- display message "current-version-edit-display" or
-- "current-version-move-display".
--
-- ${DISPUTEBLURB} - a blurb about editing disputes, using the INTROBLURB
-- parameter and the DISPUTESECTION parameter. E.g. "This page is protected
-- from editing until disputes have been resolved."
--
-- ${DISPUTESECTION} - if a section link is passed to the module, this is
-- a link to that section with the display message
-- "dispute-section-link-display". Otherwise it is just the display
-- message with no link.
--
-- ${EDITREQUEST} - a link to create an edit request for the current page.
--
-- ${EXPIRY} - the protection expiry date in the format DD Month YYYY. If
-- protection is indefinite or is not set, this is the blank string.
--
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes
-- on the talk page; you may submit a request to ask an administrator to make
-- an edit if it is minor or supported by consensus."
--
-- ${IMAGELINK} - a link to set the image to, depending on the protection
-- action and protection level.
--
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry
-- is set. E.g. "Editing of this page by new or unregistered users is currently
-- disabled until dd Month YYYY"
--
-- ${OFFICEBLURB} - a blurb about pages protected by the WMF office. If the
-- protection date has been specified, includes a sentence saying when the page
-- was protected.
--
-- ${PAGETYPE} - the type of the page, e.g. "article" or "template".
-- Defined in the cfg.pagetypes table.
--
-- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g.
-- "Editing of this page by new or unregistered users is currently disabled"
--
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the
-- template.
--
-- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or
-- "semi-protected".
--
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
-- depending on the protection action.
--
-- ${RESETBLURB} - a blurb for pages using {{pp-reset}}. If the protection
-- date is specified, this includes information about when the page was
-- protected.
--
-- ${TALKPAGE} - a link to the talk page. If a section is specified, links
-- straight to that ta