Difference between revisions of "Template:Table cell"

From Nookipedia, the Animal Crossing wiki
(Added link in Table cell for yes and no. That is to say, Table cell|yes and |no now support links)
m (Removing unused e+, client, and contact parameters)
Line 6: Line 6:
 
|villager=8de28d
 
|villager=8de28d
 
|islander=87ddfe
 
|islander=87ddfe
|e+=f4f77c
 
|e+ islander=87ddfe
 
 
|amiibo=f9ab6c
 
|amiibo=f9ab6c
|client=fd9b9c
 
|contact=f9e1a6
 
 
|cut=E6E6E6
 
|cut=E6E6E6
 
|bug=EDF9D2
 
|bug=EDF9D2
Line 27: Line 23:
 
|villager=[[File:Tree icon.png|20px|alt={{{1|Yes}}}|link=Villager|Appears as a villager]]
 
|villager=[[File:Tree icon.png|20px|alt={{{1|Yes}}}|link=Villager|Appears as a villager]]
 
|islander=[[File:Animal Island PG Icon.png|15px|alt={{{1|Yes}}}|link=Islander|Appears as an islander]]
 
|islander=[[File:Animal Island PG Icon.png|15px|alt={{{1|Yes}}}|link=Islander|Appears as an islander]]
|e+=[[File:E+ logo.png|20px|alt={{{1|Yes}}}|link=Doubutsu no Mori e+|Appears only in ''Doubutsu no Mori e+'']]
 
|e+ islander=[[File:E+ logo.png|20px|alt={{{1|Yes}}}|link=Doubutsu no Mori e+|Appears only in ''Doubutsu no Mori e+'']][[File:Animal Island PG Icon.png|15px|alt={{{1|Yes}}}|link=Islander|Appears as an islander]]
 
 
|amiibo=[[File:Amiibo Icon.png|32px|alt={{{1|Yes}}}|link=Welcome amiibo update|Appears in ''Welcome amiibo'']]
 
|amiibo=[[File:Amiibo Icon.png|32px|alt={{{1|Yes}}}|link=Welcome amiibo update|Appears in ''Welcome amiibo'']]
|client=[[File:ACHHD Happy Home Academy logo.png|30px|alt={{{1|Yes}}}|link=Villager|Appears as a client]]
 
|contact=[[File:ACPC Campground logo.png|25px|alt={{{1|Yes}}}|link=Villager|Appears as a contact]]
 
 
|cut=[[File:Acnl-silveraxe.png|25px|alt={{{1|Yes}}}|link=Villager|Data exists in game but is unused]]
 
|cut=[[File:Acnl-silveraxe.png|25px|alt={{{1|Yes}}}|link=Villager|Data exists in game but is unused]]
 
|bug=[[File:Bug NH Icon.png|30px|alt={{{1|Yes}}}|link=|Bug]]
 
|bug=[[File:Bug NH Icon.png|30px|alt={{{1|Yes}}}|link=|Bug]]

Revision as of 21:43, April 17, 2021

Template documentation (view)


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 No Green Yellow Orange Red Gray Villager Islander amiibo nh1.9 nh2.0 Cut Bug Fish Sea Creature Default
Yes No Green Yellow Orange Red Gray Villager Islander amiibo Data exists in game but is unused 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:Tortimer NH Character Icon.png|20px|link=Tortimer|Tortimer!]]}}
Tortimer!