:GetMountInfo/doc

Terraria Wiki
둘러보기로 이동 검색으로 이동

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

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: 틀:Dotlist/start 틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item틀:Dotlist/item 틀:Dotlist/end

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}} 틀:GetMountInfo
{{getMountInfo|13|namesub}} 틀:GetMountInfo
{{getMountInfo|13|image}} 틀:GetMountInfo
{{getMountInfo|14|tooltip}} 틀:GetMountInfo
{{getMountInfo|47|iname}} 틀:GetMountInfo
{{getMountInfo|Witch's Broom|max speed}} 틀:GetMountInfo
{{getMountInfo|Witch's Broom|max speed|raw=y}} tiles/second 틀:GetMountInfo tiles/second
{{mph|{{getMountInfo|Witch's Broom|acceleration}} tiles}}/second 틀:Mph/second
{{getMountInfo|Witch's Broom|time till max speed}} 틀:GetMountInfo
{{getMountInfo|Witch's Broom|time till max speed|raw=y}} 틀:GetMountInfo
{{getMountInfo||count}} 틀:GetMountInfo