Difference between revisions of "Template:MoveInfobox"
From Rollo
Line 1: | Line 1: | ||
− | {| style="float:right; background: #{{{{{type|Unknown}}} color light}}; border: 2px solid #{{{{{type|Unknown}}} color}}; width: 300px; margin-left: 5px; margin-bottom: 5px; {{roundy|10px}}" | + | {| style="float:right; background: #{{{{ucfirst:{{lc:{{{type|Unknown}}}}}}} color light}}; border: 2px solid #{{{{ucfirst:{{lc:{{{type|Unknown}}}}}}} color}}; width: 300px; margin-left: 5px; margin-bottom: 5px; {{roundy|10px}}" |
|- | |- | ||
| style="text-align:center" | <font size=4>'''{{{name|{{#replace:{{PAGENAME}}|(move)|<nowiki></nowiki>}}}}}'''</font> | | style="text-align:center" | <font size=4>'''{{{name|{{#replace:{{PAGENAME}}|(move)|<nowiki></nowiki>}}}}}'''</font> | ||
Line 7: | Line 7: | ||
| [[File:{{{image2|}}}|{{#if: {{{imagewidth|}}} | {{{imagewidth}}}px{{!}} | }}center]] | | [[File:{{{image2|}}}|{{#if: {{{imagewidth|}}} | {{{imagewidth}}}px{{!}} | }}center]] | ||
|- | |- | ||
− | | style="background: #999; border: 1px solid #{{{{{type|Unknown}}} color}}; {{roundy|10px}}" | | + | | style="background: #999; border: 1px solid #{{{{ucfirst:{{lc:{{{type|Unknown}}}}}}} color}}; {{roundy|10px}}" | |
{| style="background: transparent" width="100%" | {| style="background: transparent" width="100%" | ||
|- | |- | ||
− | ! width="35%" style="background: #{{{{{type|Unknown}}} color}}; border: 1px solid #FFF; {{roundyleft|10px}}" | [[Type|<span style="color:#FFF">Type</span>]] | + | ! width="35%" style="background: #{{{{ucfirst:{{lc:{{{type|Unknown}}}}}}} color}}; border: 1px solid #FFF; {{roundyleft|10px}}" | [[Type|<span style="color:#FFF">Type</span>]] |
− | | style="background: #{{{{{type|Unknown}}} color}}; border: 1px solid #FFF; {{roundyright|10px}}" | {{#switch: {{{type|Unknown}}}|Shadow=[[Shadow move|<span style="color:#FFF">'''Shadow'''</span>]]|[[{{{type|Unknown}}} (type)|<span style="color:#FFF">'''{{{type|Unknown}}}'''</span>]]}} | + | | style="background: #{{{{ucfirst:{{lc:{{{type|Unknown}}}}}}} color}}; border: 1px solid #FFF; {{roundyright|10px}}" | {{#switch: {{ucfirst:{{lc:{{{type|Unknown}}}}}}}|Shadow=[[Shadow move|<span style="color:#FFF">'''Shadow'''</span>]]|[[{{ucfirst:{{lc:{{{type|Unknown}}}}}}} (type)|<span style="color:#FFF">'''{{ucfirst:{{lc:{{{type|Unknown}}}}}}}'''</span>]]}} |
|- style="{{#ifexpr: {{{spm|0}}} = 1 | display: none; }}" | |- style="{{#ifexpr: {{{spm|0}}} = 1 | display: none; }}" | ||
! style="background: #{{#ifeq: {{{damagecategory}}}|Varies|999|{{{{{damagecategory}}} color}}}}; border: 1px solid #FFF; {{roundyleft|10px}}" | [[Damage category|<span style="color:#FFF">Category</span>]] | ! style="background: #{{#ifeq: {{{damagecategory}}}|Varies|999|{{{{{damagecategory}}} color}}}}; border: 1px solid #FFF; {{roundyleft|10px}}" | [[Damage category|<span style="color:#FFF">Category</span>]] | ||
Line 77: | Line 77: | ||
|} | |} | ||
|- | |- | ||
− | | style="text-align:center; background: #999; border: 1px solid #{{{{{type|Unknown}}} color}}; {{roundy|10px}}" {{!}} '''Target''' | + | | style="text-align:center; background: #999; border: 1px solid #{{{{ucfirst:{{lc:{{{type|Unknown}}}}}}} color}}; {{roundy|10px}}" {{!}} '''Target''' |
{| style="background: transparent" width="100%" | {| style="background: transparent" width="100%" | ||
|- | |- |
Revision as of 18:20, 6 October 2023
MoveInfobox | ||||||||||||||
| ||||||||||||||
Target
|
MoveInfobox is a [[{{{type}}} (type)|{{{type}}}]]-type [[{{{damagecategory}}} move]].
Template:LearnsetDPL
???,MOVEINFOBOX,MoveInfobox,000,0,???,Status,0,1,0,00,0,,"Unknown effect."
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) |pp=40 |target=NearOther |priority=0 |additional=0 |flags=abef }}
Seldom-used parameters
|cut=yes |field=yes |image= |image2= |imagewidth=
Valid "target" entries
00 | NearOther | Moves that target any monster but the user |
400 | NearFoe | Moves that target any foe |
200 | UserOrNearAlly | Moves that target the user or an ally (Acupressure) |
04 | AllNearFoes | Moves that target both foes |
08 | AllNearMonsters | Moves that target all monsters |
100 | NearAlly | Moves that target the user's ally |
02 | RandomNearFoe | Moves that target a random foe (Outrage, Petal Dance) |
10 | User | Moves that deliberately target the user (Howl, Swords Dance, Recover) |
01 | None | Moves that don't have a deliberate target (Counter, Mirror Coat, Curse) |
40 | UserSide | Moves that target the user's side (Light Screen, Reflect, Tailwind) |
80 | FoeSide | Moves that target the foe's side (Spikes, Stealth Rock) |
20 | BothSides | Moves that target the field (Sunny Day, Gravity, Trick Room) |
800 | ??? | Moves that target any one monster (including the user) Deviates from the essential source |
Flags
a | Contact | Makes contact |
b | CanProtect | 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 | CanMirrorMove | Affected by Mirror Move |
f | — | Affected by King's Rock or similar effects; should include any attack move without a secondary effect |
g | ThawsUser | Thaws the user if |
h | HighCriticalHitRate | Elevated critical hit rate; predominantly used for "cutting" moves |
i | Biting | Empowered by the Strong Jaw and Sunder Fang abilities |
j | Punching | Empowered by the Iron Fist and Open Palm abilities |
k | Sound | Affected by Soundproof, Echo, Siren Song, Megaphone, and Throat Chop |
l | Powder | Any porkman is unaffected if it is Grass-type or is holding Hazmat Gear |
m | Pulse | Empowered by Mega Pulse |
n | Bomb | Bomb or cannon move; empowered by Mega Cannon and blocked by Bunker |
o | Dance | Dance move |
p | CannotMetronome | Can't be called by moves like Metronome; generally includes mega moves and signature moves |
q | Beam | Beam, bolt, ray, or laser move Currently unaffected by any effect Deviates from the essential source |