Module:Message box/configuration
Documentation Module[créer]
You might want to créer a documentation page for this Scribunto module. Les éditeurs peuvent tester ce module dans sandbox (créer | miroir) et testcases (créer). Sous-pages de ce module. |
--------------------------------------------------------------------------------
-- Message box configuration --
-- --
-- This module contains configuration data for [[Module:Message box]]. --
--------------------------------------------------------------------------------
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'Warning.png'
},
delete = {
class = 'ambox-delete',
image = 'Alert.png'
},
content = {
class = 'ambox-content',
image = 'Note_tip.png'
},
style = {
class = 'ambox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ambox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'ambox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'ambox-notice',
image = 'Note tip.png'
},
memo = {
class = 'ambox-notice',
image = 'NotesIcon.png'
},
dovconnect = {
class = 'ombox-notice',
image = 'Logo-Dovconnect-icon.png',
cat = 'DovConnect'
}
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall = true,
smallParam = 'left',
smallClass = 'mbox-small-left',
substCheck = true,
classes = {'metadata', 'plainlinks', 'ambox', 'wgTemplate'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = 'article',
allowMainspaceCategories = true,
templateCategory = "",
templateCategoryRequireName = false,
templateErrorCategory = 'Article message templates with missing parameters',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Alert.png'
},
delete = {
class = 'cmbox-delete',
image = 'Alert.png'
},
content = {
class = 'cmbox-content',
image = 'Warning.png'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'cmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'cmbox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'cmbox-notice',
image = 'Note tip.png'
},
memo = {
class = 'cmbox-notice',
image = 'NotesIcon.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'wgTemplate'},
imageEmptyCell = true
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'Warning.png'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Information icon4.svg'
},
system = {
class = 'fmbox-system',
image = 'Information icon4.svg'
}
},
default = 'system',
showInvalidTypeError = true,
allowId = true,
classes = {'plainlinks', 'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'Alert.png'
},
delete = {
class = 'imbox-delete',
image = 'Alert.png'
},
content = {
class = 'imbox-content',
image = 'Warning.png'
},
style = {
class = 'imbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'imbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'imbox-protection',
image = 'Padlock-silver-medium.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox license.png' -- @todo We need an SVG version of this
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'Note tip.png'
},
memo = {
class = 'imbox-notice',
image = 'NotesIcon.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'wgTemplate'},
usePlainlinksParam = true,
imageEmptyCell = true,
below = true,
templateCategory = 'File message boxes'
},
ombox = {
types = {
warning = {
class = 'ombox-content',
image = 'Warning.png'
},
speedy = {
class = 'ombox-speedy',
image = 'Alert.png'
},
delete = {
class = 'ombox-delete',
image = 'Alert.png'
},
content = {
class = 'ombox-content',
image = 'Warning.png'
},
style = {
class = 'ombox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ombox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'ombox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'ombox-notice',
image = 'Note tip.png'
},
memo = {
class = 'ombox-notice',
image = 'NotesIcon.png',
category = 'Memo'
},
dovconnect = {
class = 'ombox-notice',
image = 'Logo-Dovconnect-icon.png',
category = { 'DovConnect' }
}
},
allowMainspaceCategories = true,
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'wgTemplate'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'Alert.png'
},
delete = {
class = 'tmbox-delete',
image = 'Alert.png'
},
content = {
class = 'tmbox-content',
image = 'Warning.png'
},
style = {
class = 'tmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'tmbox-notice',
image = 'Note tip.png'
},
memo = {
class = 'tmbox-notice',
image = 'NotesIcon.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'wgTemplate'},
allowId = true,
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = 'Talk message boxes'
}
}