Template:Infobox/Row: Difference between revisions

Want an adless experience? Log in or Create an account.
m
change label class to zdw-label to distinguish from bootstrap
(new infobox row)
m (change label class to zdw-label to distinguish from bootstrap)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<tr>{{#if: {{{1|}}}
<tr><td {{#if:{{{2|}}}||colspan="3"}} {{#ifexpr:{{{label|1}}}>=1|class="zdw-label"}}{{#if:{{#var:col1width}}|style="width: {{#var:col1width}};"}}>{{#tag:poem|{{{1}}}}}</td>{{#if: {{{2|}}}
| <td {{#if:{{{2|}}}||colspan="2"}}><div class="multicell"><div class="subcell {{#ifexpr:{{{label|1}}}>=1|label}}">{{#tag:poem|{{{1}}}}}</div></div></td>
| <td {{#if:{{{3|}}}||colspan="2"}} {{#ifexpr:{{{label|1}}}>=2|class="zdw-label"}} {{#if:{{#var:col2width}}|style="width: {{#var:col2width}};"}}>{{#tag:poem|{{{2|}}}}}</td>}}{{#if: {{{3|}}}
}}{{#if: {{{2|}}}
| <td {{#ifexpr:{{{label|1}}}>=3|class="zdw-label"}} {{#if:{{#var:col3width}}|style="width: {{#var:col3width}};"}}>{{#tag:poem|{{{3|}}}}}</td>
| <td {{#if:{{{1|}}}||colspan="2"}}><div class="multicell">{{#fornumargs:key|val
  | {{#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>}}}}
  }}</div></td>
}}</tr>
}}</tr>