Template:G/Cell/doc

This template is the display logic for grids.

Parameters
All parameters are optional.
 * 1: The name of the item to display.
 * 2: The amount of the item to display.
 * title: Tooltip title override. See Template:Tooltip/doc for formatting information.
 * desc: Tooltip description override. See Template:Tooltip/doc for formatting information.
 * class: Adds a class to the cell.
 * align: Change vertical-alignment of cell to surrounding text.
 * style: Adds CSS styling to add to the cell.
 * numstyle: Adds CSS styling to the number.
 * no-bg: Disables the cell background.
 * link: Changes the article that the cell will link to. Set to "none" to disable links.
 * mod: Sets the item mod, if not provided, an extension will attempt to find the correct image to display. You can use both the mod abbreviation as defined in Module:Mods/list or the full mod name.
 * dis: If set, the link points directly to the item name, otherwise points to the disambiguated item name "Item name (Mod name)" if mod is set.

Usage
Gc is used to display items, for use in Crafting Grid templates (Cg) and Infobox templates (Infobox).

Use Cg to display single items, or O if the crafting recipe uses Ore Dictionary tags to determine allowable items.

To display items inside ordinary page text or tables, use P or Pn.

For more information and examples, see the Crafting Grid Guide.

History
In the past, G was used to combine both G/Cell and G/O into one template (assisted by the now-removed G?), and was used all over the wiki. However, this is no longer the case; G had various issues associated with performance and incorrect displays. Therefore, all existing G usage was converted to G/Cell/G/O, and, with the creation of Module:Grid, G was fully removed and now redirects to G/Cell.