Template:BuffIdFromName

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:BuffIdFromName/doc. (edit | history)

This template returns the buff ID of a buff or debuff, based on its name. All data is from the Desktop version Desktop 1.4.4 source code. For buffs exclusive to the legacy Mobile version Mobile version, it returns the ID prefixed with "m" (e.g. m205).

Usage

{{ buffIdFromName | <buff name> }}

First unnamed parameter

Name of the buff. If there are several buffs with the same name, the ID of the first buff will be returned.

Notes

  • The buffs that flasks grant can be entered without the colon as well (see examples).

Examples

Code Result
{{buffIdFromName|Confused}} 31
{{buffIdFromName|Weapon Imbue: Fire}} 74
{{buffIdFromName|Weapon Imbue Fire}} 74
{{buffIdFromName|Pet Guinea Pig}} m202
{{buffIdFromName|}}
{{buffIdFromName|inexistent}}

See also