Template:AttackType: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{type|}}}|[[Image:HitboxType({{{type}}}).png|32px|{{{type}}}]]}}{{#if:{{{t|}}}|{{!}}{{!}}}}{{#if:{{{effect|}}}|[[Image:HitboxEffect({{{effect}}}).png|32px|{{{effect}}}]]}}<noinclude>
{{#if:{{{type|}}}|[[Image:HitboxType({{{type}}}).png|32px|{{{type}}}]]}}{{#if:{{{t|}}}|{{!}}{{!}}rowspan="{{{t|1}}}"{{!}}}}{{#if:{{{effect|}}}|[[Image:HitboxEffect({{{effect}}}).png|32px|{{{effect}}}]]}}<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===
Line 8: Line 8:
<code><nowiki>{{AttackType|type=Typeless|effect=Darkness}}</nowiki></code> → [[Image:HitboxType(Typeless).png|32px|Typeless]][[Image:HitboxEffect(Darkness).png|32px|Darkness]]
<code><nowiki>{{AttackType|type=Typeless|effect=Darkness}}</nowiki></code> → [[Image:HitboxType(Typeless).png|32px|Typeless]][[Image:HitboxEffect(Darkness).png|32px|Darkness]]


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 anything non-empty (such as <code>y</code>).</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.</noinclude>

Revision as of 18:57, October 4, 2010

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

Examples

{{AttackType|type=Hand|effect=Flame}}HandFlame

{{AttackType|type=Sword|effect=Slash}}SwordSlash

{{AttackType|type=Typeless|effect=Darkness}}TypelessDarkness

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.