Difference between revisions of "Template:Ticks/minutes"

From RimWorld Wiki
Jump to navigation Jump to search
(use <abbr> directly)
m ( )
Line 1: Line 1:
<onlyinclude>{{#if: {{{1|}}}|{{formatnum: {{#expr: {{formatnum:{{{1|}}}|R}} }} }} [[Time|ticks]] (<abbr title="real-time at 1x speed">{{formatnum: {{#expr: ({{formatnum:{{{1|}}}|R}}/3600)round 2}} }} {{#ifeq: {{formatnum:{{{1|}}}|R}}|3600|min|mins}}</abbr>)}}</onlyinclude>
+
<onlyinclude>{{#if: {{{1|}}}|{{formatnum: {{#expr: {{formatnum:{{{1|}}}|R}} }} }} [[Time|ticks]] (<abbr title="real-time at 1x speed">{{formatnum: {{#expr: ({{formatnum:{{{1|}}}|R}}/3600)round 2}} }}&nbsp;{{#ifeq: {{formatnum:{{{1|}}}|R}}|3600|min|mins}}</abbr>)}}</onlyinclude>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 10:12, 22 June 2022

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

Converts ticks to minutes, so you don't have to!

Usage

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

Examples

Example 1
The Great Bow has a cooldown period of {{ticks/minutes|255}}, making it rather slow for a ranged weapon.

The Great Bow has a cooldown period of 255 ticks (0.07 mins), making it rather slow for a ranged weapon.

Example 2
There are {{ticks/minutes|2500}} in one game hour, so one game day consists of {{ticks/minutes|60000}}. Figures specified in seconds assume the game is being played at normal speed.

There are 2,500 ticks (0.69 mins) in one game hour, so one game day consists of 60,000 ticks (16.67 mins). Figures specified in seconds assume the game is being played at normal speed.


Relationship to Template:Ticks

The original Template:Ticks would only show results in seconds. This was extremely hard to read for longer tick values. For example, it takes 45000 ticks to make recon armor. Would you rather hear that it takes 45,000 ticks (750 secs) or 45,000 ticks (12.5 mins)?