틀:Shop
For use with NPC vendors.
Usage
All parameters are optional.
| 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 "Inventory".
- 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 "Always available.".
- 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.
- Pages using DynamicPageList3 dplvar parser function
- Pages using DynamicPageList3 parser function
- Pages using DynamicPageList3 dplreplace parser function
- 틀 루프가 있는 문서
- 구식 enclose 속성을 사용하는 문서
- I18n-ready templates
- Templates
- Shortcut templates