Difference between revisions of "Template:MoveInfobox"

From Rollo
(replaced white bg with gray bg)
Line 10: Line 10:
 
{| 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: #{{{{{type|Unknown}}} color}}; border: 1px solid #626262; {{roundyleft|10px}}" | [[Type|<span style="color:#626262">Type</span>]]
| style="background: #{{{{{type|Unknown}}} color}}; border: 1px solid #FFF; {{roundyright|10px}}" | &nbsp;{{#switch: {{{type|Unknown}}}|Shadow=[[Shadow move|<span style="color:#FFF">'''Shadow'''</span>]]|[[{{{type|Unknown}}} (type)|<span style="color:#FFF">'''{{{type|Unknown}}}'''</span>]]}}
+
| style="background: #{{{{{type|Unknown}}} color}}; border: 1px solid #626262; {{roundyright|10px}}" | &nbsp;{{#switch: {{{type|Unknown}}}|Shadow=[[Shadow move|<span style="color:#626262">'''Shadow'''</span>]]|[[{{{type|Unknown}}} (type)|<span style="color:#626262">'''{{{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 #626262; {{roundyleft|10px}}" | [[Damage category|<span style="color:#626262">Category</span>]]
| style="background: #{{#ifeq: {{{damagecategory}}}|Varies|999|{{{{{damagecategory}}} color}}}}; border: 1px solid #FFF; {{roundyright|10px}}" | &nbsp;{{#switch: {{{damagecategory|Uncategorized}}}|Uncategorized=''uncategorized''|Varies=<span style="color:#FFF>''Varies''</span>|[[{{{damagecategory}}} move|<span style="color:#{{{{{damagecategory}}} textcolor}}">{{{damagecategory}}}</span>]]}}
+
| style="background: #{{#ifeq: {{{damagecategory}}}|Varies|999|{{{{{damagecategory}}} color}}}}; border: 1px solid #626262; {{roundyright|10px}}" | &nbsp;{{#switch: {{{damagecategory|Uncategorized}}}|Uncategorized=''uncategorized''|Varies=<span style="color:#626262>''Varies''</span>|[[{{{damagecategory}}} move|<span style="color:#{{{{{damagecategory}}} textcolor}}">{{{damagecategory}}}</span>]]}}
 
|-
 
|-
! style="background: #FFF; {{roundytl|10px}}" | MP
+
! style="background: #626262; {{roundytl|10px}}" | MP
| style="background: #FFF; {{roundytr|10px}}" | &nbsp;{{{mp}}} <small>
+
| style="background: #626262; {{roundytr|10px}}" | &nbsp;{{{mp}}} <small>
|- style="background: #FFF"  
+
|- style="background: #626262"  
 
! Power
 
! Power
 
| &nbsp;{{{power|&mdash;}}}
 
| &nbsp;{{{power|&mdash;}}}
|- style="background: #FFF"
+
|- style="background: #626262"
 
! Accuracy
 
! Accuracy
 
| &nbsp;{{{accuracy|&mdash;}}}%
 
| &nbsp;{{{accuracy|&mdash;}}}%
 
|-{{#ifexpr: {{{priority|0}}} = 0| style="display: none"}}
 
|-{{#ifexpr: {{{priority|0}}} = 0| style="display: none"}}
! style="background: #FFF" | Priority
+
! style="background: #626262" | Priority
| style="background: #FFF" | &nbsp;{{{priority}}}
+
| style="background: #626262" | &nbsp;{{{priority}}}
 
|-
 
|-
| style="background: #FFF; font-size: 0.90em; {{roundybottom|10px}}" colspan="2" |  
+
| style="background: #626262; font-size: 0.90em; {{roundybottom|10px}}" colspan="2" |  
 
{{#if:{{#pos:{{{flags|}}}|a}}
 
{{#if:{{#pos:{{{flags|}}}|a}}
 
|* '''Makes [[contact]]'''  
 
|* '''Makes [[contact]]'''  
Line 73: Line 73:
 
| style="background: #{{#switch: {{{target|00}}}|00=F1C232|200=F1C232|08=ED1C24|100=ED1C24|40=ED1C24|20=ED1C24|709AD1}}; {{roundy|3px}} border: 1px solid #000" {{!}} <small>Ally</small>
 
| style="background: #{{#switch: {{{target|00}}}|00=F1C232|200=F1C232|08=ED1C24|100=ED1C24|40=ED1C24|20=ED1C24|709AD1}}; {{roundy|3px}} border: 1px solid #000" {{!}} <small>Ally</small>
 
|-
 
|-
| colspan="3" style="background: #FFF; {{roundy|3px}}" | <small>{{#switch: {{{target|00}}}
+
| colspan="3" style="background: #626262; {{roundy|3px}}" | <small>{{#switch: {{{target|00}}}
 
|00=May affect anyone but the user <includeonly>[[Category:Moves that target any one monster]]</includeonly>
 
|00=May affect anyone but the user <includeonly>[[Category:Moves that target any one monster]]</includeonly>
 
|400=May affect any foe, but not allies [[Category:Moves that target any one foe]]
 
|400=May affect any foe, but not allies [[Category:Moves that target any one foe]]

Revision as of 20:42, 26 February 2019

MoveInfobox
[[File:|center]]
Type  Unknown
Category  uncategorized
MP  {{{mp}}}
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

|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 affected by 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, Oppression, etc; should include any attack move without a secondary effect
g thaws the user if frozen
h elevated crit rat; e.g., Slash, Razor Leaf, Air Cutter, Stone Edge; predominantly used for "cutting" moves
i biting move; affected by Strong Jaw
j punching or fist move; affected by Iron Fist
k sound move; affected by Soundproof, Echo, Megamouth Mask, etc.
l powder move; Grass-type monsters are immune, Goggles protect
m unused in Hyrule Version; in canon flags moves affected by Mega Launcher
n unused in Hyrule Version; in canon flags moves affected by Bombproof