Jump to content

Module:Protection banner: Difference between revisions

add some more variables to the reasons text
m (reflect changes to Module:Effective protection level)
(add some more variables to the reasons text)
Line 14: Line 14:
-- $4 = A blurb "it has been protected for x years, x months and x days."
-- $4 = A blurb "it has been protected for x years, x months and x days."
-- $5 = the protection date
-- $5 = the protection date
-- $6 = Intro blurb, e.g. "This page is currently
--      [[Help:Protection|protected]] from editing"
-- $7 = {{vandal-m|username}} replacement
blp = {
blp = {
text = 'to promote compliance with'
text = '$6 to promote compliance with'
.. '[[Wikipedia:Biographies of living persons'
.. '[[Wikipedia:Biographies of living persons'
.. "|Wikipedia's policy on the biographies"
.. "|Wikipedia's policy on the biographies"
.. ' of living people]]',
.. ' of living people]]',
tooltip = 'to promote compliance with the policy on biographies of'
tooltip = '$6 to promote compliance with the policy on biographies of'
.. ' living people',
.. ' living people',
categoryOrder = 'reason',
categoryOrder = 'reason',
},
},
dispute = {
dispute = {
text = '$1 editing $2 have been resolved',
text = '$6 $1 editing $2 have been resolved',
tooltip = 'due to editing disputes',
tooltip = 'due to editing disputes',
dispute = true,
dispute = true,
Line 55: Line 58:
},
},
sock = {
sock = {
text = 'to prevent [[Wikipedia:Sock puppetry|sock puppets]] of'
text = '$6 to prevent [[Wikipedia:Sock puppetry|sock puppets]] of'
.. ' [[Wikipedia:Blocking policy|blocked]] or'
.. ' [[Wikipedia:Blocking policy|blocked]] or'
.. ' [[Wikipedia:List of banned users|banned users]]'
.. ' [[Wikipedia:List of banned users|banned users]]'
.. ' from editing it',
.. ' from editing it',
tooltip = 'to prevent sock puppets of blocked or banned users from'
tooltip = '$6 to prevent sock puppets of blocked or banned users from'
.. ' editing it',
.. ' editing it',
categoryOrder = 'reason',
categoryOrder = 'reason',
},
},
usertalk = {
usertalk = {
text = '',
text = '$6 to prevent $7 from using it to make disruptive edits, such'
.. ' as abusing the'
.. ' {{[[Template:unblock|unblock]]}} template',
explanation = 'If you cannot edit this user talk page and you need to'
explanation = 'If you cannot edit this user talk page and you need to'
.. ' make a change or leave a message, you can'
.. ' make a change or leave a message, you can'
Line 78: Line 83:
},
},
vandalism = {
vandalism = {
text = 'due to [[Wikipedia:Vandalism|vandalism]]',
text = '$6 due to [[Wikipedia:Vandalism|vandalism]]',
tooltip = 'due to vandalism',
tooltip = 'due to vandalism',
categoryOrder = 'namespace',
categoryOrder = 'namespace',
Cookies help us deliver our services. By using our services, you agree to our use of cookies.