Difference between revisions of "Template:Ticks"

From RimWorld Wiki
Jump to navigation Jump to search
m (Testing)
m (Testing)
Line 1: Line 1:
<includeonly><span {{#if:{{{1|}}}|style="white-space:nowrap;" <nowiki />}} title="{{#if:{{{1|}}}| <nowiki />{{#switch:{{{1}}}|<!--
+
<includeonly>
--> ticks = Ticks{{#switch: {{{2|}}}|= |1= |s}}"> ticks|}}}} {{#if:{{{2|}}}|{{{2|}}}}}</span></includeonly>
+
{{#if: {{{ticks|}}}|
 +
;{{H:title|link=no|HOVERTEXT|Warm-Up}}
 +
:{{{ticks|}}} ticks ({{ #expr: ({{{warmup|}}}/60)round2}} sec.) }}
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
{{{{BASEPAGENAME}}/doc}}
 
{{{{BASEPAGENAME}}/doc}}
 
[[Category:Templates|Main]]
 
[[Category:Templates|Main]]
 
</noinclude>
 
</noinclude>

Revision as of 01:42, 11 October 2014


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


, 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


in one game hour, so one game day consists of 


.


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: