Template:Character Details/multicell: Difference between revisions
Jump to navigation
Jump to search
(Make number of cells depend on colspan instead of parameter presence) |
(Set cells to be equally-sized) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>Part of [[Template:Dual Character Details]] and [[Template:Three Character Details]].</noinclude><includeonly>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}|{{#expr:{{{colspan|1}}} >= 1|<td>{{{1}}}</td>}}{{#expr:{{{colspan|1}}} >= 2|<td>{{{2}}}</td>}}{{#expr:{{{colspan|1}}} >= 3|<td>{{{3}}}</td>}}|<td colspan="{{{colspan|1}}}">{{{span}}}}}</includeonly> | <noinclude>Part of [[Template:Dual Character Details]] and [[Template:Three Character Details]].</noinclude><includeonly>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}|{{#ifeq:{{#expr:{{{colspan|1}}} >= 1}}|1|<td style="width:{{#expr:80 / {{{colspan|1}}}}}%">{{#if:{{{1|}}}|{{{1}}}|{{{default|}}}}}</td>}}{{#ifeq:{{#expr:{{{colspan|1}}} >= 2}}|1|<td style="width:{{#expr:80 / {{{colspan|1}}}}}%">{{#if:{{{2|}}}|{{{2}}}|{{{default|}}}}}</td>}}{{#ifeq:{{#expr:{{{colspan|1}}} >= 3}}|1|<td style="width:{{#expr:80 / {{{colspan|1}}}}}%">{{#if:{{{3|}}}|{{{3}}}|{{{default|}}}}}</td>}}|<td colspan="{{{colspan|1}}}">{{#if:{{{span|}}}|{{{span}}}|{{{default|}}}}}</td> | ||
}}</includeonly> |