Difference between revisions of "Template:Ticks/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(→‎Usage: Typo)
(4 intermediate revisions by 3 users not shown)
Line 10: Line 10:
  
 
== Examples ==
 
== Examples ==
<pre>{{ticks|255}}</pre>
 
{{ticks|255}}
 
  
 +
===== Example 1 =====
 +
<pre>The Great Bow has a cooldown period of {{ticks|255}}, making it rather slow for a ranged weapon.</pre>
 +
The Great Bow has a cooldown period of {{ticks|255}}, making it rather slow for a ranged weapon.
  
<pre>{{ticks|60}}<nowiki/> There is text here!</pre>
+
===== Example 2 =====
{{ticks|60}}<nowiki/> There is text here!
+
<pre>There are {{ticks|2500}} in one game hour, so one game day consists of {{ticks|60000}}. Figures specified in seconds assume the game is being played at normal speed.</pre>
 +
There are {{ticks|2500}} in one game hour, so one game day consists of {{ticks|60000}}. Figures specified in seconds assume the game is being played at normal speed.
 +
 
 +
<includeonly>[[Category:Formatting templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 19:32, 1 August 2019

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|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}}. 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 (16.67 mins). Figures specified in seconds assume the game is being played at normal speed.