Template:Shop/doc

For use with NPC vendors.

Usage
$($shop|width1 =  (optional)|width2 =  (optional)|width3 =  (optional)|header =  (optional)|align =  (optional)|css = (optional)|sortable = no (optional)|note = no (optional) |{shop row||(optional)|value =  (optional)|image =  (optional)}} |{shop row||(optional)|value =  (optional)|image =  (optional)}} . . . |{shop row||(optional)|value =  (optional)|image = <Displayed image> (optional)}} }}

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

Makes the lists not sortable.
 * sortable = no (optional)

''Due to the implementation, sortable = y will also disable sorting, as will any other string. The code checks if the parameter is empty, and only enables sorting when it is empty.''

Changes the header text of the template.
 * header (optional)

Sets the align attribute, align="center", align="right". There shouldn't be quote marks in this parameter.
 * align (optional)

Custom css for the table.
 * css / style (optional)

Set to remove the note about Happiness from above the table.
 * note = no (optional)

''Due to the implementation, note = y will also remove the note, as will any other string. The code checks if the parameter is empty, and only shows the note when it is empty.''

Name of the sold item.
 * <Name of the item>

The circumstances under which the item is sold. Leave empty for "Always available."
 * <Availability> (optional)

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).
 * value (optional)

Change the sold item's displayed image.
 * image (optional)