Module:Protection banner/config: Difference between revisions

new structure for the image filename data
Enwikipedia>Mr. Stradivarius
(re-jig the deletion blurb messages)
Enwikipedia>Mr. Stradivarius
(new structure for the image filename data)
Line 186:
 
cfg.images = {
fulledit = 'Padlock.svg'{},
move = {},
semi = 'Padlock-silver.svg',
create = {},
template = 'Padlock-pink.svg',
autoreview = {}
indef = 'Padlock-red.svg'
}
 
cfg.images.edit.sysop = 'Padlock.svg'
templatecfg.images.edit.templateeditor = 'Padlock-pink.svg',
semicfg.images.edit.autoconfirmed = 'Padlock-silver.svg',
cfg.images.move.sysop = 'Padlock-olive.svg'
cfg.images.move.templateeditor = 'Padlock-olive.svg'
cfg.images.create.default = 'Padlock-skyblue.svg'
cfg.images.autoreview.autoconfirmed = 'Padlock-silver-light.svg'
cfg.images.autoreview.reviewer = 'Padlock-orange.svg'
 
--------------------------------------------------------------------------------
Line 374 ⟶ 383:
msg['protection-level-create'] = 'creation-protected'
msg['protection-level-default'] = 'protected'
 
--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------
 
-- These are images that are not defined by their protection action and protection level.
 
msg['image-filename-indef'] = 'Padlock-red.svg'
msg['image-filename-default'] = 'Transparent.gif'
 
--------------------------------------------------------------------------------