Template:Table cell/doc

From Nookipedia, the Animal Crossing wiki
< Template:Table cell
Revision as of 12:31, July 5, 2020 by Dorsal Axe (talk | contribs) (Create documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{Table cell}}

This template is to be used to populate cells in tables with a pre-configured icon, background color, link and tooltip text. There is also the option to create a custom cell use a specified color and icon. By default, the template will create an empty gray-colored cell which is commonly used to denote a blank or non-applicable entry in a table.

As the template populates cells, it will only display correctly when it is used within tables.

The default parameter supports the following pre-configured types of cells:

Yes Villager Islander e+ e+ Islander amiibo Client Contact Cut Bug Fish Sea Creature Default
Yes Villager Islander amiibo Cut Bug Fish Sea Creature

The following optional parameters is also supported:

  • game will display the specified text in the lower right corner of the cell. This is intended to be used to display the abbreviation of games in the series.

If the cell type is set to Custom the following parameters can be used to create a customised cell:

  • Color sets the cell background to the specified HTML color
  • Icon sets the icon to the specified image file

Example

{{Table cell|Villager}}
Villager

Text can be added to display in the lower-right corner of the cell:

{{Table cell|Villager|game=AC}}
Villager
AC 

A custom cell can be created like so:

{{Table cell|Custom|color=cad3c5|icon=[[File:TortimerAMFIcon.png|20px|link=Tortimer|Tortimer!]]}}
Tortimer!