Difference between revisions of "Template:Infobox/row"
({{{data}}} should be at the start of a line) |
(So lists don't interpret the </td> and </th> as being part of the last list item) |
||
Line 1: | Line 1: | ||
<noinclude><pre></noinclude>{{#if:{{{header|}}} | <noinclude><pre></noinclude>{{#if:{{{header|}}} | ||
− | |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}</th></tr> | + | |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}"> |
+ | {{{header}}} | ||
+ | </th></tr> | ||
|{{#if:{{{data|}}} | |{{#if:{{{data|}}} | ||
|<tr class="{{{rowclass|}}}">{{#if:{{{label|}}} | |<tr class="{{{rowclass|}}}">{{#if:{{{label|}}} | ||
− | |<th scope="row" style="text-align:left; {{{labelstyle|}}}">{{{label}}}</th> | + | |<th scope="row" style="text-align:left; {{{labelstyle|}}}"> |
+ | {{{label}}} | ||
+ | </th> | ||
<td class="{{{class|}}}" style="{{{datastyle|}}}"> | <td class="{{{class|}}}" style="{{{datastyle|}}}"> | ||
− | {{{data}}}</td> | + | {{{data}}} |
− | |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}">{{{data}}}</td> | + | </td> |
+ | |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}"> | ||
+ | {{{data}}} | ||
+ | </td> | ||
}}</tr> | }}</tr> | ||
}} | }} | ||
}}<noinclude></pre></noinclude> | }}<noinclude></pre></noinclude> |
Revision as of 23:30, 16 July 2013
</noinclude>{{#if:{{{header|}}} |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}"> {{{header}}} </th></tr> |{{#if:{{{data|}}} |<tr class="{{{rowclass|}}}">{{#if:{{{label|}}} |<th scope="row" style="text-align:left; {{{labelstyle|}}}"> {{{label}}} </th> <td class="{{{class|}}}" style="{{{datastyle|}}}"> {{{data}}} </td> |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}"> {{{data}}} </td> }}</tr> }} }}<noinclude>