Vorlage:GetMountInfo
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:
namenamesubimagesummontooltip/descinamemax speedtime till max speedaccelerationjump reachheightBoostbuffextraBuffflightTimeMaxusesHoverrunSpeeddashSpeedswimSpeedjumpSpeedjumpHeightfallDamage/fall damagefatigueMaxconstantJumpblockExtraJumpsabilityChargeMaxabilityDurationabilityCooldown
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 |