Vorlage:GetMountInfo

Aus Terraria Wiki
Zur Navigation springen Zur Suche springen
Template-info.svg Dokumentation Die folgende Dokumentation stammt von der Seite Vorlage:GetMountInfo/Dokumentation. (bearbeiten | Versionsgeschichte)
Siehe auch die englische Vorlagenseite: Template:GetMountInfo. Sie enthält möglicherweise umfassendere oder aktuellere Informationen.
Important.svg
Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

This template is used to dynamically retrieve information about a mount.

{{mountinfo}} is an alias for {{getMountInfo}}.

Usage

{{ mountinfo | <mount name or ID> | id = <mount ID> | <stat to query> | raw = y/yes }}

First unnamed parameter, id

Name/ID of the mount. Only one out of the two parameters should be used.

Second unnamed parameter

Information to retrieve, can be any of the following:

  • name
  • namesub
  • image
  • summon
  • tooltip / desc
  • iname
  • max speed
  • time till max speed
  • acceleration
  • jump reach
  • heightBoost
  • buff
  • extraBuff
  • flightTimeMax
  • usesHover
  • runSpeed
  • dashSpeed
  • swimSpeed
  • jumpSpeed
  • jumpHeight
  • fallDamage / fall damage
  • fatigueMax
  • constantJump
  • blockExtraJumps
  • abilityChargeMax
  • abilityDuration
  • abilityCooldown

Can also be count to retrieve the total number of mounts. The name/ID is ignored in that case.

For the acceleration, runSpeed, dashSpeed, and swimSpeed stats, the output will already be converted from the internal pixels-per-tick to a tiles-per-second velocity.

raw

Some stats receive some formatting via templates like {{mph}} or {{duration}} when displayed; use this parameter to prevent that and display the raw value, e.g. for use in expressions.

Examples

Code Result
{{getMountInfo|3|name}} Slime Mount
{{getMountInfo|13|namesub}} Wooden
{{getMountInfo|13|image}} Wooden Minecart (mount).png
{{getMountInfo|14|tooltip}} Crash into anyone... and EVERYONE!
{{getMountInfo|47|iname}} WallOfFleshGoat
{{getMountInfo|Witch's Broom|max speed}} 46 mph
{{getMountInfo|Witch's Broom|max speed|raw=y}} tiles/second 33.75 tiles/second
{{mph|{{getMountInfo|Witch's Broom|acceleration}} tiles}}/second 49 mph/second
{{getMountInfo|Witch's Broom|time till max speed}} 0,94 Sekunden
{{getMountInfo|Witch's Broom|time till max speed|raw=y}} 0.9375
{{getMountInfo||count}} 54