en.m.wikipedia.org
Module:Message box/configuration/sandbox
< Module:Message box‎ | configuration
This is the module sandbox page for Module:Message box/configuration (diff).
Module documentation​[​view​] [edit] [history] [purge]
This Lua module is used in system messages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing.
See related module:
Module:Message box (sandbox)
The above documentation is transcluded from Module:Message box/configuration/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.
--------------------------------------------------------------------------------​-- Message box configuration ---- ---- This module contains configuration data for [[Module:Message box]]. --​--------------------------------------------------------------------------------​
return { ambox = { types = { speedy = { class = 'ambox-speedy', image = 'OOjs UI icon trash-destructive.svg' }, delete = { class = 'ambox-delete', image = 'OOjs UI icon alert-destructive.svg' }, content = { class = 'ambox-content', image = 'OOjs UI icon notice-warning.svg' }, style = { class = 'ambox-style', image = 'OOjs UI icon information-yellow.svg' }, move = { class = 'ambox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ambox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ambox-notice', image = 'OOjs UI icon information-progressive.svg' } }, default = 'notice', allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', substCheck = true, classes = {'metadata', 'ambox'}, imageEmptyCell = true, imageCheckBlank = true, imageSmallSize = '20x20px', imageCellDiv = true, useCollapsibleTextFields = true, imageRightNone = true, sectionDefault = 'article', allowMainspaceCategories = true, templateCategory = 'Article message templates', templateCategoryRequireName = true, templateErrorCategory = 'Article message templates with missing parameters', templateErrorParamsToCheck = {'issue', 'fix', 'subst'}, removalNotice = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]' }, cmbox = { types = { speedy = { class = 'cmbox-speedy', image = 'OOjs UI icon trash-destructive.svg' }, delete = { class = 'cmbox-delete', image = 'OOjs UI icon alert-destructive.svg' }, content = { class = 'cmbox-content', image = 'OOjs UI icon notice-warning.svg' }, style = { class = 'cmbox-style', image = 'OOjs UI icon information-yellow.svg' }, move = { class = 'cmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'cmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'cmbox-notice', image = 'OOjs UI icon information-progressive.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'cmbox'}, imageEmptyCell = true }, fmbox = { types = { warning = { class = 'fmbox-warning', image = 'Ambox warning pn.svg' }, editnotice = { class = 'fmbox-editnotice', image = 'OOjs UI icon information-progressive.svg' }, system = { class = 'fmbox-system', image = 'OOjs UI icon information-progressive.svg' } }, default = 'system', showInvalidTypeError = true, classes = {'fmbox'}, imageEmptyCell = false, imageRightNone = false }, imbox = { types = { speedy = { class = 'imbox-speedy', image = 'OOjs UI icon trash-destructive.svg' }, delete = { class = 'imbox-delete', image = 'OOjs UI icon alert-destructive.svg' }, content = { class = 'imbox-content', image = 'OOjs UI icon notice-warning.svg' }, style = { class = 'imbox-style', image = 'OOjs UI icon information-yellow.svg' }, move = { class = 'imbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'imbox-protection', image = 'Semi-protection-shackle-keyhole.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 = 'OOjs UI icon information-progressive.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'imbox'}, imageEmptyCell = true, below = true, header = true, templateCategory = 'File message boxes' }, ombox = { types = { speedy = { class = 'ombox-speedy', image = 'OOjs UI icon trash-destructive.svg' }, delete = { class = 'ombox-delete', image = 'OOjs UI icon alert-destructive.svg' }, content = { class = 'ombox-content', image = 'OOjs UI icon notice-warning.svg' }, style = { class = 'ombox-style', image = 'OOjs UI icon information-yellow.svg' }, move = { class = 'ombox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ombox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ombox-notice', image = 'OOjs UI icon information-progressive.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'ombox'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', imageEmptyCell = true, imageRightNone = true }, tmbox = { types = { speedy = { class = 'tmbox-speedy', image = 'OOjs UI icon trash-destructive.svg' }, delete = { class = 'tmbox-delete', image = 'OOjs UI icon alert-destructive.svg' }, content = { class = 'tmbox-content', image = 'OOjs UI icon notice-warning.svg' }, style = { class = 'tmbox-style', image = 'OOjs UI icon information-yellow.svg' }, move = { class = 'tmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'tmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'tmbox-notice', image = 'OOjs UI icon information-progressive.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'tmbox'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', imageRightNone = true, imageEmptyCell = true, imageEmptyCellStyle = true, templateCategory = 'Talk message boxes', collapse = true, header = true }}
Last edited on 9 August 2021, at 15:58
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
 Home Random  Nearby  Log in  Settings  Donate  About Wikipedia  Disclaimers
WatchEdit