Шаблон:Shop

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

For use with NPC vendors.

Usage

All parameters are optional.

{{ shop
| width1 = <item column width> | width2 = <cost column width> | width3 = <availability column width>
| header = <header text> | sortable = n/no | note = n/no | notenohappiness = y/yes
| align = <align attribute> | css = <custom CSS>
| {{ shop row | <item name of sold item 1> | <availability> | value = <buy value> | image = <displayed image> }}
| {{ shop row | <item name of sold item 2> | <availability> | value = <buy value> | image = <displayed image> }}
...
| {{ shop row | <item name of sold item n> | <availability> | value = <buy value> | image = <displayed image> }}
}}
First, second, third, etc. unnamed parameters

The vendor's shop inventory content using {{shop row}}; see below. Can be continued ad infinitum.

width1, width2, width3

The width of the respective column in pixels by default. When omitted, the lowest possible width would be selected automatically for the column.

header

Header text of the template; defaults to "Інвентар".

sortable

Makes the lists not sortable.

note

Set this parameter to remove the note about shop prices Happiness from above the table.

notenohappiness

Set this parameter to omit the part regarding Happiness from the note. Has no effect if |note=n.

align

Sets the align attribute, e.g. center, right.

css / style

Custom CSS for the table.

{{shop row}} parameters

The first unnamed parameter is required, all others are optional.

First unnamed parameter

Name of the sold item.

Second unnamed parameter

The circumstances under which the item is sold; defaults to "Завжди в наявності.".

Third unnamed parameter

Override the automatic buy value of the item. Use the {{coin}} or {{cc}}, {{sc}}, {{gc}}, and {{pc}} templates. Supports @@@@ (the value of the item is substituted in its place).

Fourth unnamed parameter

Change the sold item's displayed image.