Module:Protection banner/config: Difference between revisions
add image link config
(remove deprecated bannerData fields, add missing full stop to the vandalism banner) |
(add image link config) |
||
Line 37: | Line 37: | ||
-- on the talk page; you may submit a request to ask an administrator to make | -- on the talk page; you may submit a request to ask an administrator to make | ||
-- an edit if it is minor or supported by consensus." | -- an edit if it is minor or supported by consensus." | ||
-- | |||
-- ${IMAGELINK} - a link to set the image to, depending on the protection | |||
-- action and protection level. | |||
-- | -- | ||
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry | -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry | ||
Line 90: | Line 93: | ||
explanation = '${EXPLANATIONBLURB}', | explanation = '${EXPLANATIONBLURB}', | ||
tooltip = '${TOOLTIPBLURB}.', | tooltip = '${TOOLTIPBLURB}.', | ||
link = '${IMAGELINK}', | |||
alt = 'Page ${PROTECTIONLEVEL}' | alt = 'Page ${PROTECTIONLEVEL}' | ||
} | } | ||
Line 295: | Line 299: | ||
cfg.images.autoreview.autoconfirmed = 'Padlock-silver-light.svg' | cfg.images.autoreview.autoconfirmed = 'Padlock-silver-light.svg' | ||
cfg.images.autoreview.reviewer = 'Padlock-orange.svg' | cfg.images.autoreview.reviewer = 'Padlock-orange.svg' | ||
-------------------------------------------------------------------------------- | |||
-- Image links | |||
-------------------------------------------------------------------------------- | |||
cfg.imageLinks = { | |||
edit = {}, | |||
move = {}, | |||
create = {}, | |||
autoreview = {} | |||
} | |||
cfg.imageLinks.edit.default = 'Wikipedia:Protection policy#full' | |||
cfg.imageLinks.edit.templateeditor = 'Wikipedia:Protection policy#template' | |||
cfg.imageLinks.edit.autoconfirmed = 'Wikipedia:Protection policy#semi' | |||
cfg.imageLinks.move.default = 'Wikipedia:Protection policy#move' | |||
cfg.imageLinks.create.default = 'Wikipedia:Protection policy#create' | |||
cfg.imageLinks.autoreview.autoconfirmed = 'Wikipedia:Protection policy#pc1' | |||
cfg.imageLinks.autoreview.reviewer = 'Wikipedia:Protection policy#pc2' | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |