Modèle:Box/Documentation

Une page de Wikiquote, le recueil des citations libres.
Sauter à la navigation Sauter à la recherche


This template adds an easy box with any content.

Paramètres du modèle

La mise en forme sur une seule ligne est préférée pour ce modèle.

ParamètreDescriptionTypeStatut
content1

The content of the box

Contenuobligatoire
headerheader

The header of the box

Contenufacultatif
subheadersubheader

The subheader of the box

Contenufacultatif
descriptiondescription

A description

Contenufacultatif
imageimage

An image displayed on the right of the box

Fichierfacultatif
image sizeimage-size

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

Par défaut
50
Exemple
20
Nombrefacultatif
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)

Par défaut
en
Exemple
fr
Lignesuggéré
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

Exemple
myboxclass yetanotherclass
Lignefacultatif
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

Par défaut
#999
Lignefacultatif
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

Par défaut
white
Lignefacultatif
additional CSSstyle

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

Ligneobsolète

Examples[modifier]

{{Box|This is a box.}}
This is a box.


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