Template:KeitaBossPokemon: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 22: | Line 22: | ||
<includeonly> | <includeonly> | ||
{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{MegaPokemonArray}}}} | {{#ifeq:{{ucfirst:{{{Form|}}}}}|Mega|{{MegaPokemonArray}}|{{PokemonArray}}}} | ||
{{#vardefine:pname|{{ucfirst:{{{Name}}}}}}} | {{#vardefine:pname|{{ucfirst:{{{Name}}}}}}} | ||
{{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}} | {{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}} | ||
{{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}} | {{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}} | ||
{{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}} | {{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}} | ||
<div class="pokemon-card" style="border-color: #{{{{#var:type1}}_color_dark}};"> | |||
<div class="pokemon-image"> | |||
<div class=" | [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png]] | ||
<div class="pokemon- | </div> | ||
< | <div class="pokemon-info"> | ||
<h2 style="color: #{{{{#var:type1}}_color}};">{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}} {{#var:pname}}</h2> | |||
<div class="pokemon-type"> | |||
<span class="type-badge" style="background-color: #{{{{#var:type1}}_color}};">{{#var:type1}}</span> | |||
{{#if:{{#var:type2}}|<span class="type-badge" style="background-color: #{{{{#var:type2}}_color}};">{{#var:type2}}</span>}} | |||
</div> | </div> | ||
<div class="pokemon- | <div class="pokemon-details"> | ||
{{#if:{{{ | <p><strong>Nature:</strong> {{#if:{{{Nature|}}}|{{{Nature}}}|Random}}</p> | ||
<p><strong>Ability:</strong> {{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}</p> | |||
<p><strong>Item:</strong> {{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}</p> | |||
</div> | </div> | ||
</div> | </div> | ||
<div class="moves-section"> | |||
<div class=" | <button class="show-moves">Show Moves</button> | ||
< | <div class="moves-table-wrapper" style="display: none;"> | ||
<table class="moves-table"> | |||
<thead> | |||
<tr> | |||
<th>Move</th> | |||
<th>Type</th> | |||
<th>Category</th> | |||
<th>Base Power</th> | |||
<th>Accuracy</th> | |||
</tr> | |||
</thead> | |||
<tbody> | |||
{{{Moveset|}}} | |||
<div class="moves- | </tbody> | ||
<table class="moves-table | |||
<tr | |||
</ | |||
{{{Moveset|}}} | |||
</table> | </table> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 21:30, 8 March 2025
Example
This example also features the NPCMove template.
The first Pokemon in the lineup has a complete set of moves and a special form, while the second Pokemon doesn't.
{{BossNPCLineup| Boss=Professor Oak| Lineup= {{BossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset= {{NPCMove | Bolt Strike}}{{NPCMove | Stone Edge}}{{ NPCMove | Outrage}}{{NPCMove | Outrage}} }} {{BossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers }} }}
Result
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|