Template:Infobox/Row: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
Getting rid of multicell for IE compatibility and for general sanity.
(new infobox row)
(Getting rid of multicell for IE compatibility and for general sanity.)
Line 1: Line 1:
<tr>{{#if: {{{1|}}}
<tr>{{#if: {{{1|}}}
| <td {{#if:{{{2|}}}||colspan="2"}}><div class="multicell"><div class="subcell {{#ifexpr:{{{label|1}}}>=1|label}}">{{#tag:poem|{{{1}}}}}</div></div></td>
| <td {{#if:{{{2|}}}||colspan="3"}} {{#ifexpr:{{{label|1}}}>=1|class="label"}}>{{#tag:poem|{{{1}}}}}</td>
}}{{#if: {{{2|}}}
}}{{#if: {{{2|}}}
| <td {{#if:{{{1|}}}||colspan="2"}}><div class="multicell">{{#fornumargs:key|val
| <td {{#if:{{{1|}}}|{{#if:{{{3|}}}||colspan="2"}}|colspan="3"}} {{#ifexpr:{{{label|1}}}>=2|class="label"}} {{#if:{{#var:col2width}}|style="width: {{#var:col2width}};"}}>{{#tag:poem|{{{2|}}}}}</td>
  | {{#ifeq:{{#var:key}}|1||{{#if:{{#var:val}}|<div class="subcell {{#ifexpr:{{{label|1}}}>={{#var:key}}|label}}" {{#if:{{#var:col{{#var:key}}width}}|style="width: {{#var:col{{#var:key}}width}};"}}>{{#tag:poem|{{#var:val}}}}</div>}}}}
}}{{#if: {{{2|}}}
  }}</div></td>
| <td {{#ifexpr:{{{label|1}}}>=3|class="label"}} {{#if:{{#var:col3width}}|style="width: {{#var:col3width}};"}}>{{#tag:poem|{{{3|}}}}}</td>
}}</tr>
}}</tr>

Navigation menu