Template:Message box/doc

This template is used to add consistent styling to message boxes.

Usage


Parameters
{	"params": { "mini": { "label": "Mini mode", "description": "Changes the message box size to one that is more suited to an article section.", "type": "boolean", "aliases": [ "small" ]		},		"type": { "label": "Type", "description": "Message box notice category. See .", "example": " for a content issue msgbox", "type": "string" },		"class": { "label": "Class", "description": "Adds class to the template.", "type": "string", "suggested": true },		"bgcol": { "label": "Background color", "description": "Changes the background color.", "type": "string", "default": "#FCFCFC" },		"linecol": { "label": "Line color", "description": "Changes the line color.", "type": "string" },		"width": { "label": "Width", "description": "Changes the template width.", "type": "string", "default": "90%; 30em in mini mode" },		"float": { "label": "Alignment", "description": "Changes the template position.", "type": "string" },		"icon": { "label": "Icon", "description": "Adds an icon from Template:CommentSprite. Incompatible with the parameter and its derivatives.", "type": "string" },		"imagecss": { "label": "Image CSS customization", "description": "Further customization of an image on the message box with CSS.", "type": "string" },		"image": { "label": "Image", "description": "Adds an image icon to the template. Incompatible with the parameter.", "type": "wiki-file-name" },		"imagetextbefore": { "label": "Additional text", "description": "Adds a text before/above the image.", "type": "string" },		"imagetextafter": { "label": "Additional text", "description": "Adds a text after/below the image.", "type": "string" },		"imagesize": { "label": "Image size", "description": "Changes the image size if the parameter is set.", "type": "string", "default": "32px; 16px in mini mode" },		"title": { "label": "Title", "description": "Adds a title to the template.", "type": "string", "suggested": true },		"discuss": { "label": "Discuss button?", "description": "Adds a button named [Discuss] that links to the talk page of the page where the message box is used.", "type": "boolean" },		"discussPage": { "label": "Talk page link customization", "description": "Changes the [Discuss] button to link to a custom talk page.", "type": "wiki-page-name" },		"discussAnchor": { "label": "Talk page section specification", "description": "Makes the [Discuss] button to link to a specific section of the talk page.", "type": "string" },		"linkshere": { "label": "Links button?", "description": "Adds a button named [Links] that links to Special:WhatLinksHere which lists the page usage of the current page.", "type": "boolean" },		"text": { "label": "Text", "description": "Adds text to the template.", "type": "content", "suggested": true },		"css": { "label": "CSS customization", "description": "Further customization of the message box with CSS.", "type": "string" }	},	"description": "Message boxes are used to create most templates present on the wiki. The following table shows a description of the parameter usage of this template.", "format": "block" }

Types
Colors are used to indicate the type of message box: