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

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

Latest revision as of 23:31, 20 April 2024

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

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

Usage[edit]

  • 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[edit]

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