Module:Protection banner/config: Difference between revisions
remove some parameters we don't need
(move images to the banner config if possible) |
(remove some parameters we don't need) |
||
Line 13: | Line 13: | ||
-- $3 = "disputes", with or without a section link | -- $3 = "disputes", with or without a section link | ||
-- $4 = the type of the page, e.g. "article", "template", or "page" | -- $4 = the type of the page, e.g. "article", "template", or "page" | ||
-- $5 | -- $5 removed | ||
-- $6 = the protection date | -- $6 = the protection date | ||
-- $7 = {{vandal-m|username}} replacement | -- $7 = {{vandal-m|username}} replacement | ||
-- $8 = protection level/type blurb, e.g. "create-protected" or "fully protected" | -- $8 = protection level/type blurb, e.g. "create-protected" or "fully protected" | ||
-- $9 = the expiry - " until DD Month YYYY". If protection is indefinite, this is the blank string. | -- $9 = the expiry - " until DD Month YYYY". If protection is indefinite, this is the blank string. | ||
-- $10 | -- $10 removed | ||
-- $11 = A link to the page history, with display msg['dispute-edit-link-display'] | -- $11 = A link to the page history, with display msg['dispute-edit-link-display'] | ||
-- $12 = A link to the move log, with display msg['dispute-move-link-display'] | -- $12 = A link to the move log, with display msg['dispute-move-link-display'] | ||
Line 29: | Line 29: | ||
-- $18 = Deletion discussion link | -- $18 = Deletion discussion link | ||
-- $19 = Deletion log link | -- $19 = Deletion log link | ||
-- $20 | -- $20 removed | ||
-- $21 | -- $21 removed | ||
-- $22 | -- $22 removed | ||
cfg.banners = { | cfg.banners = { | ||
Line 52: | Line 52: | ||
cfg.banners.edit.dispute = { | cfg.banners.edit.dispute = { | ||
text = '$1 $2 editing $3 have been resolved', | text = '$1 $2 editing $3 have been resolved', | ||
explanation = '$ | explanation = "This protection is '''not''' an endorsement of the $11.", | ||
tooltip = 'due to editing disputes', | tooltip = 'due to editing disputes', | ||
dispute = true, | dispute = true, | ||
Line 66: | Line 66: | ||
.. '|uncontroversial]] or supported by' | .. '|uncontroversial]] or supported by' | ||
.. ' [[Wikipedia:Consensus|consensus]].$16', | .. ' [[Wikipedia:Consensus|consensus]].$16', | ||
tooltip = 'This high-risk $4 is permanently $ | tooltip = 'This high-risk $4 is permanently $8 to prevent vandalism', | ||
alt = 'Permanently protected $4', | alt = 'Permanently protected $4', | ||
} | } | ||
Line 73: | Line 73: | ||
text = 'This $4 is currently under the scrutiny of the' | 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. It has been protected since $6.', | ||
explanation = "If you can edit this page, please discuss all changes and" | explanation = "If you can edit this page, please discuss all changes and" | ||
.. " additions on the $14 first. '''Do not remove protection from this" | .. " additions on the $14 first. '''Do not remove protection from this" | ||
Line 118: | Line 118: | ||
cfg.banners.edit.usertalk = { | cfg.banners.edit.usertalk = { | ||
text = '$1 to prevent $7 from using it to make disruptive edits, | text = '$1 to prevent $7 from using it to make disruptive edits,' | ||
.. ' as abusing the' | .. ' such as abusing the' | ||
.. ' {{[[Template:unblock|unblock]]}} template', | .. ' {{[[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' | ||
Line 284: | Line 284: | ||
-- Parameters are the same as for the banner table. | -- Parameters are the same as for the banner table. | ||
msg['icon-text-default'] = 'This $4 is $8$9 | msg['icon-text-default'] = 'This $4 is $8$9' | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |