Template:Character Details/multicell: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Make 1/2/3 take priority over span if both are specified, instead of the other way around)
(Make number of cells depend on colspan instead of parameter presence)
Line 1: Line 1:
<noinclude>Part of [[Template:Dual Character Details]] and [[Template:Three Character Details]].</noinclude><includeonly>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}|{{#if:{{{1|}}}|<td>{{{1}}}</td>}}{{#if:{{{2|}}}|<td>{{{2}}}</td>}}{{#if:{{{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|}}}|{{#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>

Revision as of 04:01, 3 May 2023