Template:AttackType: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{type|}}}|[[Image:HitboxType({{{type}}}).png|32px|{{{type}}}]]}}{{#if:{{{effect|}}}|[[Image:HitboxEffect({{{effect}}}).png|32px|{{{effect}}}]]}}<noinclude>
{{#if:{{{type|}}}|[[Image:HitboxType({{{type}}}).png|32px|{{{type}}}]]}}{{#if:{{{t|}}}|{{!}}{{!}}}}{{#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 7: Line 7:


<code><nowiki>{{AttackType|type=Typeless|effect=Darkness}}</nowiki></code> → [[Image:HitboxType(Typeless).png|32px|Typeless]][[Image:HitboxEffect(Darkness).png|32px|Darkness]]</noinclude>
<code><nowiki>{{AttackType|type=Typeless|effect=Darkness}}</nowiki></code> → [[Image:HitboxType(Typeless).png|32px|Typeless]][[Image:HitboxEffect(Darkness).png|32px|Darkness]]</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 anything non-empty (such as <code>y</code>).

Revision as of 17:55, 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 anything non-empty (such as y).