User talk:Tiddlywinks/Pokémon Infobox/Abilities/alt

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

Comparing User:Tiddlywinks/Pokémon Infobox/Abilities/alt (on the left) and User:Tiddlywinks/Pokémon Infobox/Abilities (current code in {{Pokémon Infobox}}, seen on the right). The alt template uses 7 parser calls, compared to the current template's 17.

Overall, the alt template basically changes abilityn, with its myriad values, to abilitylayout, with a small number of more understandable values. The alt template's layout parameter takes values which have the form "x(+y)", where x is the number of cells in the first row and y is the number of cells in the second. (All possible values of x and y don't necessarily act differently, but I think that's made up for very well by just carrying a very plain meaning.) The alt template doesn't rely on abilitylayout to control which Abilities are shown like the current template relies on abilityn; instead, it basically just tries to show anything that's been set. If a lot of values are set and an inappropriate abilitylayout value is set, this could make things weird; but we shouldn't have inappropriate values, so hopefully it'll be alright. There's also a new/extra parameter for when abilitylayout=2+1: abilitycold/abilitycolm set a colspan value for the HA (abilityd) or Mega (abilitym) cells so that the appropriate one spans both cells that are above it. (As an option, this could also be handled with a parser function or two instead.)

Another goal of this is to hopefully just be more flexible as well. It's hard to test every possible permutation, but at the very least it doesn't lock us in to only the things strictly accounted for by abilityn.

This can also be set up very well beforehand so that updating the infobox template won't break things. (If desired, abilitylayout could be defaulted to 2, which is the most common format--accounting for 582 pages as of Gen VI--so that fewer pages will need changing.)

The one difference in outputs below is that N:d2 (only used for Meowstic) doesn't have a form label below the standard Abilities. I think it's alright like that. But it shouldn't be hard to adjust if necessary.

Examples

Below are all possible abilityn values in action on the right, with the same effect replicated in the alt template on the left.

N:1

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=1
|ability1=Adaptability
|ability2=Aerilate
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=1
|ability1=Adaptability
|ability2=Aerilate
}}


Adaptability or Aerilate Cacophony
Cacophony
Cacophony
Hidden Ability
Cacophony
Hidden Ability
Cacophony
Cacophony
Adaptability or Aerilate Cacophony
Cacophony

Hidden Ability

Hidden Ability



N:2

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
}}


Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony
Cacophony
Hidden Ability
Cacophony
Hidden Ability
Cacophony
form2
Cacophony
Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony

Hidden Ability

Hidden Ability

form2


N:3

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=1+2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
|ability3-1=Cacophony
|ability3-2=Cheek Pouch
|form3=form3
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=3
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
|ability3-1=Cacophony
|ability3-2=Cheek Pouch
|form3=form3
}}


Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony
form3
Cacophony
Hidden Ability
Cacophony
Hidden Ability
Cacophony
form2
Cacophony
form3
Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony or Cheek Pouch
form3

Hidden Ability

Hidden Ability

form2

form3


N:d

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2
|ability1=Adaptability
|ability2=Aerilate
|abilityd=Damp
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=d
|ability1=Adaptability
|ability2=Aerilate
|abilityd=Damp
}}


Adaptability or Aerilate Cacophony
Cacophony
Damp
Hidden Ability
Cacophony
Hidden Ability
Cacophony
Cacophony
Adaptability or Aerilate Cacophony
Cacophony
Damp
Hidden Ability

Hidden Ability



N:d2

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=1+2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|abilityd=Damp
|abilityd2=Dancer
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=d2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|abilityd=Damp
|abilityd2=Dancer
}}


Adaptability or Aerilate
Cacophony
Cacophony
Damp
Hidden Ability
Dancer
Hidden Ability
Cacophony
Cacophony
Adaptability or Aerilate
form1
Cacophony
Cacophony
Damp
Hidden Ability
Dancer
Hidden Ability



N:2d

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2+1
|abilitycold=2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
|abilityd=Damp
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=2d
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
|abilityd=Damp
}}


Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony
Damp
Hidden Ability
Cacophony
Hidden Ability
Cacophony
form2
Cacophony
Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony
Damp
Hidden Ability

Hidden Ability

form2


N:m

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|abilitym=Early Bird
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=m
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|abilitym=Early Bird
}}


Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
Cacophony
Hidden Ability
Cacophony
Hidden Ability
Early Bird
form2
Cacophony
Adaptability or Aerilate
form1
Cacophony
form2
Cacophony

Hidden Ability

Hidden Ability
Early Bird
form2


N:dm

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2+1
|abilitycolm=2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|abilityd=Damp
|abilitym=Early Bird
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=dm
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|abilityd=Damp
|abilitym=Early Bird
}}


Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
Damp
Hidden Ability
Cacophony
Hidden Ability
Early Bird
form2
Cacophony
Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
Damp
Hidden Ability

