Template:Jump reach

From Terraria Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Jump reach/doc. (edit | history)

This template is used for calculating the total jump reach from jump duration, jump speed, and gravity.

Usage

{{ jump reach | <jump duration> | <jump speed> | <gravity> | raw = y/yes }}

The first three unnamed parameters can also be called by their names. All of them accept any valid {{#expr:}} string.

First unnamed parameter or jump duration

The given jump duration. Defaults to 15, the base value of a default character.

Second unnamed parameter or jump speed

The given jump speed. Defaults to 5.01, the base value of a default character.

Third unnamed parameter or gravity

The given gravity. Defaults to 0.4, the default value outside of Space.

raw

Set this parameter to suppress {{formatnum:}} being applied to the output.

Examples

Code Result
{{jump reach}} 6.27
{{jump reach|gravity=0.0001}} 7,848.48
{{jump reach|gravity=10^-4}} 7,848.48
{{jump reach|gravity=0.0001|raw=y}} 7848.48
{{jump reach|52/2|6.51}} tiles 13.23 tiles