Template:KeitaNPCMove: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{1}}}}}}}}} | {{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{1}}}}}}}}} | ||
{{#if:{{{Type|}}}|{{#vardefine:mtype|{{{Type}}}}}|{{#vardefine:mtype|{{#arrayindex:movetype|{{#var:iteration}}}}}}}} | {{#if:{{{Type|}}}|{{#vardefine:mtype|{{{Type}}}}}|{{#vardefine:mtype|{{#arrayindex:movetype|{{#var:iteration}}}}}}}} | ||
{{#vardefine:category|{{#arrayindex:category|{{#var:iteration}}}}}} | |||
{{#vardefine:power|{{#arrayindex:power|{{#var:iteration}}}}}} | |||
{{#vardefine:accuracy|{{#arrayindex:accuracy|{{#var:iteration}}}}}} | |||
{{#vardefine:isSTAB|{{#if:{{#ifeq:{{#var:mtype}}|{{#var:type1}}|1|{{#if:{{#var:type2}}|{{#ifeq:{{#var:mtype}}|{{#var:type2}}|1|0}}|0}}}}|1|0}}}} | |||
{{#vardefine:isBroken|{{#arrayindex:broken|{{#var:iteration}}}}}} | |||
<tr> | |||
<td class="move-name {{#if:{{#var:isSTAB}}|bold}} {{#if:{{#var:isBroken}}|italic}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</td> | |||
<td | <td class="move-type"><span class="type-badge" style="background-color: #{{{{#var:mtype}}_color}};">{{#var:mtype}}</span></td> | ||
<td class="move-category">{{#var:category}}</td> | |||
<td class="move-power">{{#if:{{#var:power}}|{{#var:power}}|—}}</td> | |||
<td style=" | <td class="move-accuracy">{{#var:accuracy}}</td> | ||
<td | |||
<td | |||
</tr> | </tr> | ||
</includeonly> | </includeonly> |
Revision as of 21:30, 8 March 2025
KeitaNPCMove Template is the addon template that adds the Pokemon moves to a Pokemon in the lineup.
It's used in correspondence with KeitaBossPokemon Template and KeitaBossNPCLineup Template.
Parameters and arguments
- Move: Input the name of the Move (e.g Bolt Strike)
Example
Template example
{{KeitaNPCMove | Bolt Strike}} {{KeitaNPCMove | Stone Edge}} {{KeitaNPCMove | Outrage}} {{KeitaNPCMove | Dark Pulse}}
Example on a lineup
{{KeitaBossNPCLineup| Boss=Professor Rowan| Theme=Grass |Lineup= {{KeitaBossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset= {{KeitaNPCMove | Bolt Strike}} {{KeitaNPCMove | Stone Edge}} {{ KeitaNPCMove | Outrage}} }} {{KeitaBossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers | Moveset= {{KeitaNPCMove|Dark Void}} {{KeitaNPCMove|Dark Pulse}} }} }}
Result
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|