From Nookipedia, the Animal Crossing wiki
Jump to navigation Jump to search

This article details the use of tables on Nookipedia. Typically the code for a table is formatted and stored on a template page, and then this code is called using the proper template call. These templates can be found at Category:Table templates. Some articles do include Wikitext table code within the page itself, however.

As of right now, Nookipedia does not have a standard way of generating or formatting tables and implementation tends to vary from article to article. As Project Database moves forward, a standard procedure may be developed and if so will be noted on this page.

Creating tables[edit]

All tables begin with {| and end with |}. For example:

You type You get
{| style="font-size:125%"
! Item
! Amount
! Cost
| Bread
| x4
| 3.00
| Butter
| x1
| 5.00
|- style="text-decoration:underline"
! Total
| style="font-weight:bold" | 8.00
Item Amount Cost
Bread x4 3.00
Butter x1 5.00
Total 8.00

Each new line starts with the a pipe character | which creates a new cell. A line with with a pipe-dash |- creates a new row. Using ! instead of | to start a line creates bold, centered text. Note that these symbols will only generate a table if they are placed at the beginning of a line.

CSS can be used style tables, rows, and cells. An example can be seen in the above table where style="font-size:125%" is added after the opening table tag to style the entire table. style="text-decoration:underline" is added after a new row tag to style that specific row. A method to style an existing cell can be seen in the bottom right cell where the total of 15.00 is bolded by using the code style="font-weight:bold".