Template:DisplayBox: Difference between revisions
Jump to navigation
Jump to search
m (sort key) |
(add marginL & marginR optional params (default to 30px)) |
||
Line 1: | Line 1: | ||
<!-- box for displaying material, optional parameters: | <!-- box for displaying material, optional parameters: | ||
|marginL=<margin-left, default=30px> | |||
|marginR=<margin-right, default=30px> | |||
|bdwidth=<borderwidth in pixels, default=1> | |bdwidth=<borderwidth in pixels, default=1> | ||
|bdcolor=<bordercolor, default=#3399ff> | |bdcolor=<bordercolor, default=#3399ff> | ||
Line 6: | Line 8: | ||
|text=<text to display, defaults to parameter 1 when no optional parameters are used | |text=<text to display, defaults to parameter 1 when no optional parameters are used | ||
--> | --> | ||
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border:{{{bdwidth|1}}}px solid {{{bdcolor|#3399ff}}}; padding: {{{padding|1em 1em 1em 1em}}}; background-color:{{switch|{{{bgcolor|grey}}}|case: grey=#d8d8d8|case: none=#ffffff|case: g=#d8eed8|case: r=#eed8d8|case: y=#eeeeb8|case: b=#d0d0e8|case: m=#e8d4ee|default={{{bgcolor}}}}};"> | <div style="margin: 0; margin-right: {{{marginR|30px}}}; margin-left: {{{marginL|30px}}}; border:{{{bdwidth|1}}}px solid {{{bdcolor|#3399ff}}}; padding: {{{padding|1em 1em 1em 1em}}}; background-color:{{switch|{{{bgcolor|grey}}}|case: grey=#d8d8d8|case: none=#ffffff|case: g=#d8eed8|case: r=#eed8d8|case: y=#eeeeb8|case: b=#d0d0e8|case: m=#e8d4ee|default={{{bgcolor}}}}};"> | ||
{{{text|{{{1|<displayed text>}}}}}} | {{{text|{{{1|<displayed text>}}}}}} | ||
</div><noinclude><br> | </div><noinclude><br> |
Revision as of 18:59, 7 December 2009
<displayed text>
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |