Module:Message box/configuration: Difference between revisions

allow all templates to disable the plainlinks class
(add warning type)
 
(allow all templates to disable the plainlinks class)
Line 15: Line 15:
class = 'ambox-delete',
class = 'ambox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.svg'
},
warning = { -- alias for content
class = 'ambox-content',
image = 'Ambox important.svg'
},
},
content = {
content = {
Line 47: Line 43:
smallClass                  = 'mbox-small-left',
smallClass                  = 'mbox-small-left',
substCheck                  = true,
substCheck                  = true,
classes                    = {'metadata', 'plainlinks', 'ambox'},
classes                    = {'metadata', 'ambox'},
imageEmptyCell              = true,
imageEmptyCell              = true,
imageCheckBlank            = true,
imageCheckBlank            = true,
Line 59: Line 55:
        templateCategoryRequireName = true,
        templateCategoryRequireName = true,
templateErrorCategory      = 'Article message templates with missing parameters',
templateErrorCategory      = 'Article message templates with missing parameters',
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
removalNotice              = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
},
},
Line 91: Line 88:
class = 'cmbox-notice',
class = 'cmbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
},
caution = {
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
}
}
},
},
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'cmbox'},
classes              = {'cmbox'},
imageEmptyCell      = true
imageEmptyCell      = true
},
},
Line 120: Line 113:
default              = 'system',
default              = 'system',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'fmbox'},
classes              = {'fmbox'},
imageEmptyCell      = false,
imageEmptyCell      = false,
imageRightNone      = false
imageRightNone      = false
Line 167: Line 160:
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'imbox'},
classes              = {'imbox'},
usePlainlinksParam  = true,
imageEmptyCell      = true,
imageEmptyCell      = true,
below                = true,
below                = true,
Line 182: Line 174:
class = 'ombox-delete',
class = 'ombox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.svg'
},
warning = { -- alias for content
class = 'ombox-content',
image = 'Ambox important.svg'
},
},
content = {
content = {
Line 206: Line 194:
class = 'ombox-notice',
class = 'ombox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
},
critical = {
class = 'mbox-critical',
image = 'Ambox warning pn.svg'
}
}
},
},
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'ombox'},
classes              = {'ombox'},
allowSmall          = true,
allowSmall          = true,
imageEmptyCell      = true,
imageEmptyCell      = true,
Line 253: Line 237:
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'tmbox'},
classes              = {'tmbox'},
allowSmall          = true,
allowSmall          = true,
imageRightNone      = true,
imageRightNone      = true,