Jump to content

Module:Protection banner/config: Difference between revisions

add tooltip fragment messages and convert existing TOOLTIPBLURB parameters to TOOLTIPFRAGMENT parameters where appropriate
(set the expiry display to "F j, Y", as that's what Template:Pp-meta does)
(add tooltip fragment messages and convert existing TOOLTIPBLURB parameters to TOOLTIPFRAGMENT parameters where appropriate)
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 = '${TOOLTIPBLURB} to promote compliance with the policy on'
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 = '${TOOLTIPBLURB} due to editing disputes',
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 = '${TOOLTIPBLURB} to prevent sock puppets of blocked or banned users from'
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 = '${TOOLTIPBLURB} due to vandalism',
tooltip = '${TOOLTIPFRAGMENT} due to vandalism',
}
}
},
},
Line 872: Line 872:
-- 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}',


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