Template:DisplayBox: Difference between revisions
Jump to navigation
Jump to search
m (more inline documentation) |
(convert to #switch: parserfunction, add more colors) |
||
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=# | |bgcolor=<backgroundcolor, default=#ddddd (grey); other options described in code below> | ||
> | |||
|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:{{switch | <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}}} | |||
|gray | |||
|grey=#dddddd | |||
|dkgray | |||
|dkgrey=#bbbbbb | |||
|white | |||
|w | |||
|wh | |||
|none=#ffffff | |||
|offwhite=#ffffee | |||
|green | |||
|g=#ddffdd | |||
|brgreen=#99ff99 | |||
|red | |||
|r=#ffdddd | |||
|brred=#ff9999 | |||
|yellow | |||
|y=#ffffbb | |||
|bryellow=#ffff99 | |||
|blue | |||
|b=#ddddff | |||
|brblue=#9999ff | |||
|magenta | |||
|m=#ddccff | |||
|brmagenta=#cc99ff | |||
|orange | |||
|o=#ffeebb | |||
|brorange=#ffcc99 | |||
|{{bgcolor}}}};">{{{text|{{{1|<displayed text>}}}}}}</div><noinclude><br> | |||
{{prot-temp}} | {{prot-temp}} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 18:00, 8 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. |