Template:Colored box/doc
This is a documentation subpage for Template:Colored box. It contains usage information, categories, and other content that is not part of the original template page. |
This template was imported from Modèle:Boîte colorée in the french-speaking Wikipedia
Usage and parameters
The |title=
and |content=
parameters are required.
Using Wikicode | Using Visual Editor |
---|---|
Click on "Edit source" and insert the following syntax
Basic parameters {{Colored box
| title =
| icon =
| link =
| content =
}}
Full parameter set {{Colored box
| background-content-color =
| background-title-color =
| style =
| icon =
| title =
| title-color =
| link =
| link-color =
| link-text =
| content =
}}
|
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" } </templatedata>
Example
{{Colored box|icon=Wikifunctions-logo-monochrome-white.svg|background-title-color=#36c|title=Wikifunctions|title-color=#fff|background-content-color=#eaf3ff|content={{Template:Colored box/Sample}}}}