Difference between revisions of "Template:Ticks/seconds"
Jump to navigation
Jump to search
Tag: Undo |
(simplification) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <onlyinclude>{{#if: {{{1|}}}|{{formatnum: {{#expr: {{{1|}}} }} }} [[Time|ticks]] ( | + | <onlyinclude>{{#if: {{{1|}}} |
− | <noinclude>{{documentation}}</noinclude> | + | | {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }} [[Time|tick{{#ifeq:{{#var:ticks}}|1||s}}]] (<abbr title="real-time at 1x speed">{{formatnum: {{#expr: {{#var:ticks}}/60 round 2}} }} sec{{#ifeq:{{#var:ticks}}|60||s}}</abbr>) |
+ | }}</onlyinclude> | ||
+ | <noinclude>{{documentation}} | ||
+ | </noinclude> |
Latest revision as of 16:02, 22 June 2022
Converts ticks to seconds, so you don't have to!
Usage[edit]
- Specify the time in ticks
- Time in seconds is automatically calculated and added after the time in ticks.
{{ticks/seconds|time in ticks}}
Examples[edit]
Example 1[edit]
The Great Bow has a cooldown period of {{ticks/seconds|255}}, making it rather slow for a ranged weapon.
The Great Bow has a cooldown period of 255 ticks (4.25 secs), making it rather slow for a ranged weapon.
Example 2[edit]
There are {{ticks/seconds|2500}} in one game hour, so one game day consists of {{ticks/seconds|60000}}. Figures specified in seconds assume the game is being played at normal speed.
There are 2,500 ticks (41.67 secs) in one game hour, so one game day consists of 60,000 ticks (1,000 secs). Figures specified in seconds assume the game is being played at normal speed.
Relationship to Template:Ticks[edit]
This template is identical to Template:Ticks. It's being created for consistency with Template:Ticks/minutes
The above documentation is transcluded from Template:Ticks/seconds/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |