Template:Frames: Difference between revisions
Jump to navigation
Jump to search
(Made the word "frames" be a part of the template, since it makes more sense, and makes it easier to see/touch the underlined text.) |
m (Oops.) |
||
Line 1: | Line 1: | ||
<includeonly>{{tt|{{{1}}}|{{#expr:{{{1}}} / 30}} second{{#ifeq:{{#expr:{{{1}}}/30}}|1||s}} (at 30 frames per second){{#if:{{{2|}}}| {{#expr:{{{1}}}/25}} second{{#ifeq:{{#expr:{{{1}}}/25}}|1||s}} in the European version of Pikmin (25 frames per second)}} | <includeonly>{{tt|{{{1}}} frames|{{#expr:{{{1}}} / 30}} second{{#ifeq:{{#expr:{{{1}}}/30}}|1||s}} (at 30 frames per second){{#if:{{{2|}}}| {{#expr:{{{1}}}/25}} second{{#ifeq:{{#expr:{{{1}}}/25}}|1||s}} in the European version of Pikmin (25 frames per second)}}}}</includeonly><noinclude> | ||
==Info== | ==Info== |
Revision as of 14:49, July 16, 2018
Info
This template is to be used whenever an amount of frames is being written. This provides a tooltip with a conversion to seconds. Because it's only really possible to accurately measure frames in the first two games, these conversions are made at 30 FPS (the framerate those games run at). A parameter allows a another conversion to also be made at 25 FPS (for the European version of Pikmin).
Parameters
Parameter | Mandatory | Default | Purpose | Detailed description |
---|---|---|---|---|
1 | Yes | Number of frames | The number of frames to be displayed. | |
2 | No | Use 25 FPS | If it has a value (like "y"), the number of frames will also be converted to seconds at 25 FPS. |
Skeleton
{{frames|<number>|<25fps>}}
Examples
Code | Result |
---|---|
{{frames|54}} |
54 frames |
{{frames|77|y}} |
77 frames |