Difference between revisions of "Template:Ticks"

From RimWorld Wiki
Jump to navigation Jump to search
(Use the new subtemplates which automatically translate to the right time scale depending on the value.)
(Removed extraneous transclusion tags.)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#ifexpr: {{{1}}} < 3600| {{ticks/seconds|{{{1}}}}} |{{ticks/minutes|{{{1}}}}}}}<nowiki /></includeonly>
<onlyinclude>{{#ifexpr: {{{1}}} < 3600| {{ticks/seconds|{{{1}}}}} |{{ticks/minutes|{{{1}}}}}}}<nowiki /></onlyinclude>
 
</includeonly>
 
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 23:27, 11 June 2020

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

Convert ticks to a human readable amount of time in either seconds or minutes depending on the value given.


Usage

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

Examples

Example 1
The Great Bow has a cooldown period of {{ticks|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|2500}} in one game hour, so one game day consists of {{ticks|60000}}.

There are 2,500 ticks (41.67 secs)

in one game hour, so one game day consists of 60,000 ticks (16.67 mins)

.


Choosing minutes vs. seconds

If you specifically want to show ticks converted to minutes or seconds, you can use Template:Ticks/seconds or Template:Ticks/minutes directly

Template family

See also: