Template:FrameStrip: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (1 revision: pages)
(should work)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" style="border:1px #000000 solid"
<noinclude>
{|cellpadding="0" cellspacing="0"
|-
|-
|{{FrameBlock|w={{#expr:{{{w1|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c1|black}}}}}
</noinclude>{{#if:{{{s|}}}|{{!!}}{{FrameBlock|{{{s}}}|{{{z|16}}}}}}}{{Repeat|{{#expr:{{{c|5}}}-{{#if:{{{s|}}}|1|0}}-{{#if:{{{e|}}}|1|0}}}}|{{!!}}{{FrameBlock|{{{t|Blank}}}|{{{z|16}}}}}}}{{#if:{{{e|}}}|{{!!}}{{FrameBlock|{{{e}}}|{{{z|16}}}}}}}<noinclude>
|{{FrameBlock|w={{#expr:{{{w2|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c2|black}}}}}
|}
|{{FrameBlock|w={{#expr:{{{w3|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c3|black}}}}}
|{{FrameBlock|w={{#expr:{{{w4|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c4|black}}}}}
|{{FrameBlock|w={{#expr:{{{w5|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c5|black}}}}}
|{{FrameBlock|w={{#expr:{{{w6|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c6|black}}}}}
|{{FrameBlock|w={{#expr:{{{w7|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c7|black}}}}}
|{{FrameBlock|w={{#expr:{{{w8|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c8|black}}}}}
|{{FrameBlock|w={{#expr:{{{w9|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c9|black}}}}}
|{{FrameBlock|w={{#expr:{{{w10|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c10|black}}}}}
|{{FrameBlock|w={{#expr:{{{w11|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c11|black}}}}}
|{{FrameBlock|w={{#expr:{{{w12|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c12|black}}}}}
|{{FrameBlock|w={{#expr:{{{w13|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c13|black}}}}}
|{{FrameBlock|w={{#expr:{{{w14|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c14|black}}}}}
|{{FrameBlock|w={{#expr:{{{w15|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c15|black}}}}}
|{{FrameBlock|w={{#expr:{{{w16|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c16|black}}}}}
|{{FrameBlock|w={{#expr:{{{w17|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c17|black}}}}}
|{{FrameBlock|w={{#expr:{{{w18|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c18|black}}}}}
|{{FrameBlock|w={{#expr:{{{w19|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c19|black}}}}}
|{{FrameBlock|w={{#expr:{{{w20|0}}}*{{{s|0}}}}}|h={{{s|0}}}|c={{{c20}}}}}
|}<noinclude>
===Useage===
===Useage===
This template can be used to make visual bars indicating the timing of attacks.
This template can be used to make visual bars indicating the timing of attacks.


Example:
<code>
<pre>
t = type; this goes as the X in FrameIcon(X).png, see [[:Category:Frame icons]]<br>
{{FrameStrip|s=10|w1=5|c1=#ff0000|w2=15|c2=#00ff00|w3=6|c3=#ff0000}}
c = how many in the strip<br>
</pre></noinclude>
s = unique type to start the strip (e.g. for marking the start of a charge or hitbox change)<br>
e = unique type to end the strip<br>
z = size of each icon in pixels; leave out for default 16
</code>
 
If <code>c = 1</code>, then don't set both <code>s</code> and <code>e</code> (in fact, don't set either, it's pointless). No idea what it'll do.
 
[[Category:Meta-templates]]</noinclude>

Revision as of 22:35, May 5, 2013

FrameIcon(Blank).png FrameIcon(Blank).png FrameIcon(Blank).png FrameIcon(Blank).png FrameIcon(Blank).png

Useage

This template can be used to make visual bars indicating the timing of attacks.

t = type; this goes as the X in FrameIcon(X).png, see Category:Frame icons
c = how many in the strip
s = unique type to start the strip (e.g. for marking the start of a charge or hitbox change)
e = unique type to end the strip
z = size of each icon in pixels; leave out for default 16

If c = 1, then don't set both s and e (in fact, don't set either, it's pointless). No idea what it'll do.