Template:AttackType: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{type|}}}|[[Image:HitboxType({{{type}}}).png|{{{size|32}}}px|link={{{type}}}]]}}{{#if:{{{t|}}}|{{!}}{{!}}rowspan="{{{t|1}}}"{{!}}}}{{#if:{{{effect|}}}|[[Image:HitboxEffect({{{effect}}}).png|{{{size|32}}}px|link={{{effect}}}]]}}</includeonly><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|link=Hand]][[Image:HitboxEffect(Flame).png|32px|link=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|link=Sword]][[Image:HitboxEffect(Slash).png|32px|link=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|link=Typeless]][[Image:HitboxEffect(Darkness).png|50px|link=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.
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.
Line 66: Line 66:
|-
|-
|Energy||
|Energy||
|}</noinclude>
|-
!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>