Template:Mbox

From Wikimedia Canada
Jump to navigation Jump to search

(en) This template is used to display an information box at the top of the page. Please limit the changes, because this template is used in multiple pages.
(fr) Ce modèle est utilisé pour afficher une boite d'information dans le haut des pages. Veuillez limiter les modifications, car ce modèle est utilisé dans plusieurs pages.

Usage[edit]

{{Mbox | This is a plain box}}

This is a plain box

{{Mbox | color=B22222 | border-color=B22222 | This is a box for information content}}

This is a box for information content

{{Mbox | color=F4C430 | bgcolor=FFFFCC | title=This a title for that box | This box has a title and it is personalised with the color 006600 for the large border and D9FFD9 for the background}}

This a title for that box
This box has a title and it is personalised with the color 006600 for the large border and D9FFD9 for the background

Description[edit]

  • title / titre
(en) Use this parameter to display a title in bold. Either title or titre will work.
(fr) Utiliser ce paramètre pour afficher un titre en gras. Soit titre ou title fonctionnera.
  • type
(en) The "type" parameter allows contributors to easily use a generic type of box. The values can be « policy », « attention » or « important ».
(fr) Le paramètre "type" permet aux contributeurs d'utiliser un type de boite générique. Les valeurs peuvent être « politique », « attention » ou « important ».
  • color
(en) Thick border color (left). Use a hexadecimal value.
(fr) Couleur de la bordure épaisse (gauche). Utiliser une valeur hexadécimale.
  • border-color
(en) Thin border color (3 other sides). Use a hexadecimal value.
(fr) Couleur de la bordure mince (3 autres côtés). Utiliser une valeur hexadécimale.
  • bgcolor
(en) Background color of the box. Use a hexadecimal value.
(fr) Couleur de fond de la boite. Utiliser une valeur hexadécimale.
  • text-color
(en) Text color (excluding a possible title). Use a hexadecimal value.
(fr) Couleur du texte (excluant un éventuel titre). Utiliser une valeur hexadécimale.
  • align
(en) Alignment of the box. Possible values are "left " or "right". (Default "center")
(fr) Alignement de la boîte. Les valeurs possibles sont « left » et « right ». (Défaut « center »)
  • width
(en) Width of the box. Values can be in percentage or in pixels. (Default "80%")
(fr) Largeur de la boîte. Les valeurs peuvent être en pourcentage ou en pixels. (Défaut « 80% »)