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

CerclesRestauratifs.org β

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="{{divstyle{{{1}}}}}"><center><b>{{{2}}}</b></center>{{{3}}}</div>
+
<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|color of box|Headtitle|Message}}</nowiki>
+
  <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|green|An example|This is only an example of how this template works.}}</nowiki>
+
  <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|green|An example|This is only an example of how this template works.}}
+
{{divbox|yellow|Un example|Ceci est un exemple de comment ce modèle fonctionne.|radius=10px}}
  
 
==Available colors==
 
==Available colors==
<div style="{{divstyleamber}}; width:5em; float:left; margin:.3em">amber</div>
+
===Parameters===
<div style="{{divstyleblack}}; width:5em; float:left; margin:.3em">black</div>
+
;1 (Style)
<div style="{{divstylebloodred}}; width:5em; float:left; margin:.3em">bloodred</div>
+
:Mandatory. Use any of the following:
<div style="{{divstyleblue}}; width:5em; float:left; margin:.3em">blue</div>
+
:{|
<div style="{{divstylebrown}}; width:5em; float:left; margin:.3em">brown</div>
+
| {{divbox|amber        ||amber       }}
<div style="{{divstyleforest}}; width:5em; float:left; margin:.3em">forest</div>
+
| {{divbox|black        ||black      }}
<div style="{{divstylegold}}; width:5em; float:left; margin:.3em">gold</div>
+
| {{divbox|bloodred    ||bloodred    }}
<div style="{{divstylegray}}; width:5em; float:left; margin:.3em">gray</div>
+
| {{divbox|blue        ||blue        }}
<div style="{{divstylegreen}}; width:5em; float:left; margin:.3em">green</div>
+
|-
<div style="{{divstylenavy}}; width:5em; float:left; margin:.3em">navy</div>
+
| {{divbox|brown        ||brown      }}
<div style="{{divstylenone}}; width:5em; float:left; margin:.3em">none</div>
+
| {{divbox|forest      ||forest      }}
<div style="{{divstyleorange}}; width:5em; float:left; margin:.3em">orange</div>
+
| {{divbox|gold        ||gold        }}
<div style="{{divstyleplain}}; width:5em; float:left; margin:.3em">plain</div>
+
| {{divbox|gray        ||gray        }}
<div style="{{divstylepurple}}; width:5em; float:left; margin:.3em">purple</div>
+
|-
<div style="{{divstylered}}; width:5em; float:left; margin:.3em">red</div>
+
| {{divbox|green        ||green      }}
<div style="{{divstylewhite}}; width:5em; float:left; margin:.3em">white</div>
+
| {{divbox|navy        ||navy        }}
<div style="{{divstyleyellow}}; width:5em; float:left; margin:.3em">yellow</div>
+
| {{divbox|none        ||none        }}
[[Category:Wikipedia formatting templates|Divbox]]
+
| {{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 useModifier

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

SourceModifier

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

ExampleModifier

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

Writing this code will give you...


Available colorsModifier

ParametersModifier

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).