Module:Message box/configuration: Difference between revisions
From Karteria DWRP Wiki
Jump to navigationJump to search
m 1 revision imported |
No edit summary |
||
| Line 9: | Line 9: | ||
types = { | types = { | ||
speedy = { | speedy = { | ||
class = 'ambox-speedy | class = 'ambox-speedy' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'ambox-delete | class = 'ambox-delete' | ||
}, | }, | ||
warning = { -- alias for content | warning = { -- alias for content | ||
class = 'ambox-content | class = 'ambox-content' | ||
}, | }, | ||
content = { | content = { | ||
class = 'ambox-content | class = 'ambox-content' | ||
}, | }, | ||
style = { | style = { | ||
class = 'ambox-style | class = 'ambox-style' | ||
}, | }, | ||
move = { | move = { | ||
class = 'ambox-move | class = 'ambox-move' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'ambox-protection | class = 'ambox-protection' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'ambox-notice | class = 'ambox-notice' | ||
} | } | ||
}, | }, | ||
| Line 65: | Line 57: | ||
types = { | types = { | ||
speedy = { | speedy = { | ||
class = 'cmbox-speedy | class = 'cmbox-speedy' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'cmbox-delete | class = 'cmbox-delete' | ||
}, | }, | ||
content = { | content = { | ||
class = 'cmbox-content | class = 'cmbox-content' | ||
}, | }, | ||
style = { | style = { | ||
class = 'cmbox-style | class = 'cmbox-style' | ||
}, | }, | ||
move = { | move = { | ||
class = 'cmbox-move | class = 'cmbox-move' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'cmbox-protection | class = 'cmbox-protection' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'cmbox-notice | class = 'cmbox-notice' | ||
}, | }, | ||
caution = { | caution = { | ||
class = 'cmbox-style | class = 'cmbox-style' | ||
} | } | ||
}, | }, | ||
| Line 106: | Line 90: | ||
types = { | types = { | ||
warning = { | warning = { | ||
class = 'fmbox-warning | class = 'fmbox-warning' | ||
}, | }, | ||
editnotice = { | editnotice = { | ||
class = 'fmbox-editnotice | class = 'fmbox-editnotice' | ||
}, | }, | ||
system = { | system = { | ||
class = 'fmbox-system | class = 'fmbox-system' | ||
} | } | ||
}, | }, | ||
| Line 128: | Line 109: | ||
types = { | types = { | ||
speedy = { | speedy = { | ||
class = 'imbox-speedy | class = 'imbox-speedy' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'imbox-delete | class = 'imbox-delete' | ||
}, | }, | ||
content = { | content = { | ||
class = 'imbox-content | class = 'imbox-content' | ||
}, | }, | ||
style = { | style = { | ||
class = 'imbox-style | class = 'imbox-style' | ||
}, | }, | ||
move = { | move = { | ||
class = 'imbox-move | class = 'imbox-move' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'imbox-protection | class = 'imbox-protection' | ||
}, | }, | ||
license = { | license = { | ||
class = 'imbox-license licensetpl | class = 'imbox-license licensetpl' | ||
}, | }, | ||
featured = { | featured = { | ||
class = 'imbox-featured | class = 'imbox-featured' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'imbox-notice | class = 'imbox-notice' | ||
} | } | ||
}, | }, | ||
| Line 176: | Line 148: | ||
types = { | types = { | ||
speedy = { | speedy = { | ||
class = 'ombox-speedy | class = 'ombox-speedy' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'ombox-delete | class = 'ombox-delete' | ||
}, | }, | ||
warning = { -- alias for content | warning = { -- alias for content | ||
class = 'ombox-content | class = 'ombox-content' | ||
}, | }, | ||
content = { | content = { | ||
class = 'ombox-content | class = 'ombox-content' | ||
}, | }, | ||
style = { | style = { | ||
class = 'ombox-style | class = 'ombox-style' | ||
}, | }, | ||
move = { | move = { | ||
class = 'ombox-move | class = 'ombox-move' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'ombox-protection | class = 'ombox-protection' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'ombox-notice | class = 'ombox-notice' | ||
}, | }, | ||
critical = { | critical = { | ||
class = 'mbox-critical | class = 'mbox-critical' | ||
} | } | ||
}, | }, | ||
| Line 223: | Line 186: | ||
types = { | types = { | ||
speedy = { | speedy = { | ||
class = 'tmbox-speedy | class = 'tmbox-speedy' | ||
}, | }, | ||
delete = { | delete = { | ||
class = 'tmbox-delete | class = 'tmbox-delete' | ||
}, | }, | ||
content = { | content = { | ||
class = 'tmbox-content | class = 'tmbox-content' | ||
}, | }, | ||
style = { | style = { | ||
class = 'tmbox-style | class = 'tmbox-style' | ||
}, | }, | ||
move = { | move = { | ||
class = 'tmbox-move | class = 'tmbox-move' | ||
}, | }, | ||
protection = { | protection = { | ||
class = 'tmbox-protection | class = 'tmbox-protection' | ||
}, | }, | ||
notice = { | notice = { | ||
class = 'tmbox-notice | class = 'tmbox-notice' | ||
} | } | ||
}, | }, | ||
Latest revision as of 10:24, 29 December 2025
See source: https://www.mediawiki.org/wiki/Module:Message_box
--------------------------------------------------------------------------------
-- Message box configuration --
-- --
-- This module contains configuration data for [[Module:Message box]]. --
--------------------------------------------------------------------------------
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy'
},
delete = {
class = 'ambox-delete'
},
warning = { -- alias for content
class = 'ambox-content'
},
content = {
class = 'ambox-content'
},
style = {
class = 'ambox-style'
},
move = {
class = 'ambox-move'
},
protection = {
class = 'ambox-protection'
},
notice = {
class = 'ambox-notice'
}
},
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'
},
delete = {
class = 'cmbox-delete'
},
content = {
class = 'cmbox-content'
},
style = {
class = 'cmbox-style'
},
move = {
class = 'cmbox-move'
},
protection = {
class = 'cmbox-protection'
},
notice = {
class = 'cmbox-notice'
},
caution = {
class = 'cmbox-style'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'cmbox'},
imageEmptyCell = true
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning'
},
editnotice = {
class = 'fmbox-editnotice'
},
system = {
class = 'fmbox-system'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'plainlinks', 'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy'
},
delete = {
class = 'imbox-delete'
},
content = {
class = 'imbox-content'
},
style = {
class = 'imbox-style'
},
move = {
class = 'imbox-move'
},
protection = {
class = 'imbox-protection'
},
license = {
class = 'imbox-license licensetpl'
},
featured = {
class = 'imbox-featured'
},
notice = {
class = 'imbox-notice'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'imbox'},
usePlainlinksParam = true,
imageEmptyCell = true,
below = true,
templateCategory = 'File message boxes'
},
ombox = {
types = {
speedy = {
class = 'ombox-speedy'
},
delete = {
class = 'ombox-delete'
},
warning = { -- alias for content
class = 'ombox-content'
},
content = {
class = 'ombox-content'
},
style = {
class = 'ombox-style'
},
move = {
class = 'ombox-move'
},
protection = {
class = 'ombox-protection'
},
notice = {
class = 'ombox-notice'
},
critical = {
class = 'mbox-critical'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'ombox'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy'
},
delete = {
class = 'tmbox-delete'
},
content = {
class = 'tmbox-content'
},
style = {
class = 'tmbox-style'
},
move = {
class = 'tmbox-move'
},
protection = {
class = 'tmbox-protection'
},
notice = {
class = 'tmbox-notice'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'tmbox'},
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = 'Talk message boxes'
}
}