Difference between revisions of "Template:Ticks/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(→‎Examples: Expanding/updating)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Converts ticks to seconds, so you don't have to!
+
Convert ticks to a human readable amount of time in either seconds or minutes depending on the value given.
 +
 
  
 
== Usage ==
 
== Usage ==
 
*Specify the time in ticks
 
*Specify the time in ticks
*Time in seconds is '''automatically calculated''' and added after the time in ticks.
+
*Time in seconds or minutes is '''automatically calculated''' and added after the time in ticks.
  
 
<pre>
 
<pre>
Line 16: Line 17:
  
 
===== Example 2 =====
 
===== Example 2 =====
<pre>There are {{ticks|1250}} in one game hour, so one game day consists of {{ticks|30000}}. Figures specified in seconds assume the game is being played at normal speed.</pre>
+
<pre>There are {{ticks|2500}} in one game hour, so one game day consists of {{ticks|60000}}.</pre>
There are {{ticks|1250}} in one game hour, so one game day consists of {{ticks|30000}}. Figures specified in seconds assume the game is being played at normal speed.
+
There are {{ticks|2500}} in one game hour, so one game day consists of {{ticks|60000}}.
 +
 
 +
<includeonly>[[Category:Formatting templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>
 +
 
 +
== 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 ==
 +
* Template:Ticks
 +
** [[Template:Ticks/seconds]]
 +
** [[Template:Ticks/minutes]]
 +
 
 +
* [[Template:Ticks/gametime]]
 +
** [[Template:Ticks/gametime/hours]]
 +
** [[Template:Ticks/gametime/days]]
 +
** [[Template:Ticks/gametime/quadrums]]
 +
** [[Template:Ticks/gametime/years]]
 +
 
 +
See also:
 +
* [[Template: Align Ticks]]

Latest revision as of 13:52, 29 January 2023

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


Usage[edit]

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

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

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

See also: