Plantilla:Tick/doc

De Terraria Wiki
Ir a la navegación Ir a la búsqueda

This template is to be used whenever the term "tick" is mentioned in an article. It prints an explanation of the term (see the wording below) wrapped in a <ref> tag.

Usage

{{tick | noref / short | noref / short }}

First unnamed parameter (optional)

Set to noref to suppress the <ref> tag. Set to short to print a very abbreviated explanation.

Second unnamed parameter (optional)

See above. Both parameters can be interchanged.

Notes

  • If there is at least one call of {{tick}} without noref on the page, a new section "References" or "Footnotes" with {{reflist}} needs to be added.

Examples

Code Result
{{tick|noref}} A tick is a time unit countable by the software. Most of Terraria's updating logic happens every tick. A tick has the length of 1/60th of a second, hence there are 60 ticks in a second and 3600 ticks in a minute.
{{tick|noref|short}} 1 tick = 1/60th of a second
{{tick|short|noref}} 1 tick = 1/60th of a second
The thing happens every 8400 ticks.{{tick}} The thing happens every 8400 ticks.[1]
The other thing happens every 450 ticks.{{tick|short}} The thing happens every 450 ticks.[2]
The third thing also happens every 450 ticks.{{tick}} The third thing also happens every 450 ticks.[1]

Footnotes

  1. 1,0 1,1 A tick is a time unit countable by the software. Most of Terraria's updating logic happens every tick. A tick has the length of 1/60th of a second, hence there are 60 ticks in a second and 3600 ticks in a minute.
  2. 1 tick = 1/60th of a second