Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Register
Advertisement


Template-info Documentation
Lua logo This template uses Module:Grid, a script written in Lua.
Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more.

This template is the display logic for grids.

Parameters

All parameters are optional, except for mod.

  • 1: The name of the item to display.
  • 2: (Default: 1) 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.
  • padding: Sets the padding of the grid icon; useful for the {{Effect}} template.
  • style: Adds CSS styling to add to the cell.
  • numstyle: Adds CSS styling to the number.
  • size: (Default: 32) Sets the icon size to retrieve. If an invalid size is provided, the smallest size is used (usually 16).
  • no-bg: Disables the cell background.
  • appendtitle: If set, turns the title arg into a string that is appended onto the localized item name. If you want a space between the localized name and the appended string, you must start with <nowiki /> and then the space.
  • link: Changes the article that the cell will link to. Set to "none" to disable links.
  • mod: Sets the mod that the item comes from. You can use both the mod abbreviation as defined in Module:Mods/list or the full mod name. The mod abbreviation is recommended for standardization purposes.
  • dis: By default, points to the disambiguated item name in the form Item (Mod). Otherwise, if set to false or any other value, the link points directly to the item name.

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.

Examples

Code Result Comment
{{Gc|mod=V|dis=false|TNT|10}}

10
Normal usage

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}}.

Advertisement