Difference between revisions of "Template:MoveInfobox"

From Rollo
m
Line 45: Line 45:
 
|* Unaffected by {{move|Snatch}}
 
|* Unaffected by {{move|Snatch}}
 
}}{{#if:{{#pos:{{{flags|}}}|e}}
 
}}{{#if:{{#pos:{{{flags|}}}|e}}
|* '''Affected by {{move|Mirror move}}'''
+
|* '''Affected by {{move|Mirror Move}}'''
 
|* Unaffected by {{move|Mirror Move}}
 
|* Unaffected by {{move|Mirror Move}}
 
}}{{#if:{{#pos:{{{flags|}}}|f}}
 
}}{{#if:{{#pos:{{{flags|}}}|f}}
|* '''Affected by {{ability|Oppressive}}''' and '''{{item|Lunar Orb}}'''
+
|* '''Allows [[added secondary effects]]'''
|* Unaffected by {{ability|Oppressive}} or {{item|Lunar Orb}}
+
|* Doesn't allow [[added secondary effects]]
 
}} {{#if:{{#pos:{{{flags|}}}|g}}
 
}} {{#if:{{#pos:{{{flags|}}}|g}}
 
|* '''Thaws the user if [[frozen]]''' [[Category:User-thawing moves]]
 
|* '''Thaws the user if [[frozen]]''' [[Category:User-thawing moves]]
Line 55: Line 55:
 
|* '''Has a high critical hit rate''' [[Category:High critical hit rate moves]]
 
|* '''Has a high critical hit rate''' [[Category:High critical hit rate moves]]
 
}} {{#if:{{#pos:{{{flags|}}}|k}}
 
}} {{#if:{{#pos:{{{flags|}}}|k}}
|* '''Is a sound-based move''' [[Category:Sound-based moves]]
+
|* '''Is a [[sound-based]] move''' [[Category:Sound-based moves]]
 
}} {{#if:{{#pos:{{{flags|}}}|i}}
 
}} {{#if:{{#pos:{{{flags|}}}|i}}
|* '''Is a biting move''' [[Category:Biting moves]]
+
|* '''Is a [[biting]] move''' [[Category:Biting moves]]
 
}} {{#if:{{#pos:{{{flags|}}}|j}}
 
}} {{#if:{{#pos:{{{flags|}}}|j}}
|* '''Is a punch or fist move''' [[Category:Punch and fist moves]]
+
|* '''Is a [[punch or fist]] move''' [[Category:Punch and fist moves]]
 
}} {{#if:{{#pos:{{{flags|}}}|l}}
 
}} {{#if:{{#pos:{{{flags|}}}|l}}
 
|* '''Doesn't affect a {{move|Grass}}-type or {{move|Hazmat Gear}}-holder'''
 
|* '''Doesn't affect a {{move|Grass}}-type or {{move|Hazmat Gear}}-holder'''
Line 65: Line 65:
 
|* '''Is empowered by {{move|Mega Pulse}}''' [[Category:Pulse moves]]
 
|* '''Is empowered by {{move|Mega Pulse}}''' [[Category:Pulse moves]]
 
}} {{#if:{{#pos:{{{flags|}}}|n}}
 
}} {{#if:{{#pos:{{{flags|}}}|n}}
|* '''Is a bomb or cannon move''' [[Category:Bomb and cannon moves]]
+
|* '''Is a [[bomb or cannon move]]''' [[Category:Bomb and cannon moves]]
 
}} {{#if:{{#pos:{{{flags|}}}|o}}
 
}} {{#if:{{#pos:{{{flags|}}}|o}}
 
|* '''Fails under [[intense gravity]]''' [[Category:Moves that fail in gravity]]
 
|* '''Fails under [[intense gravity]]''' [[Category:Moves that fail in gravity]]
 
}} {{#ifeq:{{{damagecategory|}}}|Status||{{#ifexpr: {{{pp|0}}} > 15
 
}} {{#ifeq:{{{damagecategory|}}}|Status||{{#ifexpr: {{{pp|0}}} > 15
 
|* '''Up to {{#expr:({{{pp|0}}}*1.6) + {{{power|0}}}}} power with [[Overcharge]]'''
 
|* '''Up to {{#expr:({{{pp|0}}}*1.6) + {{{power|0}}}}} power with [[Overcharge]]'''
}}}} {{#ifeq:{{{damagecategory|}}}|Status||{{#ifexpr: {{{power|0}}} < 61
+
}}}} <!--{{#ifeq:{{{damagecategory|}}}|Status||{{#ifexpr: {{{power|0}}} < 61
 
|* '''{{#expr:{{{power|0}}}*1.5}} power with {{item|Technician}}'''
 
|* '''{{#expr:{{{power|0}}}*1.5}} power with {{item|Technician}}'''
 
}}}} {{#ifeq:{{{damagecategory|}}}|Status||{{#ifexpr: {{{pp|0}}} > 15|{{#ifexpr:({{{power|0}}}+({{{pp|}}}*1.6)) < 61
 
}}}} {{#ifeq:{{{damagecategory|}}}|Status||{{#ifexpr: {{{pp|0}}} > 15|{{#ifexpr:({{{power|0}}}+({{{pp|}}}*1.6)) < 61
|* '''{{#expr:({{{power|0}}}+({{{pp|0}}}*1.6))*1.5}} power with {{ability|Technician}} and [[Overcharge]]'''|}}}}|}}
+
|* '''{{#expr:({{{power|0}}}+({{{pp|0}}}*1.6))*1.5}} power with {{ability|Technician}} and [[Overcharge]]'''|}}}}|}}-->
 
