Template:Box/doc

From Wikidata
Jump to navigation Jump to search

This template adds an easy box with any content.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
content1

The content of the box

Contentrequired
headerheader

The header of the box

Contentoptional
subheadersubheader

The subheader of the box

Contentoptional
descriptiondescription

A description

Contentoptional
imageimage

An image displayed on the right of the box

Fileoptional
image sizeimage-size

The width of the image in pixels. Makes sense only if the image is given

Default
50
Example
20
Numberoptional
language codelang

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)

Default
en
Example
fr
Linesuggested
CSS classclass

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

Example
myboxclass yetanotherclass
Lineoptional
border colorborder-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

Default
#999
Lineoptional
background colorbackground-color

Background color of the box. Do not use it unless absolutely necessary, in order to keep all boxes created with this template consistent

Default
white
Lineoptional
additional CSSstyle

Additional CSS styles for the box. Use TemplateStyles instead if possible

Linedeprecated

Examples

[edit]
{{Box|This is a box.}}


{{Box|This is a box with header and description.|header=Header|subheader=subheader|description=description|image=Example.svg}}