Template:ProjectileIdFromInternalName

From Terraria Wiki
Jump to navigation Jump to search
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg Documentation The documentation below is transcluded from Template:ProjectileIdFromInternalName/doc. (edit | history)

This template returns the ID of a projectile based on its internal name.

Usage

{{ projectileIdFromInternalName | <internal projectile name> }}

First unnamed parameter

Internal name of the projectile. If it is empty or invalid, the template will return an empty string. Count is a special internal name which returns the greatest possible projectile ID plus 1.

Examples

Code Result
{{projectileIdFromInternalName|WoodenArrowFriendly}} 1
{{projectileIdFromInternalName|Count}} 1022

See also