|}
 
|}
 
|-
 
|-

Revision as of 19:24, 17 August 2020

MoveInfobox
[[File:|center]]
Type  Unknown
Category  uncategorized
PP  10 (max. 16)
Power  —
Accuracy  —%
Priority  {{{priority}}}
Target
Foe Foe
Self Ally
May affect anyone but the user

Usage

{{MoveInfobox
|power=
|type=
|damagecategory=
|accuracy=
|mp=
|target=
|flags=
}}
{{MoveInfobox
|power=40 (delete if 0)
|type=Warrior
|damagecategory=Physical
|accuracy=100 (delete if never misses)
|mp=40
|target=00
|flags=abef
}}

Seldom-used parameters

|additional=20
|field=yes
|priority=+1
|image=
|image2=
|imagewidth=

Valid "target" entries

00 Moves that target any monster
400 Moves that target any foe
200 Moves that target the user or an ally
04 Moves that target both foes
08 Moves that target all monsters
100 Moves that target the user's ally
02 Moves that target a random foe (Outrage, Petal Dance)
10 Moves that deliberately target the user (Howl, Swords Dance, Recover)
01 Moves that don't have a deliberate target (Counter, Mirror Coat, Curse)
40 Moves that target the user's side (Light Screen, Reflect, Tailwind)
80 Moves that target the foe's side (Spikes, Stealth Rock)
20 Moves that target the field (Sunny Day, Gravity, Trick Room)

Flags

a makes contact
b affected by Protect and similar moves
c Magic Coat (most offensive status moves); should be mutually exclusive with d
d affected by Snatch (most defensive/buffing status moves); should be mutually exclusive with c
e affected by Mirror Move
f affected by King's Rock, Lunar Orb, Oppression, etc; should include any attack move without a secondary effect
g thaws the user if frozen
h elevated critical hit rate; predominantly used for "cutting" moves
i biting move; empowered by the Strong Jaw and Sunder Fang abilities
j punching or fist move; empowered by the Iron Fist and Open Palm abilities
k sound move; affected by Soundproof, Echo, Siren Song, Megaphone, and Throat Chop
l powder move; any porkman is unaffected if it is Grass-type or is holding Hazmat Gear
m pulse move; empowered by Mega Pulse
n bomb or cannon move; empowered by Mega Cannon and blocked by Bomb Bunker
o can't be used under intense gravity