Module:Protection banner/config: Difference between revisions
reinstate the wrappers table and add the mainpage reason
m (Reverted edits by Jackmcbarn (talk) to last version by Mr. Stradivarius) |
(reinstate the wrappers table and add the mainpage reason) |
||
Line 142: | Line 142: | ||
tooltip = 'due to editing disputes', | tooltip = 'due to editing disputes', | ||
}, | }, | ||
mainpage = { | |||
description = 'For [[ | description = 'For pages protected for being displayed on the [[Main Page]].', | ||
text = 'This file is currently' | |||
text = 'This is | .. ' [[Wikipedia:This page is protected|protected]] from' | ||
.. ' | .. ' editing because it is currently or will soon be displayed' | ||
explanation = 'Please discuss any changes on the ${TALKPAGE} | .. ' on the [[Main Page]].', | ||
explanation = 'Images on the Main Page are protected due to their high' | |||
.. ' | .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' | ||
.. ' | .. '<br /><span style="font-size:90%;">' | ||
.. "'''Administrators:''' Once this image is definitely off the Main Page," | |||
.. ' please unprotect this file, or reduce to semi-protection,' | |||
.. ' as appropriate.</span>', | |||
.. ' | |||
.. ' | |||
}, | }, | ||
office = { | office = { | ||
Line 220: | Line 215: | ||
tooltip = '${TOOLTIPBLURB} to prevent sock puppets of blocked or banned users from' | tooltip = '${TOOLTIPBLURB} to prevent sock puppets of blocked or banned users from' | ||
.. ' editing it', | .. ' editing it', | ||
}, | |||
template = { | |||
description = 'For [[Wikipedia:High-risk templates|high-risk]]' | |||
.. ' templates and Lua modules.', | |||
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' | |||
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].', | |||
explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' | |||
.. ' ${EDITREQUEST} 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]]. You can also' | |||
.. ' [[Wikipedia:Requests for page protection|request]] that the page be' | |||
.. ' unprotected.', | |||
tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' | |||
.. ' to prevent vandalism', | |||
alt = 'Permanently protected ${PAGETYPE}', | |||
}, | }, | ||
usertalk = { | usertalk = { | ||
Line 462: | Line 475: | ||
['all-all-office-all-all'] = 'Wikipedia Office-protected pages', | ['all-all-office-all-all'] = 'Wikipedia Office-protected pages', | ||
['all-all-reset-all-all'] = 'Wikipedia Office-protected pages', | ['all-all-reset-all-all'] = 'Wikipedia Office-protected pages', | ||
['all-all-mainpage-all-all'] = 'Protected main page images', | |||
['all-template-all-all-edit'] = 'Wikipedia protected templates', | ['all-template-all-all-edit'] = 'Wikipedia protected templates', | ||
['all-all-all-autoconfirmed-edit'] = 'Wikipedia semi-protected pages', | ['all-all-all-autoconfirmed-edit'] = 'Wikipedia semi-protected pages', | ||
Line 543: | Line 557: | ||
['indefinitely'] = true, | ['indefinitely'] = true, | ||
['infinite'] = true, | ['infinite'] = true, | ||
}, | |||
-------------------------------------------------------------------------------- | |||
-- Wrapper templates and their default arguments | |||
-------------------------------------------------------------------------------- | |||
wrappers = { | |||
['Template:Pp'] = {}, | |||
['Template:Pp-blp'] = {'blp', action = 'edit'}, | |||
-- we don't need Template:Pp-create | |||
['Template:Pp-dispute'] = {'dispute', action = 'edit'}, | |||
['Template:Pp-main-page'] = {'main-page', action = 'edit'}, | |||
['Template:Pp-move'] = {action = 'move'}, | |||
['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, | |||
-- we don't need Template:Pp-move-indef | |||
['Template:Pp-move-vandalism'] = {'vandalism', action = 'move'}, | |||
['Template:Pp-office'] = {'office'}, | |||
['Template:Pp-office-dmca'] = {'office-dmca'}, -- XXX The module doesn't support this reason yet. | |||
['Template:Pp-pc1'] = {action = 'autoreview'}, | |||
['Template:Pp-pc2'] = {action = 'autoreview'}, | |||
['Template:Pp-protected'] = {action = 'edit'}, | |||
['Template:Pp-reset'] = {'reset'}, | |||
['Template:Pp-semi-indef'] = {expiry = 'indef'}, | |||
['Template:Pp-sock'] = {'sock', action = 'edit'}, | |||
['Template:Pp-template'] = {'template', action = 'edit'}, | |||
['Template:Pp-usertalk'] = {'usertalk', action = 'edit'}, | |||
['Template:Pp-vandalism'] = {'vandalism', action = 'edit'}, | |||
}, | }, | ||