Template:Colored box/doc

This template was originally fr:Modèle:Boîte colorée; this version is from English Wikipedia (2024).

Usage and parameters
The title and content parameters are required.

Template Data
{ "params": { "title": { "label": "Title", "description": "Title of the box.", "example": "Selection", "type": "string", "required": true }, "content": { "label": "Content", "description": "Content of the box.", "example": "", "type": "content", "required": true }, "link": { "label": "Link", "description": "Wikipedia page title for editing the content.", "example": "Template:Colored box/Sample", "type": "wiki-page-name", "suggested": true }, "icon": { "label": "Icon", "description": "Name of an icon file.", "example": "Circle-icons-chat.svg", "type": "wiki-file-name" }, "title-color": { "label": "Title color", "description": "Hexadecimal color code of the title text.", "example": "#339966", "type": "string", "default": "#FFFFFF" }, "style": { "label": "Style", "description": "Additional CSS style for the container.", "type": "string" }, "link-color": { "label": "Link color", "description": "Hexadecimal color code of the 'Edit' link.", "example": "#339966", "type": "string", "default": "#999999" }, "background-title-color": { "label": "Title background color", "description": "Hexadecimal color code of the title bar background.", "example": "#447FF5", "type": "string", "default": "#339966", "suggested": true }, "background-content-color": { "label": "Content background color", "description": "Hexadecimal color code of the box content background.", "example": "#339966", "type": "string", "default": "#F8F9FA" }, "Link-text": { "description": "Default title: edit, can be changed", "default": "edit" }, "background-color": {}, "background-title-color-hover": { "label": "Title background color on hover", "description": "When hovering with the mouse, changes the background color of the title.", "default": "" }, "title-color-hover": {}, "flex": { "label": "Flex", "description": "Integration into the dynamic column/row grid. The first number indicates the proportion at which the box can expand, the second indicates the proportion at which it can shrink, the third indicates the minimum width in px/em of the box", "type": "string", "default": "0 1 auto" }, "center": { "label": "Center title", "description": "If specified, it allows centering the title." } }, "description": "The colored box template is designed for portal and project pages. It is inspired by the Wikidata homepage.", "paramOrder": [ "title", "content", "link", "background-title-color", "icon", "title-color", "style", "link-color", "background-content-color", "Link-text", "background-color", "background-title-color-hover", "title-color-hover", "flex", "center" ], "format": "block" }