Terraria Wiki
Advertisement
This template is i18n-ready, which means it is easy to localize for different languages. Please see 18n & l10n for template to learn more.
See Template:Buff infobox/l10n for the localization of this template.
Template-info Documentation The documentation below is transcluded from Template:Buff infobox/doc. (edit | history)

This template is used for displaying the infobox of a buff or debuff.

Usage

{{buff infobox
| auto = 
| name = 
| lname = 
| namesub = 
| image = 
| type = 
| cause = 
| effects = 
| duration = 
| tooltip = 
| id = 
| <item to prevent 1> | <item to prevent 2> | ... | <item to prevent n>
}}
auto

The data which is to be displayed can be manually entered when calling the template, but the vast majority of data is generated automatically. To enable automatic data, use this parameter and set it to the ID of the buff (alternatively: auto=yes and either id=<item ID>, name=<buff name>, or nothing else – the latter two methods will cause the template to automatically generate the ID using {{buffNameFromId}}, with the last method using the page title for name reference). This way, all relevant buff parameters are set automatically. However, they can still be overridden and manually entered parameters always take precedence over the automatic ones.

name

English name of the buff.

lname

Localized name of the buff, for language subpages. Defaults to {{tr|$name}}, i.e. the translation database entry of the name parameter.

namesub

Will be displayed underneath the title of the infobox.

image

Custom image code. Use the full [[File:]] syntax.

type

Buff/Debuff. Categorizes the page accordingly.

cause

Cause of the buff. Please only use this if it is possible to explain the cause in a very brief way, e.g. | cause = {{item|Honey}} for the Honey buff. Do not enter lists of items or enemies here; put them in the "Causes" section of the article text instead.

effects

Brief description of the buff's consequences. Can be omitted if the tooltip sufficiently and unambiguously describes the effects.

tooltip

Tooltip of the buff. Any occurrence of the string @@@@ in the parameter value will be replaced by the automatically generated data. This can be used to mix automatic and manual data.

id

ID of the buff.

Unnamed parameters

Names of items that can be equipped to prevent the infliction of the debuff.

Advertisement