Template:Frames: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Linked to Frame.)
(Undo revision 309689 by Mama09001 (talk) Reason: it didin't work.)
Tags: Undo Mobile edit Advanced mobile edit
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{tt|{{{1}}}|{{#expr:{{{1}}} / 30}} second{{#ifeq:{{#expr:{{{1}}}/30}}|1||s}} (at 30 frames per second).{{#if:{{{2|}}}|&nbsp;{{#expr:{{{1}}}/25}} second{{#ifeq:{{#expr:{{{1}}}/25}}|1||s}} in the European version of Pikmin (25 frames per second).}}}}</includeonly><noinclude>
<includeonly>{{tt|{{{1}}}|{{#expr:({{{1}}} / 30) round 3}} second{{#ifeq:{{#expr:({{{1}}}/30}}) round 3|1||s}} (at 30 frames per second){{#if:{{{2|}}}|&nbsp;&ndash;&nbsp;{{#expr:({{{1}}}/25) round 3}} second{{#ifeq:{{#expr:({{{1}}}/25) round 3}}|1||s}} in the European version of Pikmin (25 frames per second)}}}}</includeonly><noinclude>


==Info==
==Info==
This template is to be used whenever an amount of [[frame]]s is being written. This provides a tooltip with a conversion to seconds.
This template is to be used whenever an amount of [[frame]]s 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 [[Region|version]] of ''[[Pikmin (game)|Pikmin]]'').


The first parameter is the number to be displayed &ndash; the number of frames. The conversion happens to 30 FPS (frames per second), but if the second parameter exists, it'll also convert to 25 FPS, which is the framerate on the European [[region|version]] of ''[[Pikmin (game)|Pikmin]]''. Besides that, all games run at 30 FPS, regardless of region or settings (''[[Pikmin 3]]'''s framerate is unknown).
==Parameters==
[[Category:Templates]]</noinclude>
{| class = "wikitable"
! 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==
<pre>
{{frames|<number>|<25fps>}}
</pre>
 
==Examples==
{| class = "wikitable"
! Code || Result
|-
| <pre>{{frames|54}}</pre>
| {{frames|54}}
|-
| <pre>{{frames|77|y}}</pre>
| {{frames|77|y}}
|}
 
[[Category:Inline templates]]</noinclude>

Latest revision as of 15:22, August 19, 2024


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|77|y}}
77