Difference between revisions of "Template:Wbox"

From Organic Design wiki
(Fix outer box colours)
m
Line 1: Line 1:
 
{| style="border-spacing:8px; margin:-8px -8px;"
 
{| style="border-spacing:8px; margin:-8px -8px;"
 
{{#switch: {{{colour|purple}}} |
 
{{#switch: {{{colour|purple}}} |
green={{!}}class="MainPageBG" style="width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;"{{!}} |
+
green={{!}}class="MainPageBG" style="width:{{{width|100}}}%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;"{{!}} |
blue={{!}}class="MainPageBG" style="width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top"{{!}}|
+
blue={{!}}class="MainPageBG" style="width:{{{width|100}}}%; border:1px solid #cedff2; background:#f5faff; vertical-align:top"{{!}}|
purple={{!}}class="MainPageBG" style="width:50%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;"{{!}}
+
purple={{!}}class="MainPageBG" style="width:{{{width|100}}}%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;"{{!}}
 
}}
 
}}
 
{|width="{{{width|100}}}%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:{#switch: {{{colour|purple}}}|green=#f5fffa;|#faf5ff; color:#000}};"
 
{|width="{{{width|100}}}%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:{#switch: {{{colour|purple}}}|green=#f5fffa;|#faf5ff; color:#000}};"

Revision as of 09:58, 29 November 2007

[[{{{name}}}]]

{{:{{{name}}}}}

Usage

  • name = article name, name used in box, if {{{contents}}} is omitted, then the name is a link, and {{{name}}} is transcluded under the box
  • contents = optional, if supplied the wikitext is placed under the box
  • colour = green|blue|purple (default)