Template:AttackType: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(adding sizing ability)
(will deal with redlinks this produces tomorrow)
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>
<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>
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> → [[Image:HitboxType(Hand).png|32px|link=Hand]][[Image:HitboxEffect(Flame).png|32px|link=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> → [[Image:HitboxType(Sword).png|32px|link=Sword]][[Image:HitboxEffect(Slash).png|32px|link=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> → [[Image:HitboxType(Typeless).png|50px|link=Typeless]][[Image:HitboxEffect(Darkness).png|50px|link=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 22:52, July 1, 2011

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

Examples

{{AttackType|type=Hand|effect=Flame}}File:HitboxType(Hand).pngFile:HitboxEffect(Flame).png

{{AttackType|type=Sword|effect=Slash}}File:HitboxType(Sword).pngFile:HitboxEffect(Slash).png

{{AttackType|type=Typeless|effect=Darkness|size=50}}File:HitboxType(Typeless).pngFile:HitboxEffect(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.