Owl.png Wiki reading hard on the eyes? Try out our Dark Theme! Visit the preferences page while logged in and select Hydra Dark. Owl.png

Template:GetSetInfo

From Terraria Wiki
Jump to: navigation, 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:GetSetInfo/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:GetSetInfo/doc. (edit | history)

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[edit source]

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

{{getSetInfo | <name of the set> | <stat> | head = <custom head piece(s)> | body = <custom body piece(s)> | legs = <custom legs piece(s)> | raw = y | note = n | rawdefense = y | item = n | 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.
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 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. 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 "(set)" 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.

item

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 {{item/options|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 {{item/options|reset}}.

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[edit source]

Basic[edit source]

Code Result
{{getSetInfo|Molten armor|defense}} 25 (set)
{{getSetInfo|Molten armor|defense|note=n}} 25
{{getSetInfo|Familiar set|sell}} 6000*60 (set)
{{getSetInfo|Molten armor|setbonuslist}} 17% extra melee damage
{{getSetInfo|Wood armor|defense}} 3 (2+1) (set)
{{getSetInfo|Wood armor|defense|rawdefense=y}} 2 (set)
{{getSetInfo|Wood armor|setbonusdefense}} 1
{{getArmorInfo|head|{{getSetInfo|Wood armor|head1}}|name}},
{{getArmorInfo|body|{{getSetInfo|Wood armor|body1}}|name}},
{{getArmorInfo|legs|{{getSetInfo|Wood armor|legs1}}|name}}
Wood Helmet,
Wood Breastplate,
Wood Greaves

Sets with variable pieces[edit source]

Code Result
{{getSetInfo|Adamantite armor|defense}} Adamantite Headgear : 32 / Adamantite Helmet : 50 / Adamantite Mask : 36 (set)
{{getSetInfo|Beetle armor|defense}} Beetle Scale Mail : 61 / Beetle Shell : 73 (set)
{{getArmorInfo|head|{{getSetInfo|Adamantite armor|head1}}|name}},
{{getArmorInfo|head|{{getSetInfo|Adamantite armor|head2}}|name}},
{{getArmorInfo|head|{{getSetInfo|Adamantite armor|head3}}|name}},
{{getArmorInfo|body|{{getSetInfo|Adamantite armor|body1}}|name}},
{{getArmorInfo|legs|{{getSetInfo|Adamantite armor|legs1}}|name}}
Adamantite Headgear,
Adamantite Helmet,
Adamantite Mask,
Adamantite Breastplate,
Adamantite Leggings
{{getSetInfo|Adamantite armor|defense|note=n|glue=&#8239;|end=&#32;{{note|(set)}}}} Adamantite Headgear 32 (set) / Adamantite Helmet 50 (set) / Adamantite Mask 36 (set)
{{getSetInfo|Adamantite armor|setbonuslist}} Adamantite Headgear : 19% reduced mana usage / Adamantite Helmet : 18% increased melee and movement speed / Adamantite Mask : 25% chance to not consume ammo
<table style="background:transparent;">{{getSetInfo|Adamantite armor|setbonuslist|start=<tr><td><ul style{{=}}"margin-top:0;"><li>|glue=</li></ul></td><td>|end=</td></tr>|sep=}}</table>
  • Adamantite Headgear
19% reduced mana usage
  • Adamantite Helmet
18% increased melee and movement speed
  • Adamantite Mask
25% chance to not consume ammo
{{getSetInfo|Beetle armor|setbonuslist|start=<nowiki/>
*|sep=}}
  • Beetle Scale Mail : Beetles increase your melee damage and speed
  • Beetle Shell : Beetles protect you from damage
* {{getSetInfo|Beetle armor|setbonus_body1}}
* {{getSetInfo|Beetle armor|setbonus_body2}}
  • Beetles increase your melee damage and speed
  • Beetles protect you from damage

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

<before><$start>Adamantite Headgear<$glue>32<$end><$sep><$start>Adamantite Helmet<$glue>50<$end><$sep><$start>Adamantite Mask<$glue>36<$end> (set)<after>

Lorem
{{getSetInfo|Adamantite armor|defense
|start=(
|glue=-
|end=)
|sep=__
}}
ipsum

Lorem(Adamantite Headgear-32)__(Adamantite Helmet-50)__(Adamantite Mask-36) (set)ipsum

Custom set pieces[edit source]

Code Result
{{getSetInfo||head=Magic Hat|body=Gypsy Robe|defense}} 4 (set)
{{getSetInfo||head=Magic Hat|body=Diamond Robe|sell}} 36000*360 (set)
{{getSetInfo||head=Wizard Hat|body=Diamond Robe|sell|note=n}} {{note|(set with Wizard Hat)}} 32000*320 (set with Wizard Hat)
{{getSetInfo||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 : 4 / Amethyst Robe : 2 / Topaz Robe : 3 / Sapphire Robe : 3 / Emerald Robe : 4 / Ruby Robe : 4 / Diamond Robe : 5 (set with Wizard Hat)
{{getSetInfo||head=Wood Helmet|body=Vortex Breastplate|rare}} Rarity level: 10