Les témoins (cookies) nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation des témoins. Plus d’informations

Modifications

Aller à : navigation, rechercher

Modèle:Divbox

846 octets ajoutés, 23 février 2015 à 15:21
aucun résumé de modification
<div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2}}}" |}} style="{{divstyledivbox/style/{{{1}}}}};{{#if:{{{radius|}}}|{{border-radius|{{{radius}}}}}|}} padding: 1em;"><{{center>|<b>{{{2|}}}</b></center>}}{{{3|}}}</div>
<noinclude>
==How to use==
<nowiki>{{divbox|color of box1=style|Headtitle2=title|Message3=content|radius=}}</nowiki>
==Source==
http://en.wikipedia.org/wiki/Template:Divbox
==Example==
<nowiki>{{divbox|greenyellow|An Un example|This is only an example of how this template worksCeci est un exemple de comment ce modèle fonctionne.|radius=10px}}</nowiki>
Writing this code will give you...
{{divbox|greenyellow|An Un example|This is only an example of how this template worksCeci est un exemple de comment ce modèle fonctionne.|radius=10px}}
==Available colors==
<div style="{{divstyleamber}}==Parameters===; width1 (Style):5em; floatMandatory. Use any of the following:left; margin:.3em">{|| {{divbox|amber ||amber</div> }}<div style="| {{divstyleblackdivbox|black ||black }}; width:5em; float:left; margin:.3em">black</div><div style="| {{divstylebloodreddivbox|bloodred ||bloodred }}; width:5em; float:left; margin:.3em">bloodred</div><div style="| {{divstylebluedivbox|blue ||blue }}; width:5em; float:left; margin:.3em">blue</div><div style="|-| {{divstylebrowndivbox|brown ||brown }}; width:5em; float:left; margin:.3em">brown</div><div style="| {{divstyleforestdivbox|forest ||forest }}; width:5em; float:left; margin:.3em">forest</div><div style="| {{divstylegolddivbox|gold ||gold }}; width:5em; float:left; margin:.3em">gold</div><div style="| {{divstylegraydivbox|gray ||gray }}; width:5em; float:left; margin:.3em">gray</div><div style="|-| {{divstylegreendivbox|green ||green }}; width:5em; float:left; margin:.3em">green</div><div style="| {{divstylenavydivbox|navy ||navy }}; width:5em; float:left; margin:.3em">navy</div><div style="| {{divstylenonedivbox|none ||none }}; width:5em; float:left; margin:.3em">none</div><div style="| {{divstyleorangedivbox|orange ||orange }}; width:5em; float:left; margin:.3em">orange</div><div style="|-| {{divstyleplaindivbox|plain ||plain }}; width:5em; float:left; margin:.3em">plain</div><div style="| {{divstylepurpledivbox|purple ||purple }}; width:5em; float:left; margin:.3em">purple</div><div style="| {{divstylereddivbox|lilac ||lilac }}; width:5em; float:left; margin:.3em">| {{divbox|red ||red</div> }}<div style="|-| {{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 }}| {{divstylewhitedivbox|lavender ||lavender }}; width|}:5emYou can forgo "1=", as long as this is the first unnamed parameter in the list.; float2 (Title):leftOptional. Plain text; margin:appears '''strong''' and centered at top.3emYou can forgo ">white</div><div style2="{{divstyleyellow}}, as long as this is the second unnamed parameter in the list.; width3 (Content):5emMandatory. 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.; float:left; marginradius: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.3emYou can forgo this entire parameter and its value but cannot forgo ">yellow</div>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>

Menu de navigation