Template:AttackType: Difference between revisions

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


<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|size=50}}</nowiki></code> → [[Image:HitboxType(Typeless).png|50px|Typeless]][[Image:HitboxEffect(Darkness).png|50px|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 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.</noinclude>

Revision as of 10:46, November 3, 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|size=50}}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.