Module:Protection banner: Difference between revisions
renumber the cfg.reasons parameters
(missed one) |
(renumber the cfg.reasons parameters) |
||
Line 9: | Line 9: | ||
cfg.reasons = { | cfg.reasons = { | ||
-- $1 | -- $1 = Intro blurb, e.g. "This page is currently | ||
-- [[Help:Protection|protected]] from editing" | -- [[Help:Protection|protected]] from editing" | ||
-- $2 = "until" or "or until" depending on the expiry | |||
-- $3 = "disputes", with or without a section link | |||
-- $4 = the type of the page, e.g. "article", "template", or "page" | |||
-- $5 = A blurb "it has been protected for x years, x months and x days." | |||
-- $6 = the protection date | |||
-- $7 = {{vandal-m|username}} replacement | -- $7 = {{vandal-m|username}} replacement | ||
blp = { | blp = { | ||
text = '$ | text = '$1 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 = '$ | tooltip = '$1 to promote compliance with the policy on biographies of' | ||
.. ' living people', | .. ' living people', | ||
categoryOrder = 'reason', | categoryOrder = 'reason', | ||
}, | }, | ||
dispute = { | dispute = { | ||
text = '$ | text = '$1 $2 editing $3 have been resolved', | ||
tooltip = 'due to editing disputes', | tooltip = 'due to editing disputes', | ||
dispute = true, | dispute = true, | ||
Line 33: | Line 33: | ||
}, | }, | ||
office = { | office = { | ||
text = 'This $ | text = 'This $4 is currently under the scrutiny of the' | ||
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | ||
.. ' and is protected. $ | .. ' and is protected. $5', | ||
categoryOrder = 'reason', | categoryOrder = 'reason', | ||
}, | }, | ||
reset = { | reset = { | ||
text = 'On $ | text = 'On $6 this article was reduced to a simplified,' | ||
..' "bare bones" version so that it may be completely rewritten to' | ..' "bare bones" version so that it may be completely rewritten to' | ||
.. ' ensure it meets the policies of' | .. ' ensure it meets the policies of' | ||
Line 58: | Line 58: | ||
}, | }, | ||
sock = { | sock = { | ||
text = '$ | text = '$1 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 = '$ | tooltip = '$1 to prevent sock puppets of blocked or banned users from' | ||
.. ' editing it', | .. ' editing it', | ||
categoryOrder = 'reason', | categoryOrder = 'reason', | ||
}, | }, | ||
usertalk = { | usertalk = { | ||
text = '$ | text = '$1 to prevent $7 from using it to make disruptive edits, such' | ||
.. ' as abusing the' | .. ' as abusing the' | ||
.. ' {{[[Template:unblock|unblock]]}} template', | .. ' {{[[Template:unblock|unblock]]}} template', | ||
Line 83: | Line 83: | ||
}, | }, | ||
vandalism = { | vandalism = { | ||
text = '$ | text = '$1 due to [[Wikipedia:Vandalism|vandalism]]', | ||
tooltip = '$ | tooltip = '$1 due to vandalism', | ||
categoryOrder = 'namespace', | categoryOrder = 'namespace', | ||
}, | }, |