Шаблон:Buffduration

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку
Цей шаблон i18n-ready, що означає, що його легко локалізувати для різних мов. Будь ласка, ознайомтеся з i18n та l10n для шаблонів, щоб дізнатися більше.
Див. «Шаблон:Buffduration/l10n» для локалізації цього шаблону.
Template-info.svg Документація Наведена нижче документація запозичена з «Шаблон:Buffduration/doc». (редагувати | історія)
Для більш повної чи актуальної інформації ви можете переглянути документацію англійською.

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 (ПК версіяВерсія для tModLoader), by selecting the icon and canceling it in the equipment menu (Консольна версіяВерсія для консолей старого поколінняNintendo Switch), by double-tapping the buff icon (Мобільна версія), чи by canceling the buff from the buffs screen (Версія для Nintendo 3DS). 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 (ПК версія), by selecting the icon and canceling it in the equipment menu (Консольна версія), чи by double-tapping the buff icon (Мобільна версія). 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 (ПК версіяВерсія для tModLoader), by selecting the icon and canceling it in the equipment menu (Консольна версіяВерсія для консолей старого поколінняNintendo Switch), чи by double-tapping the buff icon (Мобільна версія). 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 (ПК версіяВерсія для tModLoader), by selecting the icon and canceling it in the equipment menu (Версія для консолей старого поколінняNintendo Switch), чи by canceling the buff from the buffs screen (Версія для Nintendo 3DS).
{{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 (ПК версіяВерсія для tModLoader), by selecting the icon and canceling it in the equipment menu (Nintendo Switch), чи by double-tapping the buff icon (Мобільна версія).
{{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 right-clicking the icon (Версія для tModLoader), by selecting the icon and canceling it in the equipment menu (Nintendo Switch), чи by canceling the buff from the buffs screen (Версія для Nintendo 3DS).
{{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 (ПК версія), by selecting the icon and canceling it in the equipment menu (Консольна версія), чи by canceling the buff from the buffs screen (Версія для Nintendo 3DS). 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 (ПК версіяВерсія для tModLoader), by selecting the icon and canceling it in the equipment menu (Консольна версіяВерсія для консолей старого поколінняNintendo Switch), by double-tapping the buff icon (Мобільна версія), чи by canceling the buff from the buffs screen (Версія для Nintendo 3DS). Use an entirely custom text.