Difference between revisions of "Template:Ticks/gametime/hours"
< Template:Ticks | gametime
Jump to navigation
Jump to search
(Created template, based on Template:Ticks/minutes) |
(Done at request) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: {{{1|}}} | <onlyinclude>{{#if: {{{1|}}} | ||
− | | {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }} [[Time|ticks]] ({{formatnum: {{#expr: {{#var:ticks}}/2500round 2}} }} in-game hour{{#ifeq: {{#var:ticks}}|2500||s}})}}</onlyinclude> | + | | {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }} [[Time|ticks]] (<abbr title="there are 2,500 ticks in an hour">{{formatnum: {{#expr: {{#var:ticks}}/2500round 2}} }} in-game hour{{#ifeq: {{#var:ticks}}|2500||s}}</abbr>)}}</onlyinclude> |
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Latest revision as of 10:37, 12 December 2022
Converts ticks to in-game hours, so you don't have to!
Usage[edit]
- Specify the time in ticks
- Time in in-game hours is automatically calculated and added after the time in ticks.
{{ticks/gametime/hours|time in ticks}}
Examples[edit]
Example 1[edit]
At this rate, it will take {{ticks/gametime/hours|3000}} to complete
At this rate, it will take 3,000 ticks (1.2 in-game hours) to complete.
Example 2[edit]
There are {{ticks/gametime/hours|60000}} in one in-game day, so one in-game day consists of {{ticks/gametime/hours|60000}}.
There are 60,000 ticks (24 in-game hours) in one in-game day, so one in-game day consists of 60,000 ticks (24 in-game hours).
Relationship to Template:Ticks[edit]
The original Template:Ticks would only show results in real time, which isn't very useful for things that take hours, days, or even years. What sounds better? 6,000 ticks (1.67 mins) or 6,000 ticks (2.4 in-game hours)?
The above documentation is transcluded from Template:Ticks/gametime/hours/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. |