Template:DisplayBox: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 6: Line 6:
|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=#d8d8d8; other options include:
|bgcolor=<backgroundcolor, default=#d8d8d8; other options include:
   grey=#ddddd
   grey=#dddddd
  char=#bbbbbb (charcoal)
   g  =#ddffdd (green)
   g  =#ddffdd (green)
   r  =#ffdddd (red)
   r  =#ffdddd (red)
Line 14: Line 15:
   o  =#ffeebb (orange)
   o  =#ffeebb (orange)
   none=#ffffff (white)
   none=#ffffff (white)
  w  =#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
Line 19: Line 21:
<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}}}|
<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: grey=#dddddd|
case: char=#bbbbbb|
case: none=#ffffff|
case: none=#ffffff|
case: g=#ddffdd|
case: g=#ddffdd|
Line 26: Line 29:
case: m=#e8d4ee|
case: m=#e8d4ee|
case: o=#ffeebb|
case: o=#ffeebb|
case: w=#ffffff|
default={{{bgcolor}}}}};">{{{text|{{{1|<displayed text>}}}}}}</div><noinclude><br>
default={{{bgcolor}}}}};">{{{text|{{{1|<displayed text>}}}}}}</div><noinclude><br>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 14:46, 30 September 2010

<displayed text>