Difference between revisions of "Template:Ticks/gametime/hours"

From RimWorld Wiki
Jump to navigation Jump to search
m (Added abbr to "in-game hours")
(Done at request)
 
Line 1: Line 1:
 
<onlyinclude>{{#if: {{{1|}}}
 
<onlyinclude>{{#if: {{{1|}}}
  | {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }}&nbsp;[[Time|ticks]] ({{formatnum: {{#expr: {{#var:ticks}}/2500round 2}} }}&nbsp;<abbr title="there are 2,500 ticks in an hour">in-game hour{{#ifeq: {{#var:ticks}}|2500||s}}</abbr>)}}</onlyinclude>
+
  | {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }}&nbsp;[[Time|ticks]] (<abbr title="there are 2,500 ticks in an hour">{{formatnum: {{#expr: {{#var:ticks}}/2500round 2}} }}&nbsp;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

Documentation icon Template documentation[view] [edit] [history] [purge]

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)?