Difference between revisions of "Template:Ticks"
Jump to navigation
Jump to search
(Done fumbling with this. Can't get rid of the <pre></pre> tags that follow templates (occurs to Template:Icon as well)) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{{1|}}}|{{{1|}}} {{H:title|link=no|1/60th of a second|ticks}} ({{ #expr: ({{{1|}}}/60)round 2}} sec.) }}</includeonly> | + | <includeonly>{{#if: {{{1|}}}|{{formatnum:{{expr:{{{1|}}}}}}} {{H:title|link=no|1/60th of a second|ticks}} ({{ #expr: ({{{1|}}}/60)round 2}} sec.) }}</includeonly> |
<noinclude> | <noinclude> | ||
{{{{BASEPAGENAME}}/doc}} | {{{{BASEPAGENAME}}/doc}} | ||
[[Category:Templates|Main]] | [[Category:Templates|Main]] | ||
</noinclude> | </noinclude> |
Revision as of 11:32, 28 March 2015
Convert ticks to a human readable amount of time in either seconds or minutes depending on the value given.
Usage
- Specify the time in ticks
- Time in seconds or minutes is automatically calculated and added after the time in ticks.
{{ticks|time in ticks}}
Examples
Example 1
The Great Bow has a cooldown period of {{ticks|255}}, making it rather slow for a ranged weapon.
The Great Bow has a cooldown period of Template:Expr:255 ticks (4.25 sec.) , making it rather slow for a ranged weapon.
Example 2
There are {{ticks|2500}} in one game hour, so one game day consists of {{ticks|60000}}.
There are Template:Expr:2,500 ticks (41.67 sec.)
in one game hour, so one game day consists of Template:Expr:60,000 ticks (1000 sec.)
.
Choosing minutes vs. seconds
If you specifically want to show ticks converted to minutes or seconds, you can use Template:Ticks/seconds or Template:Ticks/minutes directly
Template family
- Template:Ticks
See also: