Шаблон:GetSetInfo

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

This template is used to dynamically display information about an armor or vanity set (as defined in the database). It supports differentiation between variable pieces (e.g. the different headpiece choices of the early Hardmode ore armor sets).

Usage

Apart from the first two unnamed parameters, all parameters are optional.

{{setinfo | <name of the set> | <stat> | head = <custom head piece(s)> | body = <custom body piece(s)> | legs = <custom legs piece(s)> | raw = y/yes | note = n | rawdefense = y/yes | noitem = y/yes | start = <any wikitext in front of each variable piece> | end = <any wikitext behind each variable piece> | glue = <glue between {{item}} and value> | sep = <separator of the variable pieces> }}

First unnamed parameter

Set name.

Second unnamed parameter

Stat to query. Can be any of the following:

Parameter value Description
defense Sum of the defense of all set pieces.
buy / sell Sum of the buy price/sell value of all set pieces. Note that the template will always display buy prices, even if the set pieces cannot actually be bought. Prices in Defender Medals are supported.
rare Highest rarity of all of the set pieces.
setbonuslist Set bonus of the set. Will be a list of set bonuses if there are multiple (i.e. depending on the variable pieces).
head1 / head2 / head3 Armor ID of the respective piece (variable; non-variable pieces always use <slot>1) of the set. Use {{getArmorInfo}} to convert it to an item name.
body1 / body2
legs1
setbonus Set bonus of the set, but only for sets which do not have different set bonuses with different variable pieces. setbonuslist encompasses all sets, so it is safer to use that one.
setbonus_head1 / setbonus_head2 / setbonus_head3 / setbonus_head4 Set bonus which is activated when that particular variable piece is equipped.
setbonus_body1 / setbonus_body2
setbonusdefense Defense provided by the set bonus
count Total number of sets. Important: The first unnamed parameter only accepts the values armor and vanity if count is used!
head / body / legs

Manually define the set pieces, overriding the database's values. Separate multiple (variable) pieces of a slot with commas. Only available if querying for defense, buy, or sell information (also available when querying for rare information, although slots with multiple pieces will be ignored in that case). Please note that the variable piece differentiation functionality only works if no more than one slot contains variable pieces – either head, body, or legs.

raw

Display the raw data to apply completely custom formatting to it. Causes all following parameters to have no effect.

note

Hide the "(комплект)" note that is appended to defense and buy/sell output by default.

rawdefense

Only available when querying for defense information. Sets with a defense increase as set bonus are displayed in a special format in order to convey that fact. Use this parameter to display only the raw base defense.

noitem

Hide the {{item}} that is used for identifying the different variable pieces as part of the differentiation functionality. Causes $glue to have no effect. Note that if this parameter is not set, each {{item}} will be preceded by an {{options/set|item|mode=image|nolink=y|icons=n|maxsize=20x16px}} (though it is issued before $start is parsed, so use that parameter to override these item options), and followed by an {{options/reset|item}}.

start

Custom wikitext in front of each variable piece's value (or the entire output, if there are no variable pieces).

end

Custom wikitext behind each variable piece's value (or the entire output, if there are no variable pieces).

glue

Characters between the {{item}} and its value. Default: "&#8239;&#58;&nbsp;" (narrow no-break space, colon, non-breaking space: " : ")

sep

Characters between each variable piece. Has no effect when there are no variable pieces. Default: " / "

Examples

Basic

Code Result
{{setinfo|Molten armor|defense}} 25 (комплект)
{{setinfo|Molten armor|defense|note=n}} 25
{{setinfo|Familiar set|sell}} 60 SC (комплект)
{{setinfo|Molten armor|setbonuslist}} Збільшення додаткової шкоди в ближньому бою на 10%,
Несприйнятливість до вогню
{{setinfo|Wood armor|defense}} 3 (2+1) (комплект)
{{setinfo|Wood armor|defense|rawdefense=y}} 2 (комплект)
{{setinfo|Wood armor|setbonusdefense}} 1
{{getArmorInfo|head|{{setinfo|Wood armor|head1}}|name}},
{{getArmorInfo|body|{{setinfo|Wood armor|body1}}|name}},
{{getArmorInfo|legs|{{setinfo|Wood armor|legs1}}|name}}
Wood Helmet,
Wood Breastplate,
Wood Greaves

Sets with variable pieces

