Difference between revisions of "Template:VendorTableHeader/Documentation"

From Space Station 13 Wiki
Jump to navigation Jump to search
(Start documentation)
 
(Add Usage section, with some for easy copying-and-pasting)
Line 2: Line 2:


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.
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===
<pre>
{{VendorTableRow|Shows Prices?=Yes}}
(insert VendorTableRow templates here)
|}
</pre>
===Without Price Column===
<pre>
{{VendorTableRow}}
(insert VendorTableRow templates here)
|}
</pre>

Revision as of 06:54, 21 July 2023

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)

|}