Template:KeitaNPCMove: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
 
(7 intermediate revisions by the same user not shown)
Line 24: Line 24:


{{KeitaBossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers | Moveset=
{{KeitaBossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers | Moveset=
{{KeitaNPCMove|Dark Void}} {{KeitaNPCMove|Dark Pulse}}  
{{KeitaNPCMove|Dark Void}} {{KeitaNPCMove|Dark Pulse}}
}}
}}
}}</nowiki>
}}</nowiki>
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}}}}}}}}
 
<tr class="keita-move-row" style="background-color:#FFFFFF;">
<tr style="background-color:#FFFFFF; transition: background-color 0.2s;">
   <td style="padding: 3px;"><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#var:type1}} | {{#var:mtype}} | font-weight: bold; | {{#ifeq: {{#var:type2}} | {{#var:mtype}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
   <td style="padding: 5px; border-bottom: 1px solid #eee;">
   <td style="background-color: #{{{{#var:mtype}}_color}}; border: 2px solid #{{{{#var:mtype}}_color_dark}}; padding: 3px;">[[{{#var:mtype}}_(type)|<span style="color:#FFFFFF;">{{#var:mtype}}</span>]]</td>
    <span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#var:type1}} | {{#var:mtype}} | font-weight: bold; | {{#ifeq: {{#var:type2}} | {{#var:mtype}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">
   <td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:category|{{#var:iteration}}}}_color_dark}}; padding: 3px;">[[{{#arrayindex:category|{{#var:iteration}}}} moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
      [[{{#arrayindex:name|{{#var:iteration}}}}]]
   <td style="padding: 3px;">{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
    </span>
   <td style="padding: 3px;">{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
  </td>
   <td style="padding: 5px; background-color: #{{{{#var:mtype}}_color}}; border: 1px solid #{{{{#var:mtype}}_color_dark}}; border-radius: 4px;">
    [[{{#var:mtype}}_(type)|<span style="color:#FFFFFF; text-shadow: 0 1px 1px rgba(0,0,0,0.3);">{{#var:mtype}}</span>]]
  </td>
   <td style="padding: 5px; background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}}; border: 1px solid #{{{{#arrayindex:category|{{#var:iteration}}}}_color_dark}}; border-radius: 4px;">
    [[{{#arrayindex:category|{{#var:iteration}}}} moves|<span style="color:#FFFFFF; text-shadow: 0 1px 1px rgba(0,0,0,0.3);">{{#arrayindex:category|{{#var:iteration}}}}</span>]]
  </td>
   <td style="padding: 5px; border-bottom: 1px solid #eee;">{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
   <td style="padding: 5px; border-bottom: 1px solid #eee;">{{#arrayindex:accuracy|{{#var:iteration}}}}</td>
</tr>
</tr>
</includeonly>
</includeonly>

Latest revision as of 20:24, 31 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



         Professor Rowan's Lineup
max-width=200px
max-width=200px
               max-width=150px
                 Christmas Zekrom
Nature Ability Item
Adamant Teravolt Leftovers
                         Show Moves
Move Type Category Base Power Accuracy
Bolt Strike Electric Physical 130 85
Stone Edge Rock Physical 100 80
Outrage Dragon Physical 120 100
Outrage Dragon Physical 120 100
Nature Ability Item
Timid Bad Dreams Leftovers
                         Show Moves
Move Type Category Base Power Accuracy
Dark Void Dark Status 50
Dark Pulse Dark Special 80 100
  • Emboldened moves avail from a STAB bonus when deployed by that Pokémon.
  • Italicized moves are functionally broken; see their individualized pages for more information.