Template:Color icon/doc

This template generates a shape filled with a specified color, together with a label of the color's name. (The label is included for accessibility reasons.) The template supports HTML color names and hexadecimal color codes.

Parameters
{ "description": "Generate a colored shape labeled with the color's name", "params": {

"1": { "label": "Color", "description": "The HTML color name or hexadecimal color code (the latter of which must start with #)", "required": true, "type": "string" }, "2": { "label": "Color Label", "description": "The name of the color, if this is different than the \"color\" parameter", "required": false, "type": "string" }, "border": { "label": "Border", "description": "The color of the border, or \"none\" if there should be no border; defaults to #666 (gray)", "required": false, "type": "string" }, "shape": { "label": "Shape", "description": "Either \"square\" or \"circle\"; defaults to \"circle\"", "type": "string" }

}}