Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color box: Difference between revisions

Template page
m Formatting
m Add option to disable the default of the content of the box being in italics. Increase top/bottom margin to stop from being glued to other divs.
Line 1: Line 1:
<div style="
<div style="
margin:0 auto;  
margin: 0.2em auto;  
border: 1px solid {{{border|#888888}}};  
border: 2px solid {{{border|#888888}}};  
padding: 1em;  
padding: 0.8em;  
width: {{{width|auto}}};  
width: {{{width|auto}}};  
background-color: {{{color|black}}};  
background-color: {{{color|black}}};  
text-align: {{{align|left}}};  
text-align: {{{align|left}}};  
color: {{{text|white}}};  
color: {{{text|white}}};  
font-style: italic;  
{{#ifeq: {{{italics}}} | no
|
| font-style: italic;
}}
">{{{1|Example text}}}</div><noinclude>
">{{{1|Example text}}}</div><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>