Template talk:Lop/ev

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search

Insert a new column?

Base exp in bw is different from before. Substy 19:27, 7 November 2010 (UTC)

I've since updated it and replaced the old Experience yields with the new ones. Hexagon Theory 05:29, 13 November 2010 (UTC)

Hihidaruma and Meloetta...

Their alternate sprites need to be added to the switch case in the template.

Including old base experience

When B/W came out in Japan, the old base experience data (for pre-Gen V) was overwritten and it's not been preserved anywhere. This should not be an acceptable state of affairs.

I'd like to ask a staff member to make the following changes to this template...

| style="background:#FFFFFF" | {{{3|0}}}

becomes...

{{#if: {{{oldexp|}}}|
{{!}} align="right" {{!}} {{{oldexp}}}|
{{!}} style="display:none" {{!}} 9999}}
| align="right" {{#if: {{{oldexp|}}}||colspan=2}} | {{{3|0}}}

(I would also note that the "background" style for the last cell should be entirely unnecessary, as it's already set the same on the row.)

At the same time, the List of Pokémon by effort value yield page will need to be updated to use the header below, either immediately before or after updating this template...

{| class="sortable roundy" style="margin:auto; background: #CCCCFF; border: 3px solid #BEBED1;"
|-
! [[National Pokédex|{{color|000|#}}]]
!  
! Pokémon
! style="font-size: 80%;" | Old Exp.{{tt|*|Gen I-IV}}
! style="font-size: 80%;" | Cur Exp.{{tt|*|Gen V+}}
! style="background:#{{hp color}}; {{roundytop|10px}}; font-size: 80%;" | HP
! style="background:#{{attack color}}; {{roundytop|10px}}; font-size: 80%;" | Attack
! style="background:#{{defense color}}; {{roundytop|10px}}; font-size: 80%;" | Defense
! style="background:#{{special attack color}}; {{roundytop|10px}}; font-size: 80%;" | Sp. Attack
! style="background:#{{special defense color}}; {{roundytop|10px}}; font-size: 80%;" | Sp. Defense
! style="background:#{{speed color}}; {{roundytop|10px}}; font-size: 80%;" | Speed
! style="font-size: 80%;" | Total EVs

Here's a mock up of what it'll look like and how it'll behave:

#   Pokémon Old Exp.* Cur Exp.* HP Attack Defense Sp. Attack Sp. Defense Speed Total EVs
001 001 Bulbasaur 64 64 0 0 0 1 0 0 1
002 002 Ivysaur 141 142 0 0 0 1 1 0 2
003 003 Venusaur 208 236 0 0 0 2 1 0 3
632 632 Durant 9999 169 0 0 2 0 0 0 2
633 633 Deino 9999 60 0 1 0 0 0 0 1
634 634 Zweilous 9999 147 0 2 0 0 0 0 2
635 635 Hydreigon 9999 270 0 0 0 3 0 0 3

One problem in this table is that sorting in descending order by "Old Exp." will put all the Gen V+ Pokemon at the top. But there's not really any good way to get around that. Either it happens ascending (which I don't think is preferable, since that's the first sort it'll do when you first click the column and that'd be very confusing), it happens descending, or you split the table at the border between Gen IV and V (and then can't sort all Pokemon together).

The other problem is how to the experience columns should be displayed; in particular, their alignment. If you remove the right alignments so that they're centered, those columns become very confusing when you sort either one, so that doesn't work at all. If you wanted to change it to left-aligned, you'd have to switch the position of the "Old Exp." and "Cur Exp." columns (including their data, which includes the "display:none" cell for "Old Exp.") or the wrong numbers would be lined up and could cause confusion. The main reason I have them in this order right now is just that Gen I-IV came before Gen V, so they should be listed before it... But there's also some argument for having the current data appear first and foremost.

FYI: The "display:none" cell is necessary to make the later columns sort correctly (try removing those cells from the table above in a preview of this page; essentially, the sort doesn't understand colspan, and the Xth cell in one row will always sort against the Xth cell in another row) and the "9999" for the text in that cell does a combination of things: if you left it empty, that column would default to sorting alphabetically, which produces weird sorts (like "612, 65, 700"; although this is fixable with a parameter on the column header), and it also puts the Gen V+ Pokemon at the bottom of the table when "Old Exp." is sorted ascending.

I think this is the best solution to how to list pre-Gen V base experience (give or take minor alterations to the code/table). My other ideas for solutions had greater problems than this one does, as far as I'm concerned, but I would be happy to discuss the pros and cons of alternatives if necessary.

Tiddlywinks (talk) 22:00, 26 November 2013 (UTC)

Oh yeah, I think it would also be possible to offset the text in the experience columns from the left or right borders, but I haven't actually tried to do that at the moment. Just an option to consider, perhaps, if you really don't like seeing the numbers right up against the edges. Tiddlywinks (talk) 22:07, 26 November 2013 (UTC)