Template:Eggcyc: Difference between revisions

forget it. This is more complicated to do with merged cells than it's worth. I think I found a way, but it would require JavaScript to detect string widths, or images as a replacement for text, as well as nested tables galore.
(please work this time. I've had enough of playing with sort)
(forget it. This is more complicated to do with merged cells than it's worth. I think I found a way, but it would require JavaScript to detect string widths, or images as a replacement for text, as well as nested tables galore.)
Line 4: Line 4:
| {{MS|{{{1|000}}}|{{{2|Missingno.}}} (Pokémon)}}
| {{MS|{{{1|000}}}|{{{2|Missingno.}}} (Pokémon)}}
| {{p|{{{2|Missingno.}}}}}
| {{p|{{{2|Missingno.}}}}}
| colspan="{{#if: {{{4|}}}|1|2}}" | {{egg|{{{3|Undiscovered}}}}}
| {{egg|{{{3|Undiscovered}}}}}
{{#if: {{{4|}}}|{{!}} {{egg|{{{4|Undiscovered}}}}}}}
| {{#if: {{{4|}}}|{{egg|{{{4|Undiscovered}}}}}|—}}
| <span style="display:none" class="sortkey">{{padleft:{{{5}}}|3}}</span><span class="sorttext">{{{5|1}}}</span>
| <span style="display:none" class="sortkey">{{padleft:{{{5}}}|3}}</span><span class="sorttext">{{{5|1}}}</span>
| <span style="display:none" class="sortkey">{{padleft:{{#expr: 255 * {{{5|1}}}}}|5}}</span><span class="sorttext {{#ifexpr:{{{1|000}}}<252|explain" title="{{#expr:256 * {{{5|1}}}}} in Generation II"|"}}>{{#expr: 255 * {{{5|1}}}}}</span><noinclude>
| <span style="display:none" class="sortkey">{{padleft:{{#expr: 255 * {{{5|1}}}}}|5}}</span><span class="sorttext {{#ifexpr:{{{1|000}}}<252|explain" title="{{#expr:256 * {{{5|1}}}}} in Generation II"|"}}>{{#expr: 255 * {{{5|1}}}}}</span><noinclude>
|}[[Category:List of Pokémon templates]]</noinclude>
|}[[Category:List of Pokémon templates]]</noinclude>