Template:Infobox/row: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
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}}}
     |<!-- A centred bold header using the label field content by adding three hypens, "---", in the data field -->! colspan="2" style="text-align:center; font-weight:bold; {{{labelstyle|}}}" {{!}} {{{label}}}
     |{{#if:{{{data|}}}
     |{{#if:{{{data|}}}
           |{{#if:{{{label|}}}
           |{{#if:{{{label|}}}
                 |{{!}}{{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}}
                 |<!-- If data AND label field have content-->{{!}}{{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}}
                   {{!}}{{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
                   {{!}}{{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
                 |{{!}}colspan="2" {{#if:{{{datastyle|}}} | style="{{{datastyle}}}"}} {{!}} {{{data}}} }}
                 |<!--ONLY the data field has content,  the data will be spread across both columns-->{{!}}colspan="2" {{#if:{{{datastyle|}}} | style="{{{datastyle}}}"}} {{!}} {{{data}}} }}
           |}} }}
           |}} }}

Revision as of 15:23, 24 April 2009