Template:GetProjectileInfo

From Terraria Wiki
Jump to navigation Jump to search
This template uses Lua.
This template uses Module:Projectileinfo, a script written in the Lua programming language. To learn more about Lua, see Terraria Wiki:Lua.
Template-info.svg Documentation The documentation below is transcluded from Template:GetProjectileInfo/doc. (edit | history)

This template is used to dynamically display information about a projectile. It is based on Module:Projectileinfo, which takes its data directly from the source code.

{{projectileinfo}} is an alias for {{getProjectileInfo}}.

Usage

{{ projectileinfo | <ID of the projectile> | <specific stat> }}

Special: {{projectileinfo||count}} results in: 1022

First unnamed parameter

ID of the projectile.

Second unnamed parameter

Specific stat to be displayed. Can be any of the following, in addition to the stats displayed on Module:Projectileinfo:

  • name
  • image

Examples

Code Result
{{projectileinfo|87|name}} Green Fairy
{{projectileinfo|147|image}} Corrupt Spray.png
{{projectileinfo|1|arrow}} true
{{projectileinfo||count}} 1022