Template:Color swatch/doc

Usage
{	"params": { "1": {			"label": "Color", "description": "Color, as a CSS-compatible color.", "example": "Red can be specified as \"#FF0000\" (without quotes).", "type": "string", "required": true },		"2": {			"label": "Title", "description": "The main caption. Appears once, beneath the swatch. Adding a reference is recommended.", "example": "Blue ", "type": "line", "required": true },		"3": {			"label": "Float", "description": "Specifies the direction to float, if any: \"left\", \"right\" or \"center\". (Note that centering is not technically floating.)", "type": "string", "default": "Left" },		"4": {			"label": "Internal caption", "description": "Optional; appears in the swatch and below the title.", "type": "line" },		"5": {			"label": "Text color", "description": "The color of the text that is overlayed onto the swatch.", "example": "If the color displayed is black, set this to e.g. \"#FFFFFF\", white.", "type": "string", "default": "Black text." },		"style": { "label": "Custom CSS", "description": "Advanced. Custom CSS code to be applied to the outer element.", "type": "string" }	},	"description": "Creates a color swatch for use in articles.", "paramOrder": [ "1",		"2",		"3",		"style", "4",		"5"	] }

Samples
  creates: 

We strongly recommend adding a to the main title, e.g.:   creates: 

Optional parameters – floating left, and an internal caption:   creates: 

Change the internal caption's color with a fifth value:   creates: 