Modèle:Divbox

De CerclesRestauratifs.org
Révision datée du 23 février 2015 à 15:21 par Dieudo (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

How to use

{{divbox|1=style|2=title|3=content|radius=}}

Source

http://en.wikipedia.org/wiki/Template:Divbox

Example

{{divbox|yellow|Un example|Ceci est un exemple de comment ce modèle fonctionne.|radius=10px}}

Writing this code will give you...


Available colors

Parameters

1 (Style)
Mandatory. Use any of the following:
You can forgo "1=", as long as this is the first unnamed parameter in the list.
2 (Title)
Optional. Plain text; appears strong and centered at top. You can forgo "2=", as long as this is the second unnamed parameter in the list.
3 (Content)
Mandatory. Any text, including markup, that is to form the body of the message. You can forgo "3=", as long as this is the third unnamed parameter in the list.
radius
Radius of the rounded edges, along with a valid unit, such as px, pt or em. The parameter works on styles that innately have both sharp or round edges, overriding their default edge roundness. You can forgo this entire parameter and its value but cannot forgo "radius=", which is case sensitive. However, like any named parameter, it may appear in any order (i.e. it does not need to be the last parameter).