User:Locke/Sandbox/Template2: Difference between revisions

Want an adless experience? Log in or Create an account.
fixed 3-column row with no multicells
No edit summary
(fixed 3-column row with no multicells)
Line 1: Line 1:
<div class="multicell">{{#fornumargs:key|val
<tr>{{#if: {{{1|}}}
| <div class="subcell">{{#tag:poem|{{#var:val}}}}</div>
| <{{#ifexpr:{{{label|1}}}>=1|th class="label"|td}} {{#if:{{{2|}}}{{{3|}}}|{{#if:{{{2|}}}||colspan="2"}}|colspan="3"}}>{{#tag:poem|{{{1}}}</{{#ifexpr:{{{label|1}}}>=1|th|td}}>
}}</div>
}}{{#if: {{{2|}}}
| <{{#ifexpr:{{{label|1}}}>=2|th class="label"|td}} {{#if:{{{3|}}}||colspan="2"}}>{{#tag:poem|{{{2}}}</{{#ifexpr:{{{label|1}}}>=2|th|td}}>
}}{{#if: {{{3|}}}
| <{{#ifexpr:{{{label|1}}}>=3|th class="label"|td}}>{{#tag:poem|{{{3}}}</{{#ifexpr{{{label|1}}}>=3|th|td}}>
}}</tr>