Template:Mbox: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 6: | Line 6: | ||
| |}<!-- | |}<!-- | ||
| --></includeonly><templatestyles src="ambox/styles.css" /> | --></includeonly><templatestyles src="ambox/styles.css" /> | ||
| <noinclude> | |||
| <templatedata> | |||
| { | |||
| 	"params": { | |||
| 		"class": { | |||
| 			"label": "Class (CSS)", | |||
| 			"description": "Custom class to add to the table.", | |||
| 			"type": "string", | |||
| 			"suggested": true | |||
| 		}, | |||
| 		"background": { | |||
| 			"label": "Background", | |||
| 			"description": "Background color for the box (neutral grey if not specified). Embedded in the \"background\" CSS property.", | |||
| 			"type": "string" | |||
| 		}, | |||
| 		"border": { | |||
| 			"label": "Border", | |||
| 			"description": "Border style for the box. Embedded in the \"border\" CSS property.", | |||
| 			"type": "string" | |||
| 		}, | |||
| 		"color_bar": { | |||
| 			"label": "Color bar", | |||
| 			"description": "The color used for the left side bar of the box—no bar is displayed if left blank. Embedded in the \"border-left\" CSS property.", | |||
| 			"type": "string" | |||
| 		}, | |||
| 		"style": { | |||
| 			"label": "Style", | |||
| 			"description": "Additional CSS styles embedded at the end of the inline styles for the box", | |||
| 			"type": "string" | |||
| 		}, | |||
| 		"title": { | |||
| 			"label": "Title", | |||
| 			"description": "Header text to be used at the top of the box—this will be displayed in bold.", | |||
| 			"type": "string", | |||
| 			"suggested": true | |||
| 		}, | |||
| 		"text": { | |||
| 			"label": "Text", | |||
| 			"description": "The body text of the message box.", | |||
| 			"type": "string", | |||
| 			"required": true | |||
| 		} | |||
| 	}, | |||
| 	"description": "A simple message box for article pages. This template is meant to implement specific message boxes, not to be invoked directly.", | |||
| 	"paramOrder": [ | |||
| 		"title", | |||
| 		"text", | |||
| 		"class", | |||
| 		"background", | |||
| 		"border", | |||
| 		"color_bar", | |||
| 		"style" | |||
| 	], | |||
| 	"format": "block" | |||
| } | |||
| </templatedata> | |||
| </noinclude> | |||
Revision as of 14:50, 14 December 2024
Page Template:Ambox/styles.css has no content.
A simple message box for article pages. This template is meant to implement specific message boxes, not to be invoked directly.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Header text to be used at the top of the box—this will be displayed in bold. | String | suggested | 
| Text | text | The body text of the message box. | String | required | 
| Class (CSS) | class | Custom class to add to the table. | String | suggested | 
| Background | background | Background color for the box (neutral grey if not specified). Embedded in the "background" CSS property. | String | optional | 
| Border | border | Border style for the box. Embedded in the "border" CSS property. | String | optional | 
| Color bar | color_bar | The color used for the left side bar of the box—no bar is displayed if left blank. Embedded in the "border-left" CSS property. | String | optional | 
| Style | style | Additional CSS styles embedded at the end of the inline styles for the box | String | optional |