Nookipedia:Project Items/Table Templates

The following sections show you how each template works to create different parts of the table. If you're still confused on how to use these templates, head over to some of the more completed furniture pages and edit the page to study the coding structure. If you need any one-on-one help, you can contact any of our members, preferably our more active, experienced ones (or sunmarsh, he's the complete moron absolute genius who made them). Oh, and remember to use the preview button before you save!

Template:TableTop
This template will automatically create a collapsible container for the table as well as its column heading labels. By inputting the correct parameters, the table will automatically generate a table with the appropriate amount of columns for the list you are creating. It is generally advisable however to create a new template using TableTop, with the ability to change the name of the template (e.g. Template:TableTop NH Furniture).

Usage

 * title - Specifies the title of the subject in question. Recommended to format parameter as  if creating a template using TableTop.
 * color - Specifies the color of the TableTop. List of colors is available here.
 * collapsible - Specifies if the table can be collapsed.
 * collapsed - Specifies if the table is collapsed by default.
 * sortable - Specifies if the table can sort values.
 * column1, column2, etc. - Species the column's name when in use.

Example
Let's say you want to create a furniture table for the Antique Series in. You would first create a template using TableTop, such as with Template:TableTop NH Furniture, and then output the following wikitext code:

and it produces:

Template:TableContent
This template formats each cell's contents appropriately and automatically creates new rows. It does not have any required parameters. This template is only advisable for games that do not currently have Cargo data.

Example
Let's try the template out on a bug table...

Produces:

Template:TableFooter
This template will produce the appropriate closing tags for a table and its container. If you don't end your tables with this tag, they will take up the entire page and may 'swallow' other elements on the page. That's not good! Your tables don't deserve this!

Optionally, the TableFooter can also use the parameter  either to provide attribution or to annotate some parts of the table. There is also an optional  parameter provided, though its use will soon be deprecated following consolidation of the two separate tables for furniture and interior items into one.

Example
Output: