Difference between revisions of "Template:Ticks/minutes"

From RimWorld Wiki
Jump to navigation Jump to search
(Add a minutes version of Template:Ticks/seconds)
 
(simplification)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{#if: {{{1|}}}|{{formatnum: {{#expr: {{{1|}}} }} }} [[Time|ticks]] ({{H:title|link=no|real-time at 1x speed|{{formatnum: {{#expr: ({{{1|}}}/3600)round 2}} }} {{#ifeq: {{{1|}}}|3600|min|mins}}}})}}<nowiki /></onlyinclude>
+
<onlyinclude>{{#if: {{{1|}}}
 +
| {{formatnum: {{#vardefineecho: ticks | {{#expr: {{formatnum:{{{1|}}}|R}} }} }} }}&nbsp;[[Time|ticks]] (<abbr title="real-time at 1x speed">{{formatnum: {{#expr: {{#var:ticks}}/3600 round 2}} }}&nbsp;min{{#ifeq: {{#var:ticks}}|3600||s}}</abbr>)}}</onlyinclude>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Latest revision as of 16:04, 22 June 2022

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

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

Usage[edit]

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

Examples[edit]

Example 1[edit]
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[edit]
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[edit]

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