Template:Box/doc
![]() | This is a documentation subpage for Template:Box. It contains usage information, categories, and other content that is not part of the original template page. |
![]() | This template uses TemplateStyles: |
This template adds an easy box with any content.
Parameter | Description | Type | Status | |
---|---|---|---|---|
content | 1 | The content of the box | Content | required |
header | header | The header of the box | Content | optional |
subheader | subheader | The subheader of the box | Content | optional |
description | description | A description | Content | optional |
image | image | An image displayed on the right of the box | File | optional |
image size | image-size | The width of the image in pixels. Makes sense only if the image is given
| Number | optional |
language code | lang | Code of the language the box content is written in. Specifying the language makes possible for screen readers and other assistive software to handle it correctly (e.g. read out in the right language)
| Line | suggested |
CSS class | class | CSS class for the box. Use it in combination with a TemplateStyles style sheet to style box. Use CSS moderately in order to keep all boxes created with this template consistent
| Line | optional |
border color | border-color border | Border color of the box. Do not use it unless absolutely necessary, in order to keep all boxes created with this template consistent
| Line | optional |
background color | background-color | Background color of the box. Do not use it unless absolutely necessary, in order to keep all boxes created with this template consistent
| Line | optional |
additional CSS | style | Additional CSS styles for the box. Use TemplateStyles instead if possible | Line | deprecated |
Examples
[edit]{{Box|This is a box.}}
This is a box. |
{{Box|This is a box with header and description.|header=Header|subheader=subheader|description=description|image=Example.svg}}
Header | ![]() | |
subheader | ||
description | This is a box with header, subheader and description. |