Template:Infobox/row: Difference between revisions
Jump to navigation
Jump to search
imported>Chris Day No edit summary |
imported>Caesar Schinas (Correcting incorrect vertical bars.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{data|}}}|--- | <includeonly>{{#ifeq:{{{data|}}}|---| <!-- If the data field contains three hyphens, "---", then show a full-width header... --> | ||
| <!-- 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}}} | ||
|<!-- ...else... --> | |<!-- ...else... --> | ||
{{#if:{{{data|}}} | {{#if:{{{data|}}}| | ||
{{#if:{{{label|}}}| <!-- ...if the data field AND the label field are both set, show both... --> | |||
! {{#if:{{{labelstyle|}}} | style="{{{labelstyle}}}" {{!}} }} {{{label}}} | |||
{{!}} {{#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> | </includeonly><noinclude> |
Revision as of 07:02, 25 April 2009
This page is required for Template:Infobox to function.
This page contains the logic which is repeated for every row in the infobox, and is included once for each row.