Talk:Bulbasaur (Pokémon): Difference between revisions

→‎Correction: A solution...not without downsides, but still
(→‎Correction: A solution...not without downsides, but still)
Line 367: Line 367:
:::::Would making tutoring non-sortable lead to fixing the problem?  [[User:CycloneGU|CycloneGU]] ([[User talk:CycloneGU|talk]]) 20:37, 2 June 2015 (UTC)
:::::Would making tutoring non-sortable lead to fixing the problem?  [[User:CycloneGU|CycloneGU]] ([[User talk:CycloneGU|talk]]) 20:37, 2 June 2015 (UTC)
::::::Staff is aware and working on it. <small>[[User:Glik|glik]]</small><sup>[[User talk:Glik|glak]]</sup> 20:50, 2 June 2015 (UTC)
::::::Staff is aware and working on it. <small>[[User:Glik|glik]]</small><sup>[[User talk:Glik|glak]]</sup> 20:50, 2 June 2015 (UTC)
:::::::I've learned [http://bulbapedia.bulbagarden.net/w/index.php?title=Clothing&diff=2118422&oldid=2118420 before] that sorting doesn't play nicely with colspan. I figured out how to make the tutor table play nicely with everything else, and it has to do with the colspan in the header, but I can't offer any real explanation as to why it works or why it was broken.
:::::::In {{template|Learnlist/tutorh/6}}, replace: <code><nowiki>! colspan="4" | &nbsp;[[Pokémon games|<span style="color:#000;">Game</span>]]&nbsp;</nowiki></code>
:::::::with four lines of: <code><nowiki>! &nbsp;[[Pokémon games|<span style="color:#000;">Game</span>]]&nbsp;</nowiki></code>.
:::::::Obviously you can play with that solution a bit however you want, but that's the gist. You can easily test it by just going to a Pokemon page, editing the whole page (and if you preview at this point, you'll notice that other tables like the level-up moves don't sort right), and replace the {{template|Learnlist/tutorh/6}} call with its wiki code. (It doesn't matter that the colors don't match or that the last few columns are missing.) Then if you make the substitution I wrote above and preview the result, you'll notice that all tables now sort correctly.
:::::::...Alternatively, just don't make the tutor table sortable at all (i.e., remove <code><nowiki>class="sortable"</nowiki></code>). [[User:Tiddlywinks|Tiddlywinks]] ([[User talk:Tiddlywinks|talk]]) 11:41, 12 June 2015 (UTC)