Template:VendorTableHeader/Documentation

From Space Station 13 Wiki
< Template:VendorTableHeader
Revision as of 06:54, 21 July 2023 by Studenterhue (talk | contribs) (Add Usage section, with some for easy copying-and-pasting)
Jump to navigation Jump to search

This template is used to document the contents of vending machines. It automatically creates a wikitable-style table header that contains the columns Icon, Quantity, Item, Price (if toggled on), and Hidden Item?", with every column except Icon being sortable. This table is collapsible but starts open by default, and when collapsed, it shows "List of Contents" with a [Expand] link.

This is meant to be used alongside Template:VendorTableRow. That template creates row for each item inside a vendor and shows the vendor's actual contents, while this template provides the header for sorting. This allows people to sort by price, name, and more, something that is not possible with a bulleted list.

Usage

With Price Column

{{VendorTableRow|Shows Prices?=Yes}}

(insert VendorTableRow templates here)

|}

Without Price Column

{{VendorTableRow}}

(insert VendorTableRow templates here)

|}