Modèle:Divbox : Différence entre versions
(Source) |
|||
(4 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | <div class="boilerplate metadata" id="{{{2}}}" style="{{ | + | <div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2}}}"|}} style="{{divbox/style/{{{1}}}}};{{#if:{{{radius|}}}|{{border-radius|{{{radius}}}}}|}} padding: 1em;">{{center|<b>{{{2|}}}</b>}}{{{3|}}}</div> |
<noinclude> | <noinclude> | ||
==How to use== | ==How to use== | ||
− | <nowiki>{{divbox| | + | <nowiki>{{divbox|1=style|2=title|3=content|radius=}}</nowiki> |
==Source== | ==Source== | ||
http://en.wikipedia.org/wiki/Template:Divbox | http://en.wikipedia.org/wiki/Template:Divbox | ||
==Example== | ==Example== | ||
− | <nowiki>{{divbox| | + | <nowiki>{{divbox|yellow|Un example|Ceci est un exemple de comment ce modèle fonctionne.|radius=10px}}</nowiki> |
Writing this code will give you... | Writing this code will give you... | ||
− | {{divbox| | + | {{divbox|yellow|Un example|Ceci est un exemple de comment ce modèle fonctionne.|radius=10px}} |
==Available colors== | ==Available colors== | ||
− | + | ===Parameters=== | |
− | + | ;1 (Style) | |
− | + | :Mandatory. Use any of the following: | |
− | + | :{| | |
− | + | | {{divbox|amber ||amber }} | |
− | + | | {{divbox|black ||black }} | |
− | + | | {{divbox|bloodred ||bloodred }} | |
− | + | | {{divbox|blue ||blue }} | |
− | + | |- | |
− | + | | {{divbox|brown ||brown }} | |
− | + | | {{divbox|forest ||forest }} | |
− | + | | {{divbox|gold ||gold }} | |
− | + | | {{divbox|gray ||gray }} | |
− | + | |- | |
− | + | | {{divbox|green ||green }} | |
− | + | | {{divbox|navy ||navy }} | |
− | + | | {{divbox|none ||none }} | |
− | + | | {{divbox|orange ||orange }} | |
+ | |- | ||
+ | | {{divbox|plain ||plain }} | ||
+ | | {{divbox|purple ||purple }} | ||
+ | | {{divbox|lilac ||lilac }} | ||
+ | | {{divbox|red ||red }} | ||
+ | |- | ||
+ | | {{divbox|white ||white }} | ||
+ | | {{divbox|yellow ||yellow }} | ||
+ | | {{divbox|fawn ||fawn }} | ||
+ | | {{divbox|tt ||tt }} | ||
+ | |- | ||
+ | | {{divbox|simar ||simar }} | ||
+ | | {{divbox|greenv ||greenv }} | ||
+ | | {{divbox|grayh ||grayh }} | ||
+ | | {{divbox|email ||email }} | ||
+ | |- | ||
+ | | {{divbox|double ||double }} | ||
+ | | {{divbox|wordperfect ||wordperfect }} | ||
+ | | {{divbox|ivory ||ivory }} | ||
+ | | {{divbox|lavender ||lavender }} | ||
+ | |} | ||
+ | :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). | ||
+ | |||
</noinclude> | </noinclude> |
Version actuelle datée du 23 février 2015 à 15:21
How to use[modifier]
{{divbox|1=style|2=title|3=content|radius=}}
Source[modifier]
http://en.wikipedia.org/wiki/Template:Divbox
Example[modifier]
{{divbox|yellow|Un example|Ceci est un exemple de comment ce modèle fonctionne.|radius=10px}}
Writing this code will give you...
Available colors[modifier]
Parameters[modifier]
- 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).