Template:Begin box

From Wicri pool V1.31 Démo.Istex
Template documentation[view] [edit] [history] [purge]
logo import Wikipedia Template imported from Wikipedia in French, see:

This Template draws a box with a colored border. It must be associated with: {{End box}}.

Le premier paramètre (optionnel) peut être : bleu, vert, jaune, or, orange, violet, saumon, sable, vertmoyen, bleufoncé, rouge, écarlate, et par défaut, gris.


{{Begin box|blue}}
...
{{End box}}
{{Begin box|green}}
...
{{End box}}
{{Begin box|yellow}}
...
{{End box}}
{{Begin box|gold}}
...
{{End box}}
{{Begin box|orange}}
...
{{End box}}
{{Begin box|violet}}
...
{{End box}}
{{Begin box|salmon}}
...
{{End box}}
{{Begin box|tan}}
...
{{End box}}
{{Begin box|emerald}}
...
{{End box}}
 
{{Begin box|darkblue}}
...
{{End box}}
{{Begin box|red}}
...
{{End box}}
{{Begin box|scarlet}}
...
{{End box}}
{{Begin box|transp}}
...
{{End box}}
{{Begin box}}
...
{{End box}}

D’autre part, la couleur du fond, par défaut « transparent », peut être changée en utilisant l’argument fond=couleur (couleur en anglais). Exemple :

{{Begin box|violet|back=lightblue}}
...
{{End box}}
{{Begin box|darkblue|back=yellow}}
...
{{End box}}
{{Begin box|red|back=#CCFFFF}}
...
{{End box}}
{{Begin box|transp|back=transparent}}
...
{{End box}}

De plus, la largeur, par défaut 100%, peut être changée en utilisant l’argument width=largeurpx ou width=largeur%. Exemple :

{{Begin box|violet|back=lightblue|width=400px}}
...
{{End box}}
{{Begin box|darkblue|back=yellow|width=50%}}
...
{{End box}}

Begin box