Template:Shop/doc

For use with NPC vendors.

Usage
All parameters are optional. $($ shop | width1 = &lt;item column width&gt; | width2 = &lt;cost column width&gt; | width3 = &lt;availability column width&gt; | header = &lt;header text&gt; | sortable = n/no | note = n/no | notenohappiness = y/yes | align = &lt;align attribute&gt; | css = &lt;custom CSS&gt; | { shop row | &lt;item name of sold item 1&gt; | &lt;availability&gt; | value = &lt;buy value&gt; | image = &lt;displayed image&gt; }} | { shop row | &lt;item name of sold item 2&gt; | &lt;availability&gt; | value = &lt;buy value&gt; | image = &lt;displayed image&gt; }} ... | { shop row | &lt;item name of sold item n&gt; | &lt;availability&gt; | value = &lt;buy value&gt; | image = &lt;displayed image&gt; }} }}

The vendor's shop inventory content using shop row; see below. Can be continued ad infinitum.
 * First, second, third, etc. unnamed parameters

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

Header text of the template; defaults to "".
 * header

Makes the lists not sortable.
 * sortable

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

Set this parameter to omit the part regarding Happiness from the note. Has no effect if.
 * notenohappiness

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

Custom CSS for the table.
 * css / style

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

Name of the sold item.
 * First unnamed parameter

The circumstances under which the item is sold; defaults to "".
 * Second 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).
 * Third unnamed parameter

Change the sold item's displayed image.
 * Fourth unnamed parameter