Template:DisplayBox: Difference between revisions

From ChoralWiki
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 (grey); other options described in code below>
|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:{{#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}}}|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}}}
|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:27, 10 December 2009

<displayed text>