Template talk:Trainerentry: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Line 9: Line 9:
{{trainerfooter}}
{{trainerfooter}}
I noticed this on [[Route_212#North_(clear)_area]], but the issue could arise in many other places.  How should we resolve it?  Note that some trainers' Pokémon may level up more than once, and to different levels in different games.  For example, this Jeremy guy goes from 19 to 40 to 60 in DP, but levels up differently in Platinum, ending up around 55 or something (don't have the cartridge with me to check).&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 17:35, 9 January 2009 (UTC)
I noticed this on [[Route_212#North_(clear)_area]], but the issue could arise in many other places.  How should we resolve it?  Note that some trainers' Pokémon may level up more than once, and to different levels in different games.  For example, this Jeremy guy goes from 19 to 40 to 60 in DP, but levels up differently in Platinum, ending up around 55 or something (don't have the cartridge with me to check).&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 17:35, 9 January 2009 (UTC)
:<b><big>T</big></b>he problem is simply because the trainerexp template uses the level parameter as a number in its calculations, and of course once you put text in, in this case the tt template was used, which uses span tags, then the resulting errors will occur as the text cannot be recognised as numerals thus screwing up the calculation. The only way to avoid this is if comments on rematch battles or anything added to the level parameter are not included. Besides, these Trainer templates should be used to show initial encounters only.
:If rematch battle information needs to be included more often, I'll ammend it so comments can be included harmlessly. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>23:34, 9 January 2009 (UTC)</small></i>

Revision as of 23:34, 9 January 2009

What about trainers that may be battled either in single or in double battles?Piotr mil 15:41, 12 September 2008 (UTC)

Expression error: Unrecognised word "span"

The new trainer exp template is causing some problems with parsing when the level is specified as something like 19{{tt|*|Lv.60 in rematch battles}}, which can result in something like:

Trainer Pokémon
Gentleman Jeremy
Gentleman Jeremy
Reward: $3800*
Chatot Chatot Lv.19*
No item
Trainers with a Vs. Seeker by their names, when alerted for a rematch using the item, may use higher-level Pokémon.


I noticed this on Route_212#North_(clear)_area, but the issue could arise in many other places. How should we resolve it? Note that some trainers' Pokémon may level up more than once, and to different levels in different games. For example, this Jeremy guy goes from 19 to 40 to 60 in DP, but levels up differently in Platinum, ending up around 55 or something (don't have the cartridge with me to check). — Laoris (Blah) 17:35, 9 January 2009 (UTC)

The problem is simply because the trainerexp template uses the level parameter as a number in its calculations, and of course once you put text in, in this case the tt template was used, which uses span tags, then the resulting errors will occur as the text cannot be recognised as numerals thus screwing up the calculation. The only way to avoid this is if comments on rematch battles or anything added to the level parameter are not included. Besides, these Trainer templates should be used to show initial encounters only.
If rematch battle information needs to be included more often, I'll ammend it so comments can be included harmlessly.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 23:34, 9 January 2009 (UTC)