Module:Protection banner/config: Difference between revisions

add image link config
Enwikipedia>Mr. Stradivarius
(remove deprecated bannerData fields, add missing full stop to the vandalism banner)
Enwikipedia>Mr. Stradivarius
(add image link config)
Line 37:
-- 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."
--
-- ${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
Line 90 ⟶ 93:
explanation = '${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPBLURB}.',
link = '${IMAGELINK}',
alt = 'Page ${PROTECTIONLEVEL}'
}
Line 295 ⟶ 299:
cfg.images.autoreview.autoconfirmed = 'Padlock-silver-light.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'
 
--------------------------------------------------------------------------------