Template:NPCMove: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<includeonly> {{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}} <tr style="background-color:#FFFFFF;"> <td><span style="{{#ifeq: {{#arrayindex:category|{{#..."
 
Made the type selectable for special cases, such as Hidden Power. Will test momentarily.
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<b>NPCMove Template</b> is the addon template that adds the <b>Pokemon moves</b> to a Pokemon in the lineup. <br>
It's used in correspondence with [[:Template:BossPokemon|BossPokemon Template]] and [[Template:BossNPCLineup|BossNPCLineup Template]]. <br>
__NOTOC__
==Parameters and arguments==
<ul>
<li>'''Move:''' Input the name of the Move (e.g Bolt Strike)</li>
</ul>
===Example===
====Template example====
<pre style="color: red">
<nowiki>
{{NPCMove | Bolt Strike}} {{NPCMove | Stone Edge}} {{NPCMove | Outrage}} {{NPCMove | Dark Pulse}}</nowiki>
</pre>
====Example on a lineup====
<pre style="color: blue">
<nowiki>
{{BossNPCLineup| Boss=Professor Rowan| Theme=Grass |Lineup=
{{BossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset=
{{NPCMove | Bolt Strike}} {{NPCMove | Stone Edge}} {{ NPCMove | Outrage}} }}
{{BossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers | Moveset=
{{NPCMove|Dark Void}} {{NPCMove|Dark Pulse}}
}}
}}</nowiki>
</pre>
=== Result ===
{{BossNPCLineup| Boss=Professor Rowan| Theme=Grass |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 | Moveset=
{{NPCMove|Dark Void}}{{NPCMove|Dark Pulse}}
}}
}}
</noinclude>
<includeonly>
<includeonly>
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{1}}}}}}}}}
{{#if:{{{Type|}}}|{{#vardefine:mtype|{{{Type}}}}}|{{#vardefine:mtype|{{#arrayindex:movetype|{{#var:iteration}}}}}}}}
<tr style="background-color:#FFFFFF;">
<tr style="background-color:#FFFFFF;">
<td><span style="{{#ifeq: {{#arrayindex:category|{{#var:iteration}}}} | Status | | {{#ifeq:{{#arrayindex:typeless|{{#var:iteration}}}} | N | {{#ifeq:{{#external_value:type1}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold; | {{#ifeq: {{#external_value:type2}} | {{#arrayindex:movetype|{{#var:iteration}}}} | font-weight: bold;}} }} }} }}  {{#ifeq:{{#arrayindex:broken|{{#var:iteration}}}} | Y | font-style: italic;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
<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;}}">[[{{#arrayindex:name|{{#var:iteration}}}}]]</span></td>
<td style="background-color: #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:movetype|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:movetype|{{#var:iteration}}}}_(type)|<span style="color:#FFFFFF;">{{#arrayindex:movetype|{{#var:iteration}}}}</span>]]</td>
<td style="background-color: #{{{{#var:mtype}}_color}}; border: 2px solid #{{{{#var:mtype}}_color_dark}};">[[{{#var:mtype}}_(type)|<span style="color:#FFFFFF;">{{#var:mtype}}</span>]]</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:category|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:category|{{#var:iteration}}}} moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td style="background-color:#{{{{#arrayindex:category|{{#var:iteration}}}}_color}}; border: 2px solid #{{{{#arrayindex:category|{{#var:iteration}}}}_color_dark}};">[[{{#arrayindex:category|{{#var:iteration}}}} moves|<span style="color:#FFFFFF;">{{#arrayindex:category|{{#var:iteration}}}}</span>]]</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>
<td>{{#if:{{#arrayindex:power|{{#var:iteration}}}} | {{#arrayindex:power|{{#var:iteration}}}} | — }}</td>

Latest revision as of 18:32, 5 July 2023

NPCMove Template is the addon template that adds the Pokemon moves to a Pokemon in the lineup.
It's used in correspondence with BossPokemon Template and BossNPCLineup Template.


Parameters and arguments

  • Move: Input the name of the Move (e.g Bolt Strike)

Example

Template example


{{NPCMove | Bolt Strike}} {{NPCMove | Stone Edge}} {{NPCMove | Outrage}} {{NPCMove | Dark Pulse}}

Example on a lineup


{{BossNPCLineup| Boss=Professor Rowan| Theme=Grass |Lineup=
{{BossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset=
{{NPCMove | Bolt Strike}} {{NPCMove | Stone Edge}} {{ NPCMove | Outrage}} }}

{{BossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers | Moveset=
{{NPCMove|Dark Void}} {{NPCMove|Dark Pulse}} 
}}
}}

Result

Professor Rowan's Lineup
Christmas Zekrom
NatureAbilityItem
Adamant Teravolt Leftovers
NatureAbilityItem
Timid Bad Dreams Leftovers
  • 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.