Module:Protection banner: Difference between revisions

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