Template talk:Pokémon/7: Difference between revisions

(→‎Code for Ability3: new section)
Line 22: Line 22:
* Implmentation test: [[User:TehPerson/Tests]]
* Implmentation test: [[User:TehPerson/Tests]]
[[User:TehPerson|TehPerson]] ([[User talk:TehPerson|talk]]) 14:42, 23 September 2017 (UTC)
[[User:TehPerson|TehPerson]] ([[User talk:TehPerson|talk]]) 14:42, 23 September 2017 (UTC)
== Code for Let's Go Pikachu and Eevee ==
Since Abilities and held items are not a mechanic in LGPE, I made a modified version of this template to suit it, which will update it immediately since most LGPE information already has a game flag.  If the game flag is set to "PE", which a lot of articles already have, then the ability and items field will be hidden.
Example:
'''game=USUM''':
{{User:TehPerson/Pokémon/7
|ndex=031
|pokemon=Nidoqueen
|gender=female
|game=USUM
|type1=Poison|type2=Ground
|ability=Poison Point
|ability2=Rivalry
|level=50
|held=Payapa Berry
|move1=Chip Away|move1type=Normal|move1cat=Physical
|move2=Swagger|move2type=Normal|move2cat=Status
|move3=Helping Hand|move3type=Normal|move3cat=Status
|move4=Flatter|move4type=Dark|move4cat=Status}}
'''game=PE''':
{{User:TehPerson/Pokémon/7
|ndex=031
|pokemon=Nidoqueen
|gender=female
|game=PE
|type1=Poison|type2=Ground
|ability=Poison Point
|ability2=Rivalry
|level=50
|held=Payapa Berry
|move1=Chip Away|move1type=Normal|move1cat=Physical
|move2=Swagger|move2type=Normal|move2cat=Status
|move3=Helping Hand|move3type=Normal|move3cat=Status
|move4=Flatter|move4type=Dark|move4cat=Status}}
It also works for adding in a third ability for SM/USUM Battle Tree sets. Most relevant articles already have an ability3 field set, all that needs to be done is for this template to be updated:
{{User:TehPerson/Pokémon/7
|ndex=031
|pokemon=Nidoqueen
|gender=female
|game=USUM
|type1=Poison|type2=Ground
|ability=Poison Point
|ability2=Rivalry
|ability3=Sheer Force
|level=50
|held=Payapa Berry
|move1=Chip Away|move1type=Normal|move1cat=Physical
|move2=Swagger|move2type=Normal|move2cat=Status
|move3=Helping Hand|move3type=Normal|move3cat=Status
|move4=Flatter|move4type=Dark|move4cat=Status}}
[[User:TehPerson|TehPerson]] ([[User talk:TehPerson|talk]]) 23:00, 13 December 2018 (UTC)