« Module:Message box/configuration » : différence entre les versions
w>Izno add templatestyles, remove a variable or two as a result |
Aucun résumé des modifications |
||
Ligne 10 : | Ligne 10 : | ||
speedy = { | speedy = { | ||
class = 'ambox-speedy', | class = 'ambox-speedy', | ||
image = ' | image = 'Warning.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'ambox-delete', | class = 'ambox-delete', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'ambox-content', | class = 'ambox-content', | ||
image = ' | image = 'Note_tip.png' | ||
}, | }, | ||
style = { | style = { | ||
Ligne 30 : | Ligne 30 : | ||
protection = { | protection = { | ||
class = 'ambox-protection', | class = 'ambox-protection', | ||
image = ' | image = 'Padlock-silver-medium.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'ambox-notice', | class = 'ambox-notice', | ||
image = ' | image = 'Note tip.png' | ||
}, | |||
memo = { | |||
class = 'mbox-notice', | |||
image = 'Note tip.png' | |||
} | } | ||
}, | }, | ||
Ligne 43 : | Ligne 47 : | ||
smallClass = 'mbox-small-left', | smallClass = 'mbox-small-left', | ||
substCheck = true, | substCheck = true, | ||
classes = {'metadata', 'ambox'}, | classes = {'metadata', 'plainlinks', 'ambox', 'wgTemplate'}, | ||
imageEmptyCell = true, | imageEmptyCell = true, | ||
imageCheckBlank = true, | imageCheckBlank = true, | ||
Ligne 52 : | Ligne 56 : | ||
sectionDefault = 'article', | sectionDefault = 'article', | ||
allowMainspaceCategories = true, | allowMainspaceCategories = true, | ||
templateCategory = ' | templateCategory = 'Modèle Encart', | ||
templateCategoryRequireName = true, | |||
templateErrorCategory = 'Article message templates with missing parameters', | templateErrorCategory = 'Article message templates with missing parameters', | ||
templateErrorParamsToCheck = {'issue', 'fix', 'subst'} | templateErrorParamsToCheck = {'issue', 'fix', 'subst'} | ||
}, | }, | ||
Ligne 64 : | Ligne 66 : | ||
speedy = { | speedy = { | ||
class = 'cmbox-speedy', | class = 'cmbox-speedy', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'cmbox-delete', | class = 'cmbox-delete', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'cmbox-content', | class = 'cmbox-content', | ||
image = ' | image = 'Warning.png' | ||
}, | }, | ||
style = { | style = { | ||
Ligne 84 : | Ligne 86 : | ||
protection = { | protection = { | ||
class = 'cmbox-protection', | class = 'cmbox-protection', | ||
image = ' | image = 'Padlock-silver-medium.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'cmbox-notice', | class = 'cmbox-notice', | ||
image = ' | image = 'Note tip.png' | ||
} | } | ||
}, | }, | ||
default = 'notice', | default = 'notice', | ||
showInvalidTypeError = true, | showInvalidTypeError = true, | ||
classes = {' | classes = {'plainlinks', 'wgTemplate'}, | ||
imageEmptyCell = true | imageEmptyCell = true | ||
}, | }, | ||
Ligne 102 : | Ligne 103 : | ||
warning = { | warning = { | ||
class = 'fmbox-warning', | class = 'fmbox-warning', | ||
image = ' | image = 'Warning.png' | ||
}, | }, | ||
editnotice = { | editnotice = { | ||
Ligne 115 : | Ligne 116 : | ||
default = 'system', | default = 'system', | ||
showInvalidTypeError = true, | showInvalidTypeError = true, | ||
classes = {'fmbox'}, | allowId = true, | ||
classes = {'plainlinks', 'fmbox'}, | |||
imageEmptyCell = false, | imageEmptyCell = false, | ||
imageRightNone = false | imageRightNone = false | ||
}, | }, | ||
Ligne 125 : | Ligne 126 : | ||
speedy = { | speedy = { | ||
class = 'imbox-speedy', | class = 'imbox-speedy', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'imbox-delete', | class = 'imbox-delete', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'imbox-content', | class = 'imbox-content', | ||
image = ' | image = 'Warning.png' | ||
}, | }, | ||
style = { | style = { | ||
Ligne 145 : | Ligne 146 : | ||
protection = { | protection = { | ||
class = 'imbox-protection', | class = 'imbox-protection', | ||
image = ' | image = 'Padlock-silver-medium.svg' | ||
}, | }, | ||
license = { | license = { | ||
Ligne 157 : | Ligne 158 : | ||
notice = { | notice = { | ||
class = 'imbox-notice', | class = 'imbox-notice', | ||
image = ' | image = 'Note tip.png' | ||
} | } | ||
}, | }, | ||
default = 'notice', | default = 'notice', | ||
showInvalidTypeError = true, | showInvalidTypeError = true, | ||
classes = {' | classes = {'wgTemplate'}, | ||
usePlainlinksParam = true, | |||
imageEmptyCell = true, | imageEmptyCell = true, | ||
below = true, | below = true, | ||
templateCategory = 'File message boxes | templateCategory = 'File message boxes' | ||
}, | }, | ||
ombox = { | ombox = { | ||
types = { | types = { | ||
warning = { | |||
class = 'ombox-content', | |||
image = 'Warning.png' | |||
}, | |||
speedy = { | speedy = { | ||
class = 'ombox-speedy', | class = 'ombox-speedy', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'ombox-delete', | class = 'ombox-delete', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'ombox-content', | class = 'ombox-content', | ||
image = ' | image = 'Warning.png' | ||
}, | }, | ||
style = { | style = { | ||
Ligne 193 : | Ligne 198 : | ||
protection = { | protection = { | ||
class = 'ombox-protection', | class = 'ombox-protection', | ||
image = ' | image = 'Padlock-silver-medium.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'ombox-notice', | class = 'ombox-notice', | ||
image = ' | image = 'Note tip.png' | ||
} | } | ||
}, | }, | ||
default = 'notice', | default = 'notice', | ||
showInvalidTypeError = true, | showInvalidTypeError = true, | ||
classes = {' | classes = {'plainlinks', 'wgTemplate'}, | ||
allowSmall = true, | allowSmall = true, | ||
imageEmptyCell = true, | imageEmptyCell = true, | ||
imageRightNone = true | imageRightNone = true | ||
}, | }, | ||
Ligne 213 : | Ligne 217 : | ||
speedy = { | speedy = { | ||
class = 'tmbox-speedy', | class = 'tmbox-speedy', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'tmbox-delete', | class = 'tmbox-delete', | ||
image = ' | image = 'Error-Icon.png' | ||
}, | }, | ||
content = { | content = { | ||
class = 'tmbox-content', | class = 'tmbox-content', | ||
image = ' | image = 'Warning.png' | ||
}, | }, | ||
style = { | style = { | ||
Ligne 233 : | Ligne 237 : | ||
protection = { | protection = { | ||
class = 'tmbox-protection', | class = 'tmbox-protection', | ||
image = ' | image = 'Padlock-silver-medium.svg' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'tmbox-notice', | class = 'tmbox-notice', | ||
image = ' | image = 'Note tip.png' | ||
} | } | ||
}, | }, | ||
default = 'notice', | default = 'notice', | ||
showInvalidTypeError = true, | showInvalidTypeError = true, | ||
classes = {' | classes = {'plainlinks', 'wgTemplate'}, | ||
allowId = true, | |||
allowSmall = true, | allowSmall = true, | ||
imageRightNone = true, | imageRightNone = true, | ||
imageEmptyCell = true, | imageEmptyCell = true, | ||
templateCategory = 'Talk message boxes | imageEmptyCellStyle = true, | ||
templateCategory = 'Talk message boxes' | |||
} | } | ||
} | } |
Version du 7 février 2023 à 01:49
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 = 'Error-Icon.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 = 'mbox-notice',
image = 'Note tip.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', 'wgTemplate'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = 'article',
allowMainspaceCategories = true,
templateCategory = 'Modèle Encart',
templateCategoryRequireName = true,
templateErrorCategory = 'Article message templates with missing parameters',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Error-Icon.png'
},
delete = {
class = 'cmbox-delete',
image = 'Error-Icon.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'
}
},
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 = 'Error-Icon.png'
},
delete = {
class = 'imbox-delete',
image = 'Error-Icon.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'
}
},
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 = 'Error-Icon.png'
},
delete = {
class = 'ombox-delete',
image = 'Error-Icon.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'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'wgTemplate'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'Error-Icon.png'
},
delete = {
class = 'tmbox-delete',
image = 'Error-Icon.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'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'wgTemplate'},
allowId = true,
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = 'Talk message boxes'
}
}