Template:Movelist: Difference between revisions

Looks like it's necessary to do it this way to avoid both sorting issues and excess line breaks, while also not breaking the cell background colors. Still not ideal though.
(Using display:none on cells causes serious issues when trying to sort subsequent columns. Just include the entire cell in the #if.)
(Looks like it's necessary to do it this way to avoid both sorting issues and excess line breaks, while also not breaking the cell background colors. Still not ideal though.)
Line 3: Line 3:
</noinclude>|- style="text-align:center"
</noinclude>|- style="text-align:center"
| style="text-align:left" | {{mcolor|{{{1|Struggle}}}|000000}}{{#if:{{{note|}}}|{{tt|*|{{{note}}}}}|}}
| style="text-align:left" | {{mcolor|{{{1|Struggle}}}|000000}}{{#if:{{{note|}}}|{{tt|*|{{{note}}}}}|}}
| style="background:#{{{{{2|Unknown}}} color}}" | {{typecolor|{{{2|Unknown}}}}}{{#if: {{{cat|}}}|
| style="background:#{{{{{2|Unknown}}} color}}" | {{typecolor|{{{2|Unknown}}}}}
{{!}} style="background:#{{{{{cat|Status}}} color}}" {{!}} [[{{{cat|Status}}} move|{{color|{{{{{cat|Status}}} textcolor}}|{{{cat|Status}}}}}]]}}{{#if: {{{3|}}}|
{{#if: {{{cat|}}}|{{!}} style="background:#{{{{{cat|Status}}} color}}" {{!}} [[{{{cat|Status}}} move|{{color|{{{{{cat|Status}}} textcolor}}|{{{cat|Status}}}}}]]}}
{{!}} style="background:#FFF" {{!}} {{{3}}}}}<noinclude>
| style="{{#if: {{{3|}}}||display:none;}} background:#FFF" | {{{3}}}<noinclude>
|}</noinclude>
|}</noinclude>