Template:FrameStrip: Difference between revisions

m
→‎Usage: Fixed header typo.
No edit summary
m (→‎Usage: Fixed header typo.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{|cellpadding="0" cellspacing="0" style="border:1px #000000 solid"
<noinclude>
{|cellpadding="0" cellspacing="0"
|-
|-
|{{FrameBlock|w={{#expr:{{{w1}}}*{{{s}}}}}|h={{{s}}}|c={{{c1}}}}}
</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}}}*{{{s}}}}}|h={{{s}}}|c={{{c2}}}}}
|}
|{{FrameBlock|w={{#expr:{{{w3}}}*{{{s}}}}}|h={{{s}}}|c={{{c3}}}}}
===Usage===
|{{FrameBlock|w={{#expr:{{{w4}}}*{{{s}}}}}|h={{{s}}}|c={{{c4}}}}}
|{{FrameBlock|w={{#expr:{{{w5}}}*{{{s}}}}}|h={{{s}}}|c={{{c5}}}}}
|{{FrameBlock|w={{#expr:{{{w6}}}*{{{s}}}}}|h={{{s}}}|c={{{c6}}}}}
|{{FrameBlock|w={{#expr:{{{w7}}}*{{{s}}}}}|h={{{s}}}|c={{{c7}}}}}
|{{FrameBlock|w={{#expr:{{{w8}}}*{{{s}}}}}|h={{{s}}}|c={{{c8}}}}}
|{{FrameBlock|w={{#expr:{{{w9}}}*{{{s}}}}}|h={{{s}}}|c={{{c9}}}}}
|{{FrameBlock|w={{#expr:{{{w10}}}*{{{s}}}}}|h={{{s}}}|c={{{c10}}}}}
|{{FrameBlock|w={{#expr:{{{w11}}}*{{{s}}}}}|h={{{s}}}|c={{{c11}}}}}
|{{FrameBlock|w={{#expr:{{{w12}}}*{{{s}}}}}|h={{{s}}}|c={{{c12}}}}}
|{{FrameBlock|w={{#expr:{{{w13}}}*{{{s}}}}}|h={{{s}}}|c={{{c13}}}}}
|{{FrameBlock|w={{#expr:{{{w14}}}*{{{s}}}}}|h={{{s}}}|c={{{c14}}}}}
|{{FrameBlock|w={{#expr:{{{w15}}}*{{{s}}}}}|h={{{s}}}|c={{{c15}}}}}
|{{FrameBlock|w={{#expr:{{{w16}}}*{{{s}}}}}|h={{{s}}}|c={{{c16}}}}}
|{{FrameBlock|w={{#expr:{{{w17}}}*{{{s}}}}}|h={{{s}}}|c={{{c17}}}}}
|{{FrameBlock|w={{#expr:{{{w18}}}*{{{s}}}}}|h={{{s}}}|c={{{c18}}}}}
|{{FrameBlock|w={{#expr:{{{w19}}}*{{{s}}}}}|h={{{s}}}|c={{{c19}}}}}
|{{FrameBlock|w={{#expr:{{{w20}}}*{{{s}}}}}|h={{{s}}}|c={{{c20}}}}}
|}</includeonly><noinclude>
===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>
1,328

edits