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


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:Inventory/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Inventory/doc. (edit | history)

For use with NPC vendors.

Usage[edit source]

|<item name>|<value>|<availability>
|<item name>|<value>|<availability>
Optional column width parameters may be sent as first 3 parameters, followed by a widths flag

Unnamed Parameters: 1, 2, 3, Named Parameter: widths=y
Column widths are in pixels, 'px' is not necessary.

Unnamed Parameter 1, 4, 7, etc

The name of the sold item.

Unnamed Parameter 2, 5, 8, etc

The value at which said item is sold at. Use the {{coin}} or {{cc}}, {{sc}}, {{gc}}, and {{pc}} templates. Any instance of @@@@ within these parameters is replaced with the automatic value gathered by {{iteminfo}}.

Unnamed Parameter 3, 6, 9, etc

The circumstances under which the item is sold. Leave empty for "Always available."

Example[edit source]

|Sake|{{sc|5}}|3% chance
|Dirt Rod|@@@@ {{eicons|}}<br/>{{gc|20}} {{eicons||invert=y}}|
|Code 1|{{gc|5}}|1.5% chance {{small|after defeating <br/>the [[Eye of Cthulhu]]}}

results in:

Item Cost Availability

SakeSakeDesktop, Console, Old-gen console, and Mobile Versions 500*5 Silver Coin.png 3% chance
Dirt RodDirt Rod 50000*5 Gold Coin.png Desktop, Console, and Mobile Versions
200000*20 Gold Coin.png Old-gen console version3DS Version
Always available.
Code 1Code 1Desktop, Console, and Mobile Versions 50000*5 Gold Coin.png 1.5% chance after defeating
the Eye of Cthulhu