Hidden Ability
Early Bird
form2


N:dm2

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2+2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|form3=form3
|abilityd=Damp
|abilitym=Early Bird
|abilitym2=Effect Spore
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=dm2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|form3=form3
|abilityd=Damp
|abilitym=Early Bird
|abilitym2=Effect Spore
}}


Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
form3
Damp
Hidden Ability
Cacophony
Hidden Ability
Early Bird
form2
Effect Spore
form3
Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
form3
Damp
Hidden Ability

Hidden Ability
Early Bird
form2
Effect Spore
form3


N:m2

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=3
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|form3=form3
|abilitym=Early Bird
|abilitym2=Effect Spore
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=m2
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|form2=form2
|form3=form3
|abilitym=Early Bird
|abilitym2=Effect Spore
}}


Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
form3
Cacophony
Hidden Ability
Cacophony
Hidden Ability
Early Bird
form2
Effect Spore
form3
Adaptability or Aerilate
form1
Cacophony
form2
Cacophony
form3

Hidden Ability

Hidden Ability
Early Bird
form2
Effect Spore
form3


N:2m

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=7
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
|ability3-1=Cacophony
|ability3-2=Cheek Pouch
|form3=form3
|abilityd=Damp
|abilityd2=Dancer
|abilitydcaption=
|abilityd2caption=
|abilitym=Early Bird
|abilitym2=Effect Spore
}}
{{User:Tiddlywinks/Pokémon Infobox/Abilities
|abilityn=2m
|ability1=Adaptability
|ability2=Aerilate
|form1=form1
|ability2-1=Bad Dreams
|ability2-2=Battery
|form2=form2
|ability3-1=Cacophony
|ability3-2=Cheek Pouch
|form3=form3
|abilityd=Damp
|abilityd2=Dancer
|abilitydcaption=
|abilityd2caption=
|abilitym=Early Bird
|abilitym2=Effect Spore
}}


Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony
form3
Damp
Hidden Ability
Dancer
Hidden Ability
Early Bird
form2
Effect Spore
form3
Adaptability or Aerilate
form1
Bad Dreams or Battery
form2
Cacophony or Cheek Pouch
form3
Damp
Hidden Ability
Dancer
Hidden Ability
Early Bird
form2
Effect Spore
form3


Alolan Sandshrew

The current infobox does not support new Alola Forms like Sandshrew. Below is an example of how the alt template can support this.

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2+2
|ability1=Sand Veil
|abilityd=Sand Rush
|abilitydcaption=Sandshrew
|name=Sandshrew
|ability2-1=Snow Cloak
|abilityd2=Slush Rush
|abilityd2caption=Alolan Sandshrew
|form2=Alolan Sandshrew
}}


Sand Veil
Sandshrew
Snow Cloak
Alolan Sandshrew
Cacophony
Sand Rush
Sandshrew Hidden Ability
Slush Rush
Alolan Sandshrew Hidden Ability
Cacophony
Alolan Sandshrew
Cacophony


Lycanroc

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2+2
|ability1=Keen Eye
|ability2=Sand Rush
|abilityd=Steadfast
|abilitydcaption=Midday Form
|name=Lycanroc
|form1=Midday Form
|ability2-1=Keen Eye
|ability2-2=Vital Spirit
|abilityd2=No Guard
|abilityd2caption=Midnight Form
|form2=Midnight Form
}}


Keen Eye or Sand Rush
Midday Form
Keen Eye or Vital Spirit
Midnight Form
Cacophony
Steadfast
Midday Form Hidden Ability
No Guard
Midnight Form Hidden Ability
Cacophony
Midnight Form
Cacophony


Changed Abilities

{{User:Tiddlywinks/Pokémon Infobox/Abilities/alt
|abilitylayout=2
|ability1=Cursed Body
|name=Gengar
|abilitym=Shadow Tag
|form2=Mega Gengar
|abilityold=Levitate
|abilityoldcaption=Gengar Gen. I-VI
}}



Cursed Body
Gengar
Cacophony
Mega Gengar
Cacophony
Cacophony
Hidden Ability
Cacophony
Hidden Ability
Shadow Tag
Mega Gengar
Cacophony
Levitate
Gengar Gen. I-VI


Bonus - Pokedex

Golbat. (New on left, old on right.)

Pokédex
#042
Kanto
#038
Johto
#066
Hoenn
#029
Sinnoh
#062
Unova
Central
#146
Kalos
#069
Alola
Not in any regional Pokédex
Browser
R-059
Fiore
R-015
Almia
R-043/N-065
Oblivia
Not in any Browser
Pokédex
#042
Kanto
#038
Johto
#066
Hoenn
#029
Sinnoh
#062
Unova
Central
#146
Kalos
#000
Alola
Not in any regional Pokédex
Browser
R-059
Fiore
R-015
Almia
R-043/N-065
Oblivia
Not in any Browser