Template:Buffduration

From Terraria Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Buffduration/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Buffduration/doc. (edit | history)

Use as a shortcut when adding in the buff times in the main paragraph of a buff item. An alias for this template is {{potionlength}}.

Usage

{{ potionlength | <buff duration> | eversions = no/<page name> | nomaintext = y/yes }}

First unnamed parameter
Duration of the buff, preferably using the {{duration}} template. If omitted, the template will attempt to determine the buff duration automatically via {{iteminfo}}.
eversions
By default, the template will hide information about how to cancel a buff on certain platforms based on the platforms the buff is available on (utilizing {{eversions}} with the name of the page the template is used on). Set this parameter to no to suppress this behavior and make it display information for all versions. Set it to any page's name to cause the template to take that entity as an {{eversions}} base.
Exclusivity can be manually overridden with the version parameters described on Template:Exclusive.
nomaintext
Suppresses the display of the first part of the text. Therefore, the first unnamed parameter has no effect if this parameter is set.

Examples

Code Result Notes
{{potionlength| {{duration|300}} }} This lasts for 5 minutes, but can be canceled at any time by right-clicking the icon (Desktop version), by selecting the icon using Cycle Next/Previous Buff and then pressing Remove Buff (Console version), by selecting the icon and canceling it in the equipment menu (Old-gen console version), by double-tapping the buff icon (Mobile version), or by canceling the buff from the buffs screen (Nintendo 3DS version). Standard behavior. This page ("Buffduration") does not have any exclusivity information, so all platforms are displayed.
{{potionlength| {{duration|300}} | eversions = Moon Lord }} This lasts for 5 minutes, but can be canceled at any time by right-clicking the icon (Desktop version), by selecting the icon using Cycle Next/Previous Buff and then pressing Remove Buff (Console version), or by double-tapping the buff icon (Mobile version). Specify a different page for exclusivity.
{{potionlength| {{duration|300}} | 3ds = no }} This lasts for 5 minutes, but can be canceled at any time by right-clicking the icon (Desktop version), by selecting the icon using Cycle Next/Previous Buff and then pressing Remove Buff (Console version), by selecting the icon and canceling it in the equipment menu (Old-gen console version), or by double-tapping the buff icon (Mobile version). Remove the information about explicitly specified platforms.
{{potionlength| {{duration|300}} | console = no | mobile = no }} This lasts for 5 minutes, but can be canceled at any time by right-clicking the icon (Desktop version), by selecting the icon and canceling it in the equipment menu (Old-gen console version), or by canceling the buff from the buffs screen (Nintendo 3DS version).
{{potionlength| {{duration|300}} | console = no | old-gen = no | 3ds = no }} This lasts for 5 minutes, but can be canceled at any time by right-clicking the icon (Desktop version) or by double-tapping the buff icon (Mobile version).
{{potionlength| {{duration|300}} | desktop = no | console = no | old-gen = no | mobile = no }} This lasts for 5 minutes, but can be canceled at any time by canceling the buff from the buffs screen (Nintendo 3DS version).
{{potionlength| {{duration|300}} | eversions = Moon Lord | mobile = no | 3ds = yes }} This lasts for 5 minutes, but can be canceled at any time by right-clicking the icon (Desktop version), by selecting the icon using Cycle Next/Previous Buff and then pressing Remove Buff (Console version), or by canceling the buff from the buffs screen (Nintendo 3DS version). Specify a page for exclusivity and modify the eversions manually.
Most buffs can be deactivated prematurely {{buffduration|nomaintext=y}}. Most buffs can be deactivated prematurely by right-clicking the icon (Desktop version), by selecting the icon using Cycle Next/Previous Buff and then pressing Remove Buff (Console version), by selecting the icon and canceling it in the equipment menu (Old-gen console version), by double-tapping the buff icon (Mobile version), or by canceling the buff from the buffs screen (Nintendo 3DS version). Use an entirely custom text.