Jump to content

Module:Protection banner/config: Difference between revisions

various simplifications and formatting
(move template explanation text to a new banner config table)
(various simplifications and formatting)
Line 21: Line 21:
-- $11 = A link to the page history, with display msg['dispute-edit-link-display']
-- $11 = A link to the page history, with display msg['dispute-edit-link-display']
-- $12 = A link to the move log, with display msg['dispute-move-link-display']
-- $12 = A link to the move log, with display msg['dispute-move-link-display']
-- $13 = A link to the protection log or the pending changes log, with display msg['more-details-protection-log-display'] or msg['more-details-pc-log-display']
-- $13 = A link to the protection log or the pending changes log, with display
--      msg['more-details-protection-log-display'] or msg['more-details-pc-log-display']
-- $14 = Talk page link
-- $14 = Talk page link
-- $15 = Edit request link
-- $15 = Edit request link
Line 30: Line 31:
-- $20 = {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk {{pp-meta/pagetype}} }}
-- $20 = {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk {{pp-meta/pagetype}} }}
-- $21 = "semi-protected from editing", "protected from editing" or "move-protected"
-- $21 = "semi-protected from editing", "protected from editing" or "move-protected"
-- $22 = "This protection is '''not''' an endorsement of the current version"


cfg.banners = {
cfg.banners = {
Line 50: Line 52:
cfg.banners.edit.dispute = {
cfg.banners.edit.dispute = {
text = '$1 $2 editing $3 have been resolved',
text = '$1 $2 editing $3 have been resolved',
explanation = "This protection is '''not''' an endorsement of the $11",
explanation = '$22',
tooltip = 'due to editing disputes',
tooltip = 'due to editing disputes',
dispute = true,
dispute = true,
Line 57: Line 59:


cfg.banners.edit.template = {
cfg.banners.edit.template = {
text = 'This $20 is permanently $21 to prevent vandalism',
text = 'This is a permanently [[Help:Protection|protected]] $4, as it is [[Wikipedia:High-risk templates|high-risk]]$9',
explanation = 'Please discuss any changes on the $14; you may $15 to ask an'
explanation = 'Please discuss any changes on the $14; you may $15 to ask an'
.. ' [[Wikipedia:Administrators|administrator]] or'
.. ' [[Wikipedia:Administrators|administrator]] or'
Line 63: Line 65:
.. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
.. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by'
.. '|uncontroversial]] or supported by'
.. ' [[Wikipedia:Consensus|consensus]].$16'
.. ' [[Wikipedia:Consensus|consensus]].$16',
tooltip = 'This high-risk $4 is permanently $21 to prevent vandalism',
alt = 'Permanently protected $4',
}
}


Line 70: Line 74:
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected. $5',
.. ' and is protected. $5',
explanation = "If you can edit this page, please discuss all changes and"
.. " additions on the $14 first. '''Do not remove protection from this"
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
categoryOrder = 'reason',
categoryOrder = 'reason',
}
}
Line 89: Line 97:
.. ' without approval from someone from the [[WP:OFFICE|Office]].'
.. ' without approval from someone from the [[WP:OFFICE|Office]].'
.. " No editor may remove this notice.'''",
.. " No editor may remove this notice.'''",
explanation = "If you can edit this page, please discuss all changes and"
.. " additions on the $14 first. '''Do not remove protection from this"
.. " page unless you are authorized by the Wikimedia Foundation to do"
.. " so.'''",
categoryOrder = 'reason',
categoryOrder = 'reason',
categoryReason = 'office',
categoryReason = 'office',
Line 137: Line 149:


cfg.banners.autoreview.pc1 = {
cfg.banners.autoreview.pc1 = {
text = 'All edits made to this $4 by'
.. ' [[Wikipedia:User access levels#New users|new]] or'
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
.. ' users are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]$9',
alt = 'Page protected with pending changes level 1',
tooltip = 'All edits by unregistered and new users are subject to review'
}
}


cfg.banners.autoreview.pc2 = {
cfg.banners.autoreview.pc2 = {
text = 'All edits made to this $4 by users who are not'
.. ' [[Wikipedia:Reviewing|reviewers]] or'
.. ' [[Wikipedia:Administrators|administrators]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]$9',
alt = 'Page protected with pending changes level 2',
tooltip = 'All edits by users who are not reviewers or administrators are'
.. ' subject to review'
}
}


Line 257: Line 283:
-- Parameters are the same as for the banner table.
-- Parameters are the same as for the banner table.


msg['icon-text-pc1'] = 'All edits by unregistered and new users are subject to review'
msg['icon-text-pc2'] = 'All edits by users who are not reviewers or administrators are subject to review'
msg['icon-text-template'] = 'This is a permanently protected $4'
msg['icon-text-default'] = 'This $4 is $8$9$10'
msg['icon-text-default'] = 'This $4 is $8$9$10'


Line 266: Line 289:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


msg['alt-text-template'] = 'Permanently protected $4'
msg['alt-text-pc1'] = 'Page protected with pending changes level 1'
msg['alt-text-pc2'] = 'Page protected with pending changes level 2'
msg['alt-text-semi'] = 'Page semi-protected'
msg['alt-text-semi'] = 'Page semi-protected'
msg['alt-text-move'] = 'Page move-protected'
msg['alt-text-move'] = 'Page move-protected'
msg['alt-text-indef'] = 'Page permanently protected'
msg['alt-text-create'] = 'Page creation-protected'
msg['alt-text-create'] = 'Page creation-protected'
msg['alt-text-office'] = ''
msg['alt-text-default'] = 'Page protected'
msg['alt-text-default'] = 'Page protected'


Line 280: Line 298:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


msg['reason-text-full'] = 'This $4 is currently [[Help:Protection|protected]] from editing'
msg['reason-text-semi'] = 'Editing of this $4 by [[Wikipedia:User access'
msg['reason-text-semi'] = 'Editing of this $4 by [[Wikipedia:User access levels#New users|new]] or [[Wikipedia:User access levels#Unregistered users|unregistered]] users is currently [[Help:Protection|disabled]]$9'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
msg['reason-text-pc1'] = 'All edits made to this $4 by [[Wikipedia:User access levels#New users|new]] or [[Wikipedia:User access levels#Unregistered users|unregistered]] users are currently [[Wikipedia:Pending changes|subject to review]]$9'
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]$9'
msg['reason-text-pc2'] = 'All edits made to this $4 by users who are not [[Wikipedia:Reviewing|reviewers]] or [[Wikipedia:Administrators|administrators]] are currently [[Wikipedia:Pending changes|subject to review]]$9'
msg['reason-text-move'] = 'This $4 is currently [[Help:Protection|protected]]'
msg['reason-text-move'] = 'This $4 is currently [[Help:Protection|protected]] from [[Help:Moving a page|page moves]]$9'
.. ' from [[Help:Moving a page|page moves]]$9'
msg['reason-text-template'] = 'This is a permanently [[Help:Protection|protected]] $4, as it is [[Wikipedia:High-risk templates|high-risk]]$9'
msg['reason-text-create'] = '[[Help:Starting a new page|Recreation]] of this $4'
msg['reason-text-indef'] = "This page is [[Help:Protection|protected]] from editing ''indefinitely''$9"
.. ' [[Help:Protection|has been disabled]]$9'
msg['reason-text-office'] = 'This $4 is currently [[Help:Protection|protected]] from editing$9'
msg['reason-text-default'] = 'This $4 is currently [[Help:Protection|'
msg['reason-text-create'] = '[[Help:Starting a new page|Recreation]] of this $4 [[Help:Protection|has been disabled]]$9'
.. 'protected]] from editing'


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Line 297: Line 315:
msg['dispute-edit-link-display'] = 'current version'
msg['dispute-edit-link-display'] = 'current version'


msg['more-details'] = 'See the [[Wikipedia:Protection policy|protection policy]] and $13 for more details.'
msg['more-details'] = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and $13 for more details.'
msg['more-details-pc-log-display'] = 'pending changes log'
msg['more-details-pc-log-display'] = 'pending changes log'
msg['more-details-protection-log-display'] = 'protection log'
msg['more-details-protection-log-display'] = 'protection log'
Line 305: Line 324:
msg['edit-request-semi-display'] = 'request an edit'
msg['edit-request-semi-display'] = 'request an edit'


msg['request-unprotection-blurb'] = ' You may also [[Wikipedia:Requests for page protection#Current requests for reduction in protection level|request]] that this page be unprotected.'
msg['request-unprotection-blurb'] = ' You may also [[Wikipedia:Requests for'
.. ' page protection#Current requests for reduction in protection level'
.. '|request]] that this page be unprotected.'
msg['semi-subject-page-links'] = ' $15, discuss changes on the $14,'
msg['semi-subject-page-links'] = ' $15, discuss changes on the $14,'


msg['deletion-log-link-display'] = 'deletion log'
msg['deletion-log-link-display'] = 'deletion log'


msg['explanation-text-full'] = 'Please discuss any changes on the $14; you may $15 to ask an [[Wikipedia:Administrators|administrator]] to make an edit if it is [[Help:Minor edit#When to mark an edit as a minor edit|uncontroversial]] or supported by [[Wikipedia:Consensus|consensus]].$16'
msg['explanation-text-semi'] = 'If you cannot edit this $4 and you wish to make'
msg['explanation-text-semi'] = 'If you cannot edit this $4 and you wish to make a change, you can$17 [[Wikipedia:Requests for page protection#Current requests for reduction in protection level|request unprotection]], [[Special:Userlogin|log in]], or [[Special:UserLogin/signup|create an account]].'
.. ' a change, you can$17 [[Wikipedia:Requests for page protection#Current'
msg['explanation-text-move'] = 'The page may still be edited but cannot be moved until unprotected. Please discuss any suggested moves on the $14 or at [[Wikipedia:Requested moves]]. You can also [[Wikipedia:Requests for page protection|request]] that the page be unprotected.'
.. ' requests for reduction in protection level|request unprotection]],'
msg['explanation-text-office'] = "If you can edit this page, please discuss all changes and additions on the $14 first. '''Do not remove protection from this page unless you are authorized by the Wikimedia Foundation to do so.'''"
.. ' [[Special:Userlogin|log in]], or [[Special:UserLogin/signup|'
msg['explanation-text-create'] = 'Please see the$18 $19 for details of why this page was deleted. 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]].'
.. 'create an account]].'
msg['explanation-text-move'] = 'The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves on the $14 or at'
.. ' [[Wikipedia:Requested moves]]. You can also [[Wikipedia:Requests for'
.. ' page protection|request]] that the page be unprotected.'
msg['explanation-text-create'] = 'Please see the$18 $19 for details of why this'
.. ' page was deleted. 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]].'
msg['explanation-text-default'] = 'Please discuss any changes on the $14; you'
.. ' may $15 to ask an [[Wikipedia:Administrators|administrator]] to make'
.. ' an edit if it is [[Help:Minor edit#When to mark an edit as a minor'
.. ' edit|uncontroversial]] or supported by [[Wikipedia:Consensus|'
.. 'consensus]].$16'


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Cookies help us deliver our services. By using our services, you agree to our use of cookies.