Template:AttackType: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(adding sizing ability)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{type|}}}|[[Image:HitboxType({{{type}}}).png|{{{size|32}}}px|{{{type}}}]]}}{{#if:{{{t|}}}|{{!}}{{!}}rowspan="{{{t|1}}}"{{!}}}}{{#if:{{{effect|}}}|[[Image:HitboxEffect({{{effect}}}).png|{{{size|32}}}px|{{{effect}}}]]}}<noinclude>
{{#if:{{{type|}}}|{{TypeIcon|{{{type}}}|s={{{size|32}}}}}}}{{#if:{{{t|}}}|{{!}}{{!}}rowspan="{{{t|1}}}"{{!}}}}{{#if:{{{effect|}}}|{{EffectIcon|{{{effect}}}|s={{{size|32}}}}}}}<noinclude>
Use this template in order to display type icons, for example in moveset tables.
Use this template in order to display type icons, for example in moveset tables.
===Examples===
===Examples===
<code><nowiki>{{AttackType|type=Hand|effect=Flame}}</nowiki></code> → [[Image:HitboxType(Hand).png|32px|Hand]][[Image:HitboxEffect(Flame).png|32px|Flame]]
<code><nowiki>{{AttackType|type=Hand|effect=Flame}}</nowiki></code> → {{AttackType|type=Hand|effect=Flame}}


<code><nowiki>{{AttackType|type=Sword|effect=Slash}}</nowiki></code> → [[Image:HitboxType(Sword).png|32px|Sword]][[Image:HitboxEffect(Slash).png|32px|Slash]]
<code><nowiki>{{AttackType|type=Sword|effect=Slash}}</nowiki></code> → {{AttackType|type=Sword|effect=Slash}}


<code><nowiki>{{AttackType|type=Typeless|effect=Darkness|size=50}}</nowiki></code> → [[Image:HitboxType(Typeless).png|50px|Typeless]][[Image:HitboxEffect(Darkness).png|50px|Darkness]]
<code><nowiki>{{AttackType|type=Typeless|effect=Darkness|size=50}}</nowiki></code> → {{AttackType|type=Typeless|effect=Darkness|size=50}}


This template includes the ability to split the two images into two table cells. To do this, add the parameter <code>t</code> at set it to 1. Setting it to something other than 1 will cause that number to act as a rowspan.</noinclude>
This template includes the ability to split the two images into two table cells. To do this, add the parameter <code>t</code> at set it to 1. Setting it to something other than 1 will cause that number to act as a rowspan.
 
===Valid Types/Effects===
Blank spots represent holes in the type/effect data that may be filled at a later time.
{|class="wikitable"
!Type List!!Effect List
|-
|Typeless||Normal
|-
|Head||
|-
|Body||Slash
|-
|Butt||Electric
|-
|Hand||Freezing
|-
|Elbow||Flame
|-
|Foot||Coin
|-
|Knee||Reverse
|-
|Throwing||Slip
|-
|Weapon||Sleep
|-
|Sword||
|-
|Hammer||Bury
|-
|Explosive||Stun
|-
|Spin||
|-
|Bite||Flower
|-
|Magic||
|-
|PK||
|-
|Bow||Grass
|-
|&nbsp;||Water
|-
|Bat||Darkness
|-
|Umbrella||Paralyze
|-
|Pikmin||Aura
|-
|Water||Plunge
|-
|Whip||Down
|-
|Tail||Flinchless
|-
|Energy||
|-
!colspan="2"|Other
|-
|colspan="2"|Grab
|-
|colspan="2"|Screw
|-
|colspan="2"|Inert
|}
The effects in the Other category are used in SSB and/or SSBM but not SSBB.</noinclude>

Latest revision as of 09:28, February 10, 2012

Use this template in order to display type icons, for example in moveset tables.

Examples

{{AttackType|type=Hand|effect=Flame}}TypeIcon(Hand).pngEffectIcon(Flame).png

{{AttackType|type=Sword|effect=Slash}}TypeIcon(Sword).pngEffectIcon(Slash).png

{{AttackType|type=Typeless|effect=Darkness|size=50}}TypeIcon(Typeless).pngEffectIcon(Darkness).png

This template includes the ability to split the two images into two table cells. To do this, add the parameter t at set it to 1. Setting it to something other than 1 will cause that number to act as a rowspan.

Valid Types/Effects

Blank spots represent holes in the type/effect data that may be filled at a later time.

Type List Effect List
Typeless Normal
Head
Body Slash
Butt Electric
Hand Freezing
Elbow Flame
Foot Coin
Knee Reverse
Throwing Slip
Weapon Sleep
Sword
Hammer Bury
Explosive Stun
Spin
Bite Flower
Magic
PK
Bow Grass
  Water
Bat Darkness
Umbrella Paralyze
Pikmin Aura
Water Plunge
Whip Down
Tail Flinchless
Energy
Other
Grab
Screw
Inert

The effects in the Other category are used in SSB and/or SSBM but not SSBB.