Module:Protection banner/config: Difference between revisions
restructure a little and add default banner config details
m (add missing space) |
(restructure a little and add default banner config details) |
||
Line 1: | Line 1: | ||
-- This module provides configuration data for [[Module:Protection banner]]. | -- This module provides configuration data for [[Module:Protection banner]]. | ||
local cfg = {} | local cfg, msg = {}, {} | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- Banner | -- Banner defaults | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- | -- If no protection reason is specified, or no banner data exists for the | ||
-- reason given, then this data will be used for the banner. Individual items | |||
-- from this data will also be used if that item doesn't exist in the reason- | |||
-- specific banner config. | |||
-- All banner config messages can use the following parameters: | |||
-- $1 = Intro blurb, e.g. "This page is currently | -- $1 = Intro blurb, e.g. "This page is currently | ||
-- [[Help:Protection|protected]] from editing" | -- [[Help:Protection|protected]] from editing" | ||
Line 28: | Line 34: | ||
-- $16 = Deletion discussion link | -- $16 = Deletion discussion link | ||
-- $17 = Deletion log link | -- $17 = Deletion log link | ||
-- $18 = The explanation text, based on the protection action and level. | |||
cfg.defaultBanners = { | |||
edit = {}, | |||
move = {}, | |||
create = {}, | |||
autoreview = {} | |||
} | |||
cfg.defaultBanners.edit.autoconfirmed = { | |||
alt = 'Page semi-protected' | |||
} | |||
cfg.defaultBanners.edit.templateeditor = { | |||
alt = 'Page template-protected' | |||
} | |||
cfg.defaultBanners.edit.default = { | |||
text = '$1.', | |||
explanation = 'See the [[Wikipedia:Protection policy|' | |||
.. 'protection policy]] and $10 for more details. $18', | |||
tooltip = 'This $4 is $7$8.', | |||
alt = 'Page protected' | |||
} | |||
cfg.defaultBanners.move.default = { | |||
text = '$1.', | |||
explanation = 'See the [[Wikipedia:Protection policy|' | |||
.. 'protection policy]] and $10 for more details. $18', | |||
tooltip = 'This $4 is $7$8.', | |||
alt = 'Page move-protected' | |||
} | |||
cfg.defaultBanners.create.default = { | |||
text = '$1.', | |||
explanation = 'See the [[Wikipedia:Protection policy|' | |||
.. 'protection policy]] and $10 for more details. $18', | |||
tooltip = 'This $4 is $7$8.', | |||
alt = 'Page creation-protected' | |||
} | |||
cfg.defaultBanners.create.reviewer = { | |||
alt = 'Page protected with pending changes level 2' | |||
} | |||
cfg.defaultBanners.create.autoconfirmed = { | |||
alt = 'Page protected with pending changes level 1' | |||
} | |||
cfg.defaultBanners.create.default = { | |||
text = '$1.', | |||
explanation = 'See the [[Wikipedia:Protection policy|' | |||
.. 'protection policy]] and $10 for more details. $18', | |||
tooltip = 'This $4 is $7$8.', | |||
alt = 'Page protected with pending changes' | |||
} | |||
-------------------------------------------------------------------------------- | |||
-- Banner config | |||
-------------------------------------------------------------------------------- | |||
cfg.banners = { | cfg.banners = { | ||
Line 50: | Line 116: | ||
explanation = "This protection is '''not''' an endorsement of the $9.", | explanation = "This protection is '''not''' an endorsement of the $9.", | ||
tooltip = 'due to editing disputes', | tooltip = 'due to editing disputes', | ||
categoryOrder = 'reason', | categoryOrder = 'reason', | ||
} | } | ||
Line 137: | Line 202: | ||
cfg.banners.move.dispute = { | cfg.banners.move.dispute = { | ||
explanation = "This protection is '''not''' an endorsement of the $ | explanation = "This protection is '''not''' an endorsement of the $9", | ||
image = 'Padlock-olive.svg' | image = 'Padlock-olive.svg' | ||
} | } | ||
Line 168: | Line 233: | ||
.. ' subject to review', | .. ' subject to review', | ||
image = 'Padlock-orange.svg' | image = 'Padlock-orange.svg' | ||
} | } | ||
Line 280: | Line 334: | ||
-- | -- | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
Line 323: | Line 358: | ||
msg['dispute-edit-link-display'] = 'current version' | msg['dispute-edit-link-display'] = 'current version' | ||
msg['more-details-pc-log-display'] = 'pending changes log' | msg['more-details-pc-log-display'] = 'pending changes log' | ||
msg['more-details-protection-log-display'] = 'protection log' | msg['more-details-protection-log-display'] = 'protection log' |