Шаблон:Modifier

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

This template is used to display a weapon's or tool's best modifier.

Usage

{{ modifier | <item category> | plural = y/yes (optional) | article = <article name> (optional) }}

ПараметрОписТипСтатус
Item category1
How to roughly categorize the item, which determines its best modifier.
Приклад:
melee
Короткий текст
обов'язковий
Plural page titleplural
Set if the page title is plural, e.g. on "Luminite Axes".
Автоматичне значення:
True (1/y/yes)
Логічне значення
необов'язковий
Custom articlearticle
Set a custom article name
Приклад:
This
Рядок
необов'язковий

Для цього шаблону краще внутрішнє форматування параметрів.

List of item categories
Parameter value Description
melee Most melee weapons.
meleealt Weapons that cannot get size modifiers. For example: yoyos, flails, and spears.
harvest Melee "weapons" that are mainly used for harvesting tiles.
harvestalt Weapons listed on Mining speed where Legendary is equivalent to Light in speed boost.
harvestlow Melee "weapons" with very low base damage (preventing them from getting Legendary) that are mainly used for harvesting tiles.
harvestlowalt Weapons that have very low base damage and are listed on Mining speed where Legendary is equivalent to Light in speed boost.
ranged Most ranged weapons.
rangednokb Ranged weapons with no knockback.
magic Most magic weapons.
magicsummon Magic weapons that continue dealing damage after the user switches weapons (and have non-zero knockback).
magicnokb Magic weapons with no knockback.
magiclow Magic weapons with a base mana cost of 4.
magicverylow Magic weapons with a base mana cost of 3 or less.
magiclownokb Magic weapons with a base mana cost of 3 or less and no knockback.
summon Most summon weapons.
whip Whips.
nokb Weapons with no knockback.
nokbalt Weapons with no knockback whose speed cannot be altered either.
prefixnote Outputs the note for items beginning with "the" and the grammar bug.
none Any weapon that cannot be reforged.

The first parameter may also be omitted, in which case the template will automatically attempt to determine the correct item category. It takes the page name as the item by default; use the $item or $itemid parameters to overwrite this. However, note that a first parameter should always be provided on regular item pages, since this functionality is merely an aid for selecting the category. The algorithm may fail in certain cases and it is not optimized for usage within an article.

Example

Code Result
{{modifier|melee|plural=1}} Their best modifier is Legendary.
{{modifier|item=Wand of Sparking}} !!Error: (Please input a valid value. See {{modifier}}.)
{{lang/set|fr}} Set language to French
{{modifier|none|article=Le}} Le modifier ne peut pas être reforgé(e), et de ce fait ne peut pas avoir de modificateurs.