Difference between revisions of "Template:Wbox"

From Organic Design wiki
(Add if statement for content variable)
m
Line 2: Line 2:
 
! <h2 style="margin:0; background:{{#switch: {{{colour|purple}}}|green=#cef2e0|blue=#cedff2|#ddcef2}}; font-size:120%; font-weight:bold; border:1px solid {{#switch: {{{colour|purple}}}|green=a3bfb1|#afa3bf}}; text-align:left; color:#000; padding:0.2em 0.4em;">{{#if: {{{content|}}} | {{{name}}} | [[{{{name}}}]]}}</h2>
 
! <h2 style="margin:0; background:{{#switch: {{{colour|purple}}}|green=#cef2e0|blue=#cedff2|#ddcef2}}; font-size:120%; font-weight:bold; border:1px solid {{#switch: {{{colour|purple}}}|green=a3bfb1|#afa3bf}}; text-align:left; color:#000; padding:0.2em 0.4em;">{{#if: {{{content|}}} | {{{name}}} | [[{{{name}}}]]}}</h2>
 
|-
 
|-
|style="color:#000;"| {{#if: {{{content|}}} | {{ :{{{content}}} }} | {{{content}}}}}
+
|style="color:#000;"| {{#if: {{{content|}}} | {{{content}}} | {{ {{{name}}} }}
 
|-
 
|-
 
|}
 
|}

Revision as of 01:13, 28 November 2007

[[{{{name}}}]]

{{#if: | {{{content}}} | {{ {{{name}}} }}