Module:Message box/configuration: Difference between revisions
From Wings of Fire: The New World Wiki
mediawiki>Pppery Use SVG per edit request |
replaced SVGs with PNGs because SVG thumbnailing died |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
speedy = { | speedy = { | ||
class = 'ambox-speedy', | class = 'ambox-speedy', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'ambox-delete', | class = 'ambox-delete', | ||
image = 'OOjs UI icon alert-destructive. | image = 'OOjs UI icon alert-destructive.png' | ||
}, | }, | ||
warning = { -- alias for content | warning = { -- alias for content | ||
class = 'ambox-content', | class = 'ambox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'ambox-content', | class = 'ambox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
style = { | style = { | ||
class = 'ambox-style', | class = 'ambox-style', | ||
image = 'Edit-clear. | image = 'Edit-clear.png' | ||
}, | }, | ||
move = { | move = { | ||
class = 'ambox-move', | class = 'ambox-move', | ||
image = 'Merge-split-transwiki default. | image = 'Merge-split-transwiki default.png' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'ambox-protection', | class = 'ambox-protection', | ||
image = 'Semi-protection-shackle-keyhole. | image = 'Semi-protection-shackle-keyhole.png' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'ambox-notice', | class = 'ambox-notice', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
} | } | ||
}, | }, | ||
Line 66: | Line 66: | ||
speedy = { | speedy = { | ||
class = 'cmbox-speedy', | class = 'cmbox-speedy', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'cmbox-delete', | class = 'cmbox-delete', | ||
image = 'OOjs UI icon alert-destructive. | image = 'OOjs UI icon alert-destructive.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'cmbox-content', | class = 'cmbox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
style = { | style = { | ||
class = 'cmbox-style', | class = 'cmbox-style', | ||
image = 'Edit-clear. | image = 'Edit-clear.png' | ||
}, | }, | ||
move = { | move = { | ||
class = 'cmbox-move', | class = 'cmbox-move', | ||
image = 'Merge-split-transwiki default. | image = 'Merge-split-transwiki default.png' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'cmbox-protection', | class = 'cmbox-protection', | ||
image = 'Semi-protection-shackle-keyhole. | image = 'Semi-protection-shackle-keyhole.png' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'cmbox-notice', | class = 'cmbox-notice', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
}, | }, | ||
caution = { | caution = { | ||
class = 'cmbox-style', | class = 'cmbox-style', | ||
image = 'Ambox warning yellow. | image = 'Ambox warning yellow.png' | ||
} | } | ||
}, | }, | ||
Line 107: | Line 107: | ||
warning = { | warning = { | ||
class = 'fmbox-warning', | class = 'fmbox-warning', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
}, | }, | ||
editnotice = { | editnotice = { | ||
class = 'fmbox-editnotice', | class = 'fmbox-editnotice', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
}, | }, | ||
system = { | system = { | ||
class = 'fmbox-system', | class = 'fmbox-system', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
} | } | ||
}, | }, | ||
Line 129: | Line 129: | ||
speedy = { | speedy = { | ||
class = 'imbox-speedy', | class = 'imbox-speedy', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'imbox-delete', | class = 'imbox-delete', | ||
image = 'OOjs UI icon alert-destructive. | image = 'OOjs UI icon alert-destructive.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'imbox-content', | class = 'imbox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
style = { | style = { | ||
class = 'imbox-style', | class = 'imbox-style', | ||
image = 'Edit-clear. | image = 'Edit-clear.png' | ||
}, | }, | ||
move = { | move = { | ||
class = 'imbox-move', | class = 'imbox-move', | ||
image = 'Merge-split-transwiki default. | image = 'Merge-split-transwiki default.png' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'imbox-protection', | class = 'imbox-protection', | ||
image = 'Semi-protection-shackle-keyhole. | image = 'Semi-protection-shackle-keyhole.png' | ||
}, | }, | ||
license = { | license = { | ||
class = 'imbox-license licensetpl', | class = 'imbox-license licensetpl', | ||
image = 'Imbox-license. | image = 'Imbox-license.png' | ||
}, | }, | ||
featured = { | featured = { | ||
class = 'imbox-featured', | class = 'imbox-featured', | ||
image = 'Cscr-featured. | image = 'Cscr-featured.png' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'imbox-notice', | class = 'imbox-notice', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
} | } | ||
}, | }, | ||
Line 177: | Line 177: | ||
speedy = { | speedy = { | ||
class = 'ombox-speedy', | class = 'ombox-speedy', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'ombox-delete', | class = 'ombox-delete', | ||
image = 'OOjs UI icon alert-destructive. | image = 'OOjs UI icon alert-destructive.png' | ||
}, | }, | ||
warning = { -- alias for content | warning = { -- alias for content | ||
class = 'ombox-content', | class = 'ombox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'ombox-content', | class = 'ombox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
style = { | style = { | ||
class = 'ombox-style', | class = 'ombox-style', | ||
image = 'Edit-clear. | image = 'Edit-clear.png' | ||
}, | }, | ||
move = { | move = { | ||
class = 'ombox-move', | class = 'ombox-move', | ||
image = 'Merge-split-transwiki default. | image = 'Merge-split-transwiki default.png' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'ombox-protection', | class = 'ombox-protection', | ||
image = 'Semi-protection-shackle-keyhole. | image = 'Semi-protection-shackle-keyhole.png' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'ombox-notice', | class = 'ombox-notice', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
}, | }, | ||
critical = { | critical = { | ||
class = 'mbox-critical', | class = 'mbox-critical', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
} | } | ||
}, | }, | ||
Line 224: | Line 224: | ||
speedy = { | speedy = { | ||
class = 'tmbox-speedy', | class = 'tmbox-speedy', | ||
image = 'OOjs UI icon clock-destructive. | image = 'OOjs UI icon clock-destructive.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'tmbox-delete', | class = 'tmbox-delete', | ||
image = 'OOjs UI icon alert-destructive. | image = 'OOjs UI icon alert-destructive.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'tmbox-content', | class = 'tmbox-content', | ||
image = 'OOjs UI icon notice-warning. | image = 'OOjs UI icon notice-warning.png' | ||
}, | }, | ||
style = { | style = { | ||
class = 'tmbox-style', | class = 'tmbox-style', | ||
image = 'Edit-clear. | image = 'Edit-clear.png' | ||
}, | }, | ||
move = { | move = { | ||
class = 'tmbox-move', | class = 'tmbox-move', | ||
image = 'Merge-split-transwiki default. | image = 'Merge-split-transwiki default.png' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'tmbox-protection', | class = 'tmbox-protection', | ||
image = 'Semi-protection-shackle-keyhole. | image = 'Semi-protection-shackle-keyhole.png' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'tmbox-notice', | class = 'tmbox-notice', | ||
image = 'OOjs UI icon information-progressive. | image = 'OOjs UI icon information-progressive.png' | ||
} | } | ||
}, | }, |
Latest revision as of 00:26, 26 November 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.png'
},
delete = {
class = 'ambox-delete',
image = 'OOjs UI icon alert-destructive.png'
},
warning = { -- alias for content
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.png'
},
content = {
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.png'
},
style = {
class = 'ambox-style',
image = 'Edit-clear.png'
},
move = {
class = 'ambox-move',
image = 'Merge-split-transwiki default.png'
},
protection = {
class = 'ambox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
notice = {
class = 'ambox-notice',
image = 'OOjs UI icon information-progressive.png'
}
},
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.png'
},
delete = {
class = 'cmbox-delete',
image = 'OOjs UI icon alert-destructive.png'
},
content = {
class = 'cmbox-content',
image = 'OOjs UI icon notice-warning.png'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.png'
},
move = {
class = 'cmbox-move',
image = 'Merge-split-transwiki default.png'
},
protection = {
class = 'cmbox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
notice = {
class = 'cmbox-notice',
image = 'OOjs UI icon information-progressive.png'
},
caution = {
class = 'cmbox-style',
image = 'Ambox warning yellow.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'cmbox'},
imageEmptyCell = true
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'OOjs UI icon clock-destructive.png'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'OOjs UI icon information-progressive.png'
},
system = {
class = 'fmbox-system',
image = 'OOjs UI icon information-progressive.png'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'plainlinks', 'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'OOjs UI icon clock-destructive.png'
},
delete = {
class = 'imbox-delete',
image = 'OOjs UI icon alert-destructive.png'
},
content = {
class = 'imbox-content',
image = 'OOjs UI icon notice-warning.png'
},
style = {
class = 'imbox-style',
image = 'Edit-clear.png'
},
move = {
class = 'imbox-move',
image = 'Merge-split-transwiki default.png'
},
protection = {
class = 'imbox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox-license.png'
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.png'
},
notice = {
class = 'imbox-notice',
image = 'OOjs UI icon information-progressive.png'
}
},
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.png'
},
delete = {
class = 'ombox-delete',
image = 'OOjs UI icon alert-destructive.png'
},
warning = { -- alias for content
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.png'
},
content = {
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.png'
},
style = {
class = 'ombox-style',
image = 'Edit-clear.png'
},
move = {
class = 'ombox-move',
image = 'Merge-split-transwiki default.png'
},
protection = {
class = 'ombox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
notice = {
class = 'ombox-notice',
image = 'OOjs UI icon information-progressive.png'
},
critical = {
class = 'mbox-critical',
image = 'OOjs UI icon clock-destructive.png'
}
},
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.png'
},
delete = {
class = 'tmbox-delete',
image = 'OOjs UI icon alert-destructive.png'
},
content = {
class = 'tmbox-content',
image = 'OOjs UI icon notice-warning.png'
},
style = {
class = 'tmbox-style',
image = 'Edit-clear.png'
},
move = {
class = 'tmbox-move',
image = 'Merge-split-transwiki default.png'
},
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
notice = {
class = 'tmbox-notice',
image = 'OOjs UI icon information-progressive.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'tmbox'},
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = 'Talk message boxes'
}
}