Template:Infobox/row: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
(This page contains the logic which is repeated for each table row.)
 
imported>Chris Day
No edit summary
Line 1: Line 1:
{{#ifeq:{{{data|}}}|---|
{{#ifeq:{{{data|}}}|---
! colspan="2" style="text-align:center; font-weight:bold; {{{labelstyle|}}}" {{!}} {{{label}}}
    |! colspan="2" style="text-align:center; font-weight:bold; {{{labelstyle|}}}" {{!}} {{{label}}}
|<!--else-->
    |{{#if:{{{data|}}}
{{#if:{{{data|}}}|
          |{{#if:{{{label|}}}
{{#if:{{{label|}}}|
                | {{!}}{{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}}
! {{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}}
                  {{!}}{{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
{{!}} {{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
                |! colspan="2" {{#if:{{{datastyle|}}} | style="{{{datastyle}}}"}} {{!}} {{{data}}} }}
|<!--else-->
          |}} }}
{{!}} colspan="2" {{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
}}
}}
}}

Revision as of 15:09, 24 April 2009