Module:Protection banner/config: Difference between revisions
move template explanation text to a new banner config table
(put messages and config tables in separate tables) |
(move template explanation text to a new banner config table) |
||
Line 28: | Line 28: | ||
-- $18 = Deletion discussion link | -- $18 = Deletion discussion link | ||
-- $19 = Deletion log link | -- $19 = Deletion log link | ||
-- $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" | |||
cfg.banners = { | cfg.banners = { | ||
Line 52: | Line 54: | ||
dispute = true, | dispute = true, | ||
categoryOrder = 'reason', | categoryOrder = 'reason', | ||
} | |||
cfg.banners.edit.template = { | |||
text = 'This $20 is permanently $21 to prevent vandalism', | |||
explanation = 'Please discuss any changes on the $14; you may $15 to ask an' | |||
.. ' [[Wikipedia:Administrators|administrator]] or' | |||
.. ' [[Wikipedia:Template editor|template editor]] 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' | |||
} | } | ||
Line 301: | Line 313: | ||
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]].' | 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]].' | ||
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-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-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.'''" | 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.'''" | ||
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-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]].' |