Template:FrameStrip: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (1 revision: pages) |
m (Protected "Template:FrameStrip": Protecting high-use templates ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{|cellpadding="0" cellspacing="0 | <noinclude> | ||
{|cellpadding="0" cellspacing="0" | |||
|- | |- | ||
</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> | |||
|} | |||
| | |||
===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. | ||
<code> | |||
< | t = type; this goes as the X in FrameIcon(X).png, see [[:Category:Frame icons]]<br> | ||
c = how many in the strip<br> | |||
</ | 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> |
Latest revision as of 21:18, August 26, 2021
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.