Difference between revisions of "Template:Ticks/gametime"

From RimWorld Wiki
Jump to navigation Jump to search
(Created template.)
 
(Fixed conversion thresholds)
 
Line 1: Line 1:
<includeonly>{{#ifexpr: {{formatnum:{{{1|}}}|R}} < 2500
+
<includeonly>{{#ifexpr: {{formatnum:{{{1|}}}|R}} < 120000 <!-- 2,500 * 48 -->
 
  | {{ticks/gametime/hours | {{{1|}}} }}
 
  | {{ticks/gametime/hours | {{{1|}}} }}
  | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < 60000
+
  | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < 1800000 <!-- 60,000 * 30 -->
 
   | {{ticks/gametime/days | {{{1|}}} }}
 
   | {{ticks/gametime/days | {{{1|}}} }}
   | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < 900000
+
   | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < 7200000 <!-- 90,000 * 8 -->
 
   | {{ticks/gametime/quadrums | {{{1|}}} }}
 
   | {{ticks/gametime/quadrums | {{{1|}}} }}
 
   | {{ticks/gametime/years | {{{1|}}} }}
 
   | {{ticks/gametime/years | {{{1|}}} }}

Latest revision as of 01:11, 11 November 2022

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

Convert ticks to a human readable amount of in-game time in either hours, days, quadrums, or years, depending on the value given.

Usage[edit]

  • Specify the time in ticks
  • In-game time is automatically calculated and added after the time in ticks.
{{ticks/gametime|time in ticks}}

Examples[edit]

1,000 ticks (0.4 in-game hours)
5,000 ticks (2 in-game hours)
10,000 ticks (4 in-game hours)
50,000 ticks (20 in-game hours)
100,000 ticks (40 in-game hours)
500,000 ticks (8.33 in-game days)
1,000,000 ticks (16.67 in-game days)
5,000,000 ticks (5.56 quadrums)
10,000,000 ticks (2.78 years)

Choosing Specific Time Periods[edit]

If you want to show a specific amount of time for better precision, use the sub-templates below: