Template:Table

From Nookipedia, the Animal Crossing wiki
Table title
Header 1 Header 2
Value 1 Value 2

Usage

{{Table
|width       = table width (default = 100%)
|title       = table title
|tablebg     = table background color (no preceding #-sign)
|collapsible = enables show/hide button (true or false)
|collapsed   = sets table default state (true or false)
|headerbg    = header background color (no preceding #-sign)
|col1        = column heading 1 (required)
|col2        = column heading 2 (required)
|col3        = column heading 3 (optional)
|col4        = column heading 4 (optional)
|col5        = column heading 5 (optional)
|col6        = column heading 6 (optional)
|col7        = column heading 7 (optional)
|col8        = column heading 8 (optional)
|col9        = column heading 9 (optional)
|col10       = column heading 10 (optional)
|item1       = name of item #1 (optional)
|item2       = name of item #2 (optional)
|...           and so on...
|item100     = name of item #100 (optional)
|v1a         = value of first cell in first column
|v1b         = value of first cell in second column
|...           and so on...
|v1j         = value of first cell in tenth column
|v2a         = value of second cell in first column
|...           and so on...
|v100j       = value of 100th cell in 10th column
}}

Notes

  • The table is coded to accept up to 10 items, and can span up to 10 columns.
  • The table is coded to pull data from the Nookipedia database. To use this function, use the item parameters. The template will automatically match the name provided for "item" with the values provided for col1, col2 etc.
  • To manually enter data into each cell, use the v parameters (v stands for value).