Difference between revisions of "Template:Ticks/seconds"

From RimWorld Wiki
Jump to navigation Jump to search
m (Attempt to fix tick display)
m (Undo revision 72109 by Die4doom (talk))
Tag: Undo
Line 1: Line 1:
<onlyinclude>{{#if: {{{1|}}} |{{formatnum: {{#expr: {{{1|}}} }} }} [[Time|ticks]] ({{H:title|link=no|real-time at 1x speed|{{formatnum: {{#expr: ({{{1|}}}/60)round 2}} }} secs)}} }}<nowiki /></onlyinclude>
+
<onlyinclude>{{#if: {{{1|}}}|{{formatnum: {{#expr: {{{1|}}} }} }} [[Time|ticks]] ({{H:title|link=no|real-time at 1x speed|{{formatnum: {{#expr: ({{{1|}}}/60)round 2}} }} {{#ifeq: {{{1|}}}|60|sec|secs)}}}}}}<nowiki /></onlyinclude>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 02:53, 15 June 2020

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

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

Usage

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

Examples

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

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

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

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


Relationship to Template:Ticks

This template is identical to Template:Ticks. It's being created for consistency with Template:Ticks/minutes