Want to contribute? Join the Discord and ask for the editor role.
Template:Mbox: Difference between revisions
Template page
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 8: | Line 8: | ||
"label": "Title", | "label": "Title", | ||
"type": "string", | "type": "string", | ||
"suggested": true, | |||
"required": true, | "required": true, | ||
"description": "Title of the message box, will always be shown" | "description": "Title of the message box, will always be shown" | ||
Line 20: | Line 21: | ||
"label": "Expanded", | "label": "Expanded", | ||
"type": "boolean", | "type": "boolean", | ||
"suggested": true, | |||
"description": "Whethere the message box is expanded. If true the description will be shown at all times, otherwise it will displayed when hovering on the message box." | "description": "Whethere the message box is expanded. If true the description will be shown at all times, otherwise it will displayed when hovering on the message box." | ||
}, | }, | ||
Line 25: | Line 27: | ||
"label": "Priority", | "label": "Priority", | ||
"type": "string", | "type": "string", | ||
"suggested": true, | |||
"description": "Message box priority. Determines the colour when no other classes are applied. Valid values are low/med/high. Defaults to low." | "description": "Message box priority. Determines the colour when no other classes are applied. Valid values are low/med/high. Defaults to low." | ||
}, | }, |
Revision as of 21:33, 5 May 2021
Shows a message box
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title of the message box, will always be shown | String | required |
Description | description | Additional text. If message box is expanded it will be shown below the title, otherwise it will be shown when hovering on the message box. | String | suggested |
Expanded | expanded | Whethere the message box is expanded. If true the description will be shown at all times, otherwise it will displayed when hovering on the message box. | Boolean | suggested |
Priority | priority | Message box priority. Determines the colour when no other classes are applied. Valid values are low/med/high. Defaults to low. | String | suggested |
Class | class | Additional CSS classes to add to the message box element | String | optional |
Image | image | Image to show in the message box. | File | optional |
Image Size | imagesize | Size of the image to show in the message box, with px units. Defaults to 14px | String | optional |