Module:Protection banner/config: Difference between revisions

various simplifications and formatting
Enwikipedia>Mr. Stradivarius
(move template explanation text to a new banner config table)
Enwikipedia>Mr. Stradivarius
(various simplifications and formatting)
Line 21:
-- $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']
-- $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']
-- msg['more-details-protection-log-display'] or msg['more-details-pc-log-display']
-- $14 = Talk page link
-- $15 = Edit request link
Line 30 ⟶ 31:
-- $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"
-- $22 = "This protection is '''not''' an endorsement of the current version"
 
cfg.banners = {
Line 50 ⟶ 52:
cfg.banners.edit.dispute = {
text = '$1 $2 editing $3 have been resolved',
explanation = "This protection is '$22''not''' an endorsement of the $11",
tooltip = 'due to editing disputes',
dispute = true,
Line 57 ⟶ 59:
 
cfg.banners.edit.template = {
text = 'This $20 is a permanently [[Help:Protection|protected]] $214, toas preventit vandalismis [[Wikipedia:High-risk templates|high-risk]]$9',
explanation = 'Please discuss any changes on the $14; you may $15 to ask an'
.. ' [[Wikipedia:Administrators|administrator]] or'
Line 63 ⟶ 65:
.. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by'
.. ' [[Wikipedia:Consensus|consensus]].$16',
tooltip = 'This high-risk $4 is permanently $21 to prevent vandalism',
msg[' alt-text-template'] = 'Permanently protected $4',
}
 
Line 70 ⟶ 74:
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' 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',
}
Line 89 ⟶ 97:
.. ' without approval from someone from the [[WP:OFFICE|Office]].'
.. " 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',
categoryReason = 'office',
Line 137 ⟶ 149:
 
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',
msg[' alt-text-pc1'] = 'Page protected with pending changes level 1',
msg['icon-text-pc1'] tooltip = 'All edits by unregistered and new users are subject to review'
}
 
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',
msg[' alt-text-pc2'] = 'Page protected with pending changes level 2',
msg['icon-text-pc2'] tooltip = 'All edits by users who are not reviewers or administrators are subject to review'
.. ' subject to review'
}
 
Line 257 ⟶ 283:
-- 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'
 
Line 266 ⟶ 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-move'] = 'Page move-protected'
msg['alt-text-indef'] = 'Page permanently protected'
msg['alt-text-create'] = 'Page creation-protected'
msg['alt-text-office'] = ''
msg['alt-text-default'] = 'Page protected'
 
Line 280 ⟶ 298:
--------------------------------------------------------------------------------
 
msg['reason-text-fullsemi'] = 'ThisEditing of this $4 is currentlyby [[HelpWikipedia:Protection|protected]] fromUser editingaccess'
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'
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 areis currently [[WikipediaHelp:Pending changesProtection|subject to reviewdisabled]]$9'
msg['reason-text-pc2move'] = 'All edits made to thisThis $4 by users who are not [[Wikipedia:Reviewing|reviewers]] or [[Wikipedia:Administrators|administrators]] areis currently [[WikipediaHelp:Pending changesProtection|subject to reviewprotected]]$9'
msg['reason-text-move'] = .. 'This $4 is currently [[Help:Protection|protected]] from [[Help:Moving a page|page moves]]$9'
msg['reason-text-templatecreate'] = 'This is[[Help:Starting a permanentlynew [[Help:Protectionpage|protectedRecreation]] $4,of asthis it is [[Wikipedia:High-risk templates|high-risk]]$94'
msg[ .. 'reason-text-indef'] = "This page is [[Help:Protection|protectedhas been disabled]] from editing ''indefinitely''$9"'
msg['reason-text-officedefault'] = 'This $4 is currently [[Help:Protection|protected]] from editing$9'
.. 'protected]] from editing'
msg['reason-text-create'] = '[[Help:Starting a new page|Recreation]] of this $4 [[Help:Protection|has been disabled]]$9'
 
--------------------------------------------------------------------------------
Line 297 ⟶ 315:
msg['dispute-edit-link-display'] = 'current version'
 
msg['more-details'] = 'See the [[Wikipedia:Protection policy|protection policy]] and $13 for more details.'
.. 'protection policy]] and $13 for more details.'
msg['more-details-pc-log-display'] = 'pending changes log'
msg['more-details-protection-log-display'] = 'protection log'
Line 305 ⟶ 324:
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.'
.. ' 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['deletion-log-link-display'] = 'deletion log'
 
msg['explanation-text-semi'] = 'If you cannot edit this $4 and you wish to make'
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 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]].'
.. ' requests for reduction in protection level|request unprotection]],'
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.'
.. ' [[Special:Userlogin|log in]], or [[Special:UserLogin/signup|'
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.'''"
.. 'create an account]].'
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-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'
 
--------------------------------------------------------------------------------