Template:DisplayBox: Difference between revisions
Jump to navigation
Jump to search
(test: for some reason it no longer respects line breaks inside text) |
(go back to {{switch}} template instead of {{#switch:}} parserfunction.) |
||
Line 5: | Line 5: | ||
|bdcolor=<bordercolor, default=#3399ff> | |bdcolor=<bordercolor, default=#3399ff> | ||
|padding=<padding, default=1em 1em 1em 1em (top, right, bottom, left)> | |padding=<padding, default=1em 1em 1em 1em (top, right, bottom, left)> | ||
|bgcolor=<backgroundcolor, default=#ddddd ( | |bgcolor=<backgroundcolor, default=#d8d8d8; other options include: | ||
grey=#ddddd | |||
g =#ddffdd (green) | |||
r =#ffdddd (red) | |||
y =#ffffbb (yellow) | |||
b =#ddddff (blue) | |||
m =#ddccff (magenta) | |||
o =#ffeebb (orange) | |||
none=#ffffff (white) | |||
> | |||
|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: {{{marginR|30px}}}; margin-left: {{{marginL|30px}}}; border:{{{bdwidth|1}}}px solid {{{bdcolor|#3399ff}}}; padding: {{{padding|1em 1em 1em 1em}}}; background-color:{{ | <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=#dddddd|case: none=#ffffff|case: g=#ddffdd|case: r=#ffdddd|case: y=#eeeeb8|case: b=#ddddff|case: m=#e8d4ee|case: o=#ffeebb|default={{{bgcolor}}}}};">{{{text|{{{1|<displayed text>}}}}}}</div><noinclude><br> | ||
{{{bgcolor|grey}}} | |||
|grey=#dddddd | |||
|none=#ffffff | |||
|g=#ddffdd | |||
|r=#ffdddd | |||
|y=# | |||
|b=#ddddff | |||
|m=# | |||
|o=#ffeebb | |||
| | |||
{{{text|{{{1|<displayed text>}}}}}} | |||
</div><noinclude><br> | |||
{{prot-temp}} | {{prot-temp}} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 18:27, 10 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. |