Module:Protection banner/config and Module:Protection banner/config/sandbox: Difference between pages
(Difference between pages)
imported>Jonesey95 fix alt text to match name of protection level |
imported>Aidan9382 Port changes to sandbox (we don't technically need the wrapper for Pp anymore, but in the event anything gets reverted back, leaving it in saves a minor headache, so it's whatever) |
||
| Line 223: | Line 223: | ||
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' | .. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' | ||
.. ' meets the criteria for community use', | .. ' meets the criteria for community use', | ||
alt = 'Extended-protected ${PAGETYPE}', | alt = 'Extended-protected ${PAGETYPE}', | ||
}, | }, | ||
| Line 320: | Line 319: | ||
.. ' [[Wikipedia:Requests for page protection|request]] that the page be' | .. ' [[Wikipedia:Requests for page protection|request]] that the page be' | ||
.. ' unprotected.', | .. ' unprotected.', | ||
alt = 'Permanently protected ${PAGETYPE}', | alt = 'Permanently protected ${PAGETYPE}', | ||
}, | }, | ||
| Line 550: | Line 547: | ||
default = 'protected', | default = 'protected', | ||
templateeditor = 'template-protected', | templateeditor = 'template-protected', | ||
extendedconfirmed = 'extended | extendedconfirmed = 'extended-protected', | ||
autoconfirmed = 'semi-protected', | autoconfirmed = 'semi-protected', | ||
}, | }, | ||
| Line 560: | Line 557: | ||
upload = { | upload = { | ||
default = 'upload-protected' | default = 'upload-protected' | ||
} | |||
}, | |||
-------------------------------------------------------------------------------- | |||
-- Protection messages | |||
-------------------------------------------------------------------------------- | |||
-- This table provides the data for the ${PROTECTIONMESSAGE} parameter, which | |||
-- provides a plain english explanation for different protection levels. It is | |||
-- sorted by protection action and protection level, and is checked in the | |||
-- following order: | |||
-- 1. page's protection action, page's protection level | |||
-- 2. page's protection action, default protection level | |||
-- 3. "edit" protection action, default protection level | |||
-- | |||
-- It is possible to use banner parameters inside this table. | |||
-- *required* - this table needs edit, move, autoreview and upload subtables. | |||
protectionMessages = { | |||
edit = { | |||
default = 'This ${PAGETYPE} is protected', | |||
sysop = 'Only admins can edit this ${PAGETYPE}', | |||
templateeditor = 'Only experienced template editors and admins can edit' | |||
.. ' this ${PAGETYPE}', | |||
extendedconfirmed = 'Only experienced users can edit this ${PAGETYPE}', | |||
autoconfirmed = 'New users cannot edit this ${PAGETYPE}', | |||
}, | |||
move = { | |||
default = 'This ${PAGETYPE} is move-protected', | |||
sysop = 'Only admins can move this ${PAGETYPE}', | |||
extendedconfirmed = 'Only experienced users can move this ${PAGETYPE}', | |||
autoconfirmed = 'New users cannot move this ${PAGETYPE}', | |||
}, | |||
autoreview = { | |||
}, | |||
upload = { | |||
default = 'Uploading to this file is protected', | |||
sysop = 'Only admins can upload to this file', | |||
extendedconfirmed = 'Only experienced users can upload to this file', | |||
autoconfirmed = 'New users cannot upload to this file', | |||
} | } | ||
}, | }, | ||
| Line 742: | Line 778: | ||
['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', | ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', | ||
['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', | ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', | ||
['all|all|all|templateeditor|move'] = 'Wikipedia template-protected pages other than templates and modules', | |||
['all|template|all|extendedconfirmed|move'] = 'Wikipedia extended-confirmed-protected templates', | |||
['all|template|all|all|edit'] = 'Wikipedia fully protected templates', | ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', | ||
['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', | ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', | ||
| Line 757: | Line 795: | ||
['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', | ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', | ||
['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', | ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', | ||
['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', | ['all|all|all|templateeditor|edit'] = 'Wikipedia template-protected pages other than templates and modules', | ||
['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', | ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', | ||
| Line 933: | Line 970: | ||
-- if not the tooltip-blurb-noexpiry message is used. | -- if not the tooltip-blurb-noexpiry message is used. | ||
-- It is possible to use banner parameters in these messages. | -- It is possible to use banner parameters in these messages. | ||
['tooltip-blurb-expiry'] = ' | ['tooltip-blurb-expiry'] = '${PROTECTIONMESSAGE} until ${EXPIRY}.', | ||
['tooltip-blurb-noexpiry'] = ' | ['tooltip-blurb-noexpiry'] = '${PROTECTIONMESSAGE}.', | ||
['tooltip-fragment-expiry'] = ' | ['tooltip-fragment-expiry'] = '${PROTECTIONMESSAGE} until ${EXPIRY},', | ||
['tooltip-fragment-noexpiry'] = ' | ['tooltip-fragment-noexpiry'] = '${PROTECTIONMESSAGE}', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 998: | Line 1,035: | ||
-- This is the format for the blurb expiry date. It should be valid input for | -- This is the format for the blurb expiry date. It should be valid input for | ||
-- the first parameter of the #time parser function. | -- the first parameter of the #time parser function. | ||
['expiry-date-format'] = 'F j, Y "at" H:i e', | ['expiry-date-format'] = 'F j, Y, "at" H:i e', | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||