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

From RimWorld Wiki
Jump to navigation Jump to search
(Created templates)
 
(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}}/3600000round 2}} }}&nbsp;<abbr title="there are 3,600,000 ticks in an year">year{{#ifeq: {{#var:ticks}}|3600000||s}}</abbr>)}}</onlyinclude>
+
  | {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }}&nbsp;[[Time|ticks]] (<abbr title="there are 3,600,000 ticks in an year">{{formatnum: {{#expr: {{#var:ticks}}/3600000round 2}} }}&nbsp;year{{#ifeq: {{#var:ticks}}|3600000||s}}</abbr>)}}</onlyinclude>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 10:38, 12 December 2022

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

Converts ticks to in-game years, so you don't have to!

Usage

  • Specify the time in ticks
  • Time in years is automatically calculated and added after the time in ticks.
{{ticks/gametime/years|time in ticks}}

Examples

Example 1
At this rate, it will take {{ticks/gametime/years|30000000}} to complete

At this rate, it will take 30,000,000 ticks (8.33 years) to complete.

Example 2
In {{ticks/gametime/years|36000000}}, the planetkiller will arrive, so all of your colonists will die in {{ticks/gametime/years|36000000}}.

In 36,000,000 ticks (10 years), the planetkiller will arrive, so all of your colonists will die in 36,000,000 ticks (10 years).


Relationship to Template:Ticks

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? 60,000,000 ticks (16,666.67 mins) or 60,000,000 ticks (16.67 years)?