Code Result
{{setinfo|Adamantite armor|defense}} Адамантитовий Наголівник : 32 / Адамантитовий Шолом : 50 / Адамантитова Маска : 36 (комплект)
{{setinfo|Beetle armor|defense}} Жучиний Нагрудник : 61 / Жучиний Панцир : 73 (комплект)
{{getArmorInfo|head|{{setinfo|Adamantite armor|head1}}|name}},
{{getArmorInfo|head|{{setinfo|Adamantite armor|head2}}|name}},
{{getArmorInfo|head|{{setinfo|Adamantite armor|head3}}|name}},
{{getArmorInfo|body|{{setinfo|Adamantite armor|body1}}|name}},
{{getArmorInfo|legs|{{setinfo|Adamantite armor|legs1}}|name}}
Adamantite Headgear,
Adamantite Helmet,
Adamantite Mask,
Adamantite Breastplate,
Adamantite Leggings
{{setinfo|Adamantite armor|defense|note=n|glue=&#8239;|end=&#32;{{note|(set)}}}} Адамантитовий Наголівник 32 (комплект) / Адамантитовий Шолом 50 (комплект) / Адамантитова Маска 36 (комплект)
{{setinfo|Adamantite armor|setbonuslist}} Адамантитовий Наголівник : Зменшення витрат мани на 19% / Адамантитовий Шолом : Збільшення швидкості ближнього бою та пересування на 20% / Адамантитова Маска : Шанс зберегти боєприпаси 25%
<table style="background:transparent;">{{setinfo|Adamantite armor|setbonuslist|start=<tr><td><ul style{{=}}"margin-top:0;"><li>|glue=</li></ul></td><td>|end=</td></tr>|sep=}}</table>
  • Адамантитовий Наголівник
Зменшення витрат мани на 19%
  • Адамантитовий Шолом
Збільшення швидкості ближнього бою та пересування на 20%
  • Адамантитова Маска
Шанс зберегти боєприпаси 25%
{{setinfo|Beetle armor|setbonuslist|start=<nowiki/>
*|sep=}}
  • Жучиний Нагрудник : Жуки збільшують шкоду та швидкість у ближньому бою
  • Жучиний Панцир : Жуки захищають вас від шкоди
* {{setinfo|Beetle armor|setbonus_body1}}
* {{setinfo|Beetle armor|setbonus_body2}}
  • Жуки збільшують шкоду та швидкість у ближньому бою
  • Жуки захищають вас від шкоди

<before>
{{setinfo|Adamantite armor|defense
|start=<$start>
|glue=<$glue>
|end=<$end>
|sep=<$sep>
}}
<after>

<before><$start>Адамантитовий Наголівник<$glue>32<$end><$sep><$start>Адамантитовий Шолом<$glue>50<$end><$sep><$start>Адамантитова Маска<$glue>36<$end> (комплект)<after>

Begin
{{setinfo|Adamantite armor|defense
|start=(
|glue=-
|end=)
|sep=__
}}
Finish

Begin(Адамантитовий Наголівник-32)__(Адамантитовий Шолом-50)__(Адамантитова Маска-36) (комплект)Finish

Custom set pieces

Code Result
{{setinfo||head=Magic Hat|body=Gypsy Robe|defense}} 4 (комплект)
{{setinfo||head=Magic Hat|body=Diamond Robe|sell}} 3 GC60 SC (комплект)
{{setinfo||head=Wizard Hat|body=Diamond Robe|sell|note=n}} {{note|(set with Wizard Hat)}} 3 GC20 SC (set with Wizard Hat)
{{setinfo||head=Wizard Hat|body=Gypsy Robe, Amethyst Robe, Topaz Robe, Sapphire Robe, Emerald Robe, Ruby Robe, Diamond Robe|defense|note=n}} {{note|(set with Wizard Hat)}} Gypsy Robe : 6 / Аметистова Мантія : 4 / Топазова Мантія : 5 / Сапфірова Мантія : 5 / Смарагдова Мантія : 6 / Рубінова Мантія : 6 / Діамантова Мантія : 7 (set with Wizard Hat)
{{setinfo||head=Wood Helmet|body=Vortex Breastplate|rare}} Рівень рідкості: 10
{{setinfo||head=Apprentice's Hat, Dark Artist's Hat|body=Tiki Shirt|legs=Tiki Pants|buy}} Капелюх Початківця : 1 PC + 150000*15 Медаль Захисника / Капелюх Темного Митця : 1 PC + 500000*50 Медаль Захисника (комплект)
{{setinfo|head=Gentleman's Beard, Gentleman's Long Beard, Gentleman's Magnificent Beard|Gentleman's set|sell}} 1 GC80 SC (комплект)