Module:Protection banner: Difference between revisions
merge the reasons and banners tables
(format reset blurb for easier readability) |
(merge the reasons and banners tables) |
||
Line 9: | Line 9: | ||
cfg.reasons = { | cfg.reasons = { | ||
-- $1 = "until" or "or until" depending on the expiry | -- $1 = "until" or "or until" depending on the expiry | ||
-- $2 = "disputes", with or without a section link | -- $2 = "disputes", with or without a section link | ||
Line 46: | Line 20: | ||
.. ' of living people]]', | .. ' of living people]]', | ||
tooltip = 'to promote compliance with the policy on biographies of' | tooltip = 'to promote compliance with the policy on biographies of' | ||
.. ' living people' | .. ' living people', | ||
categoryOrder = 'reason', | |||
}, | }, | ||
dispute = { | dispute = { | ||
text = '$1 editing $2 have been resolved', | text = '$1 editing $2 have been resolved', | ||
tooltip = 'due to editing disputes', | tooltip = 'due to editing disputes', | ||
dispute = true | dispute = true, | ||
categoryOrder = 'reason', | |||
}, | }, | ||
office = { | office = { | ||
text = 'This $3 is currently under the scrutiny of the' | text = 'This $3 is currently under the scrutiny of the' | ||
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' | ||
.. ' and is protected. $4' | .. ' and is protected. $4', | ||
categoryOrder = 'reason', | |||
}, | }, | ||
reset = { | reset = { | ||
Line 73: | Line 50: | ||
.. " same date.\n\n'''Administrators may not override this action" | .. " same date.\n\n'''Administrators may not override this action" | ||
.. ' without approval from someone from the [[WP:OFFICE|Office]].' | .. ' without approval from someone from the [[WP:OFFICE|Office]].' | ||
.. " No editor may remove this notice.'''" | .. " No editor may remove this notice.'''", | ||
categoryOrder = 'reason', | |||
categoryReason = 'office', | |||
}, | }, | ||
sock = { | sock = { | ||
Line 81: | Line 60: | ||
.. ' from editing it', | .. ' from editing it', | ||
tooltip = 'to prevent sock puppets of blocked or banned users from' | tooltip = 'to prevent sock puppets of blocked or banned users from' | ||
.. ' editing it' | .. ' editing it', | ||
categoryOrder = 'reason', | |||
}, | }, | ||
usertalk = { | usertalk = { | ||
Line 94: | Line 74: | ||
.. '|request unprotection]],' | .. '|request unprotection]],' | ||
.. ' [[Special:Userlogin|log in]],' | .. ' [[Special:Userlogin|log in]],' | ||
.. ' or [[Special:UserLogin/signup|create an account]].' | .. ' or [[Special:UserLogin/signup|create an account]].', | ||
categoryReason = 'all', | |||
}, | }, | ||
vandalism = { | vandalism = { | ||
text = 'due to [[Wikipedia:Vandalism|vandalism]]', | text = 'due to [[Wikipedia:Vandalism|vandalism]]', | ||
tooltip = 'due to vandalism' | tooltip = 'due to vandalism', | ||
categoryOrder = 'namespace', | |||
}, | }, | ||
} | } |