Template:Movelist: Difference between revisions

Using display:none on cells causes serious issues when trying to sort subsequent columns. Just include the entire cell in the #if.
No edit summary
(Using display:none on cells causes serious issues when trying to sort subsequent columns. Just include the entire cell in the #if.)
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}}}}}
| style="background:#{{{{{2|Unknown}}} color}}" | {{typecolor|{{{2|Unknown}}}}}{{#if: {{{cat|}}}|
| style="{{#if: {{{cat|}}}||display:none;}} background:#{{{{{cat|Status}}} color}}" | [[{{{cat|Status}}} move|{{color|{{{{{cat|Status}}} textcolor}}|{{{cat|Status}}}}}]]
{{!}} style="background:#{{{{{cat|Status}}} color}}" {{!}} [[{{{cat|Status}}} move|{{color|{{{{{cat|Status}}} textcolor}}|{{{cat|Status}}}}}]]}}{{#if: {{{3|}}}|
| style="{{#if: {{{3|}}}||display:none;}} background:#FFF"| {{{3}}}<noinclude>
{{!}} style="background:#FFF" {{!}} {{{3}}}}}<noinclude>
|}</noinclude>
|}</noinclude>