Difference between revisions of "Template:Wbox"

From Organic Design wiki
(Start portal box 'pedia style)
 
(Add switch)
Line 1: Line 1:
 
{|width="{{{width|100}}}%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#f5fffa;"
 
{|width="{{{width|100}}}%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#f5fffa;"
! <h2 style="margin:0; background:{{{colour|#cef2e0}}}; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">{{{name}}}</h2>
+
{{#switch: {{{colour|green}}} |
 +
blue = ! <h2 style="margin:0; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">In the news</h2> |
 +
purple = ! <h2 style="margin:0; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em;">Today's featured picture</h2> |
 +
! <h2 style="margin:0; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">Today's featured article</h2> }}
 
|-
 
|-
 
|style="color:#000;"| {{{content}}}
 
|style="color:#000;"| {{{content}}}
 
|-
 
|-
 
|}
 
|}
 +
 +
<!--
 +
! <h2 style="margin:0; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">Today's featured article</h2>
 +
 +
! <h2 style="margin:0; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">In the news</h2>
 +
 +
! <h2 style="margin:0; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em;">Today's featured picture</h2>
 +
 +
Green = #cef2e0;
 +
Blue = #cedff2;
 +
 +
-->

Revision as of 00:23, 28 November 2007

{{{content}}}