Module:Message box/configuration: Difference between revisions
m (1 revision imported: import mbox) |
(change image names) |
||
Line 26: | Line 26: | ||
style = { | style = { | ||
class = 'ambox-style', | class = 'ambox-style', | ||
image = ' | image = 'OOjs UI icon edit-clear.svg' | ||
}, | }, | ||
move = { | move = { | ||
class = 'ambox-move', | class = 'ambox-move', | ||
image = ' | image = 'OOjs UI icon move.svg' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'ambox-protection', | class = 'ambox-protection', | ||
image = ' | image = 'OOjs UI icon semi-protection-shackle-keyhole.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
Line 78: | Line 78: | ||
style = { | style = { | ||
class = 'cmbox-style', | class = 'cmbox-style', | ||
image = ' | image = 'OOjs UI icon edit-clear.svg' | ||
}, | }, | ||
move = { | move = { | ||
class = 'cmbox-move', | class = 'cmbox-move', | ||
image = ' | image = 'OOjs UI icon move.svg' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'cmbox-protection', | class = 'cmbox-protection', | ||
image = ' | image = 'OOjs UI icon semi-protection-shackle-keyhole.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
Line 94: | Line 94: | ||
caution = { | caution = { | ||
class = 'cmbox-style', | class = 'cmbox-style', | ||
image = ' | image = 'OOjs UI icon warning-yellow.svg' | ||
} | } | ||
}, | }, | ||
Line 141: | Line 141: | ||
style = { | style = { | ||
class = 'imbox-style', | class = 'imbox-style', | ||
image = ' | image = 'OOjs UI icon edit-clear.svg' | ||
}, | }, | ||
move = { | move = { | ||
class = 'imbox-move', | class = 'imbox-move', | ||
image = ' | image = 'OOjs UI icon move.svg' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'imbox-protection', | class = 'imbox-protection', | ||
image = ' | image = 'OOjs UI icon semi-protection-shackle-keyhole.svg' | ||
}, | }, | ||
license = { | license = { | ||
class = 'imbox-license licensetpl', | class = 'imbox-license licensetpl', | ||
image = ' | image = 'OOjs UI icon imbox license.png' -- @todo We need an SVG version of this | ||
}, | }, | ||
featured = { | featured = { | ||
class = 'imbox-featured', | class = 'imbox-featured', | ||
image = ' | image = 'OOjs UI icon featured.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
Line 193: | Line 193: | ||
style = { | style = { | ||
class = 'ombox-style', | class = 'ombox-style', | ||
image = ' | image = 'OOjs UI icon edit-clear.svg' | ||
}, | }, | ||
move = { | move = { | ||
class = 'ombox-move', | class = 'ombox-move', | ||
image = ' | image = 'OOjs UI icon move.svg' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'ombox-protection', | class = 'ombox-protection', | ||
image = ' | image = 'OOjs UI icon semi-protection-shackle-keyhole.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
Line 236: | Line 236: | ||
style = { | style = { | ||
class = 'tmbox-style', | class = 'tmbox-style', | ||
image = ' | image = 'OOjs UI icon edit-clear.svg' | ||
}, | }, | ||
move = { | move = { | ||
class = 'tmbox-move', | class = 'tmbox-move', | ||
image = ' | image = 'OOjs UI icon move.svg' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'tmbox-protection', | class = 'tmbox-protection', | ||
image = ' | image = 'OOjs UI icon semi-protection-shackle-keyhole.svg' | ||
}, | }, | ||
notice = { | notice = { |
Latest revision as of 02:30, 2 May 2024
Documentation for this module may be created at Module:Message box/configuration/doc
--------------------------------------------------------------------------------
-- Message box configuration --
-- --
-- This module contains configuration data for [[Module:Message box]]. --
--------------------------------------------------------------------------------
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'ambox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
warning = { -- alias for content
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
},
content = {
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
},
style = {
class = 'ambox-style',
image = 'OOjs UI icon edit-clear.svg'
},
move = {
class = 'ambox-move',
image = 'OOjs UI icon move.svg'
},
protection = {
class = 'ambox-protection',
image = 'OOjs UI icon semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'ambox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall = true,
smallParam = 'left',
smallClass = 'mbox-small-left',
substCheck = true,
classes = {'metadata', 'plainlinks', 'ambox'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = 'article',
allowMainspaceCategories = true,
templateCategory = 'Article message templates',
templateCategoryRequireName = true,
templateErrorCategory = nil,
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'cmbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
content = {
class = 'cmbox-content',
image = 'OOjs UI icon notice-warning.svg'
},
style = {
class = 'cmbox-style',
image = 'OOjs UI icon edit-clear.svg'
},
move = {
class = 'cmbox-move',
image = 'OOjs UI icon move.svg'
},
protection = {
class = 'cmbox-protection',
image = 'OOjs UI icon semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'cmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
},
caution = {
class = 'cmbox-style',
image = 'OOjs UI icon warning-yellow.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'cmbox'},
imageEmptyCell = true
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'OOjs UI icon clock-destructive.svg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'OOjs UI icon information-progressive.svg'
},
system = {
class = 'fmbox-system',
image = 'OOjs UI icon information-progressive.svg'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'plainlinks', 'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'imbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
content = {
class = 'imbox-content',
image = 'OOjs UI icon notice-warning.svg'
},
style = {
class = 'imbox-style',
image = 'OOjs UI icon edit-clear.svg'
},
move = {
class = 'imbox-move',
image = 'OOjs UI icon move.svg'
},
protection = {
class = 'imbox-protection',
image = 'OOjs UI icon semi-protection-shackle-keyhole.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'OOjs UI icon imbox license.png' -- @todo We need an SVG version of this
},
featured = {
class = 'imbox-featured',
image = 'OOjs UI icon featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'imbox'},
usePlainlinksParam = true,
imageEmptyCell = true,
below = true,
templateCategory = 'File message boxes'
},
ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'ombox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
warning = { -- alias for content
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.svg'
},
content = {
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.svg'
},
style = {
class = 'ombox-style',
image = 'OOjs UI icon edit-clear.svg'
},
move = {
class = 'ombox-move',
image = 'OOjs UI icon move.svg'
},
protection = {
class = 'ombox-protection',
image = 'OOjs UI icon semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'ombox-notice',
image = 'OOjs UI icon information-progressive.svg'
},
critical = {
class = 'mbox-critical',
image = 'OOjs UI icon clock-destructive.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'ombox'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'tmbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
content = {
class = 'tmbox-content',
image = 'OOjs UI icon notice-warning.svg'
},
style = {
class = 'tmbox-style',
image = 'OOjs UI icon edit-clear.svg'
},
move = {
class = 'tmbox-move',
image = 'OOjs UI icon move.svg'
},
protection = {
class = 'tmbox-protection',
image = 'OOjs UI icon semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'tmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'tmbox'},
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = 'Talk message boxes'
}
}