Module:Protection banner: Difference between revisions

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