Template:Infobox/row: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Caesar Schinas
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq:{{{data|}}}|---
<includeonly>{{#ifeq:{{{data|}}}|---| <!-- If the data field contains three hyphens, "---", then show a full-width header... -->
    |! colspan="2" style="text-align:center; font-weight:bold; {{{labelstyle|}}}" {{!}} {{{label}}}
! colspan="2" style="text-align:center; font-weight:bold; {{{labelstyle|}}}" {{!}} {{{label}}}
    |{{#if:{{{data|}}}
|<!-- ...else... -->
          |{{#if:{{{label|}}}
{{#if:{{{data|}}}|
                | {{!}}{{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}}
{{#if:{{{label|}}}| <!-- ...if the data field AND the label field are both set, show both... -->
                  {{!}}{{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
! {{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}}
                |! colspan="2" {{#if:{{{datastyle|}}} | style="{{{datastyle}}}"}} {{!}} {{{data}}} }}
{{!}} {{#if:{{{datastyle|}}} | style="{{{datastyle}}}" {{!}} }} {{{data}}}
          |}} }}
|<!-- ...else, if just the data field is set, show it full-width... -->
{{!}} colspan="2" {{#if:{{{datastyle|}}} | style="{{{datastyle}}}" }} {{!}} {{{data}}}
}}
}}<!-- ...if no data, no row...  -->
}}
</includeonly><noinclude>
'''This template uses complicated syntax and is easy to break. Please do not edit it unless you are very familiar with MediaWiki template code.'''
 
This template is required for [[Template:Infobox]] to function.<br />
This template contains the logic which is repeated for every row in the infobox, and is included once for each row.
</noinclude>

Latest revision as of 02:42, 4 May 2009

This template uses complicated syntax and is easy to break. Please do not edit it unless you are very familiar with MediaWiki template code.

This template is required for Template:Infobox to function.
This template contains the logic which is repeated for every row in the infobox, and is included once for each row.