24,493 ARTICLES
ON THIS WIKI

Module:Grid/Item/doc

< Module:Grid/Item

This is the documentation page for Module:Grid/Item

Lua Logo.svg This is the Lua module for Template:Grid/Item. Below is the documentation for that template.

This template is used inside of {{Grid}}'s content parameter to insert an item grid image with link and optional stack size. It can also be used to display any other image with a size of 32 × 32 that may be found in a GUI, e. g. the Metal Former's mode icons. However it cannot be used correctly outside of a Grid template, to display item images in article text (which should rarely be necessary) use either {{itemref}} or {{Grid2}} instead.

Parameters[edit]

  • name: The item's name, always used for hover text, and is used to determine image name and link target if not overwritten.
  • top: Distance of the top-left image corner from the top edge of the grid.
  • left: Distance of the top-left image corner from the left edge of the grid.
  • image: Replacement image to be displayed in place of the default grid image, without File: prefix. Default: File:Grid {{{name}}}.png
  • link: Replacement link target. Default: {{{name}}}
  • dict: Ore dictionary name in an ore dictionary enabled recipe.
  • amount: Stack size number, must be between 2 and 64 to be displayed. Default: Hidden
  • liquid: Liquid amount, must be a decimal number with 1 being 1000mB (or 1 Bucket). Default: Hidden; Only available if no value is given for amount
  • chance: Chance of getting a certain item after processing. Shown when hovering the cursor over the image of the item. Automatically puts "%" after a number. Default: Hidden
  • fill: A background color with which to fill the item slot. "Default: No background"
  • tooltext: Custom tooltip that will be displayed when hovering over the item.
  • noname: Removes item name from tooltip when using tooltext.