Module:Protection banner/config: Difference between revisions
Content added Content deleted
m (1 revision) |
(remove Template:Pp-protected from the wrappers table, as it is now a redirect to Template:Pp) |
||
Line 125: | Line 125: | ||
text = '${INTROBLURB}', |
text = '${INTROBLURB}', |
||
explanation = '${EXPLANATIONBLURB}', |
explanation = '${EXPLANATIONBLURB}', |
||
tooltip = '${TOOLTIPBLURB} |
tooltip = '${TOOLTIPBLURB}', |
||
link = '${IMAGELINK}', |
link = '${IMAGELINK}', |
||
alt = 'Page ${PROTECTIONLEVEL}' |
alt = 'Page ${PROTECTIONLEVEL}' |
||
Line 169: | Line 169: | ||
.. "|Wikipedia's policy on the biographies" |
.. "|Wikipedia's policy on the biographies" |
||
.. ' of living people]].', |
.. ' of living people]].', |
||
tooltip = '${ |
tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on' |
||
.. ' biographies of living people', |
.. ' biographies of living people', |
||
}, |
}, |
||
Line 223: | Line 223: | ||
explanation = "This protection is '''not''' an endorsement of the" |
explanation = "This protection is '''not''' an endorsement of the" |
||
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', |
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', |
||
tooltip = '${ |
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', |
||
}, |
}, |
||
mainpage = { |
mainpage = { |
||
Line 300: | Line 300: | ||
.. ' [[Wikipedia:List of banned users|banned users]]' |
.. ' [[Wikipedia:List of banned users|banned users]]' |
||
.. ' from editing it.', |
.. ' from editing it.', |
||
tooltip = '${ |
tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' |
||
.. ' editing it', |
.. ' editing it', |
||
}, |
}, |
||
Line 350: | Line 350: | ||
return ret .. '${EXPLANATIONBLURB}' |
return ret .. '${EXPLANATIONBLURB}' |
||
end, |
end, |
||
tooltip = '${ |
tooltip = '${TOOLTIPFRAGMENT} due to vandalism', |
||
} |
} |
||
}, |
}, |
||
Line 821: | Line 821: | ||
wrappers = { |
wrappers = { |
||
['Template:Pp'] = {}, |
['Template:Pp'] = {}, |
||
['Template:Pp-blp'] = {'blp |
['Template:Pp-blp'] = {'blp'}, |
||
-- we don't need Template:Pp-create |
-- we don't need Template:Pp-create |
||
['Template:Pp-dispute'] = {'dispute |
['Template:Pp-dispute'] = {'dispute'}, |
||
['Template:Pp-main-page'] = {'mainpage |
['Template:Pp-main-page'] = {'mainpage'}, |
||
['Template:Pp-move'] = {action = 'move'}, |
['Template:Pp-move'] = {action = 'move'}, |
||
['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, |
['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, |
||
Line 833: | Line 833: | ||
['Template:Pp-pc1'] = {action = 'autoreview', small = true}, |
['Template:Pp-pc1'] = {action = 'autoreview', small = true}, |
||
['Template:Pp-pc2'] = {action = 'autoreview', small = true}, |
['Template:Pp-pc2'] = {action = 'autoreview', small = true}, |
||
['Template:Pp-protected'] = {action = 'edit'}, |
|||
['Template:Pp-reset'] = {'reset'}, |
['Template:Pp-reset'] = {'reset'}, |
||
['Template:Pp-semi-indef'] = {expiry = 'indef', small = true}, |
['Template:Pp-semi-indef'] = {expiry = 'indef', small = true}, |
||
['Template:Pp-sock'] = {'sock |
['Template:Pp-sock'] = {'sock'}, |
||
['Template:Pp-template'] = {'template |
['Template:Pp-template'] = {'template', small = true}, |
||
['Template:Pp-usertalk'] = {'usertalk |
['Template:Pp-usertalk'] = {'usertalk'}, |
||
['Template:Pp-vandalism'] = {'vandalism |
['Template:Pp-vandalism'] = {'vandalism'}, |
||
}, |
}, |
||
Line 872: | Line 871: | ||
-- if not the tooltip-blurb-noexpiry message is used. |
-- if not the tooltip-blurb-noexpiry message is used. |
||
-- It is possible to use banner parameters in these messages. |
-- It is possible to use banner parameters in these messages. |
||
['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}', |
['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', |
||
['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', |
['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', |
||
['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', |
|||
['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', |
|||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
Line 935: | Line 936: | ||
-- This is the format for the blurb expiry date. It should be valid input for |
-- This is the format for the blurb expiry date. It should be valid input for |
||
-- the first parameter of the #time parser function. |
-- the first parameter of the #time parser function. |
||
['expiry-date-format'] = ' |
['expiry-date-format'] = 'F j, Y', |
||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |