Module:Protection banner/config: Difference between revisions
further conversion to new bannerData scheme
(more conversion of the data to the bannerConfig table) |
(further conversion to new bannerData scheme) |
||
| Line 109: | Line 109: | ||
-- "deletion-discussion-blurb-xfd" if a link to a deletion discussion is | -- "deletion-discussion-blurb-xfd" if a link to a deletion discussion is | ||
-- present, or "deletion-discussion-blurb-noxfd" if not. | -- present, or "deletion-discussion-blurb-noxfd" if not. | ||
-- | |||
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log, | |||
-- depending on the protection action. | |||
--]] | --]] | ||
| Line 139: | Line 142: | ||
local introText = {} | local introText = {} | ||
introText.move = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | introText.move = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | ||
.. ' from [[Help:Moving a page|page moves]]' | .. ' from [[Help:Moving a page|page moves]]' | ||
introText.create = '[[Help:Starting a new page|Recreation]] of this ${PAGETYPE}' | introText.create = '[[Help:Starting a new page|Recreation]] of this ${PAGETYPE}' | ||
.. ' [[Help:Protection|has been disabled]]' | .. ' [[Help:Protection|has been disabled]]' | ||
-------------------------------------------------------------------------------- | |||
-- Banner data table | |||
-------------------------------------------------------------------------------- | |||
-- Shared explanation text for the bannerData table. | |||
local explanationText = {} | |||
explanationText.moreDetails = 'See the [[Wikipedia:Protection policy|' | |||
.. 'protection policy]] and ${PROTECTIONLOG} for more details.' | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- Banner data table | -- Banner data table | ||
| Line 157: | Line 165: | ||
-- Set the defaults for all protection types. | -- Set the defaults for all protection types. | ||
cfg.bannerData['all-all-all-all-all'] = { | cfg.bannerData['all-all-all-all-all'] = { | ||
text = | text = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | ||
.. ' from editing.', | |||
explanation = 'Please discuss any changes on the ${TALKPAGELINK}; you' | explanation = 'Please discuss any changes on the ${TALKPAGELINK}; you' | ||
.. ' may ${EDITREQUEST} to ask an' | .. ' may ${EDITREQUEST} to ask an' | ||
| Line 175: | Line 184: | ||
cfg.bannerData['all-all-all-all-move'] = { | cfg.bannerData['all-all-all-all-move'] = { | ||
explanation = 'The page may still be edited but cannot be moved' | explanation = 'The page may still be edited but cannot be moved' | ||
.. ' until unprotected. Please discuss any suggested moves on the' | |||
.. ' ${TALKPAGELINK} or at [[Wikipedia:Requested moves]]. You can also' | |||
.. ' [[Wikipedia:Requests for page protection|request]] that the page be' | |||
.. ' unprotected.', | |||
} | } | ||
| Line 184: | Line 193: | ||
cfg.bannerData['all-all-all-all-create'] = { | cfg.bannerData['all-all-all-all-create'] = { | ||
explanation = '${DELETIONBLURB} If you would like to create a page' | explanation = '${DELETIONBLURB} If you would like to create a page' | ||
.. ' at this title, you must first' | |||
.. ' [[Wikipedia:Requests for page protection|request]] for it to be' | |||
.. ' unprotected, or contact the administrator who deleted the page for the' | |||
.. ' deleted material to be restored. If unsuccessful, you can use' | |||
.. ' [[Wikipedia:Deletion review|deletion review]].', | |||
} | } | ||
-- Don't make an unprotection request link for pages in the MediaWiki namespace. | -- Don't make an unprotection request link for pages in the MediaWiki namespace. | ||
cfg.bannerData['all-mediawiki-all-all-all'] = { | cfg.bannerData['all-mediawiki-all-all-all'] = { | ||
explanation = 'Please discuss any changes on the ${TALKPAGELINK}; you' | explanation = 'Please discuss any changes on the ${TALKPAGELINK}; you' | ||
.. ' may ${EDITREQUEST} to ask an' | .. ' may ${EDITREQUEST} to ask an' | ||
| Line 204: | Line 212: | ||
-- Set defaults for temporarily-protected pages. | -- Set defaults for temporarily-protected pages. | ||
cfg.bannerData['temp-all-all-all-all'] = { | cfg.bannerData['temp-all-all-all-all'] = { | ||
text = | text = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' | ||
tooltip = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.' | .. ' from editing until ${EXPIRY}.', | ||
tooltip = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', | |||
} | } | ||
-- Semi-protected pages. | |||
cfg.bannerData['all-all-all-autoconfirmed-edit'] = { | |||