Template:Cg/doc

From Feed The Beast Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.

Template-info.png Documentation

This template is used to create components in crafting grid templates. Parameters will vary depending on what component you are adding.

Parameters[edit source]

This section will define what parameters you should use when creating crafting grid templates, to see what you should input when invoking those templates, see the Invoking crafting grids section below.

  • 1, type: The type of component, this parameter will be referred to as type below.

Common parameters[edit source]

Unless specified, all components accept these parameters.

  • style: (Optional) Additional styles to add to the component.
  • class: (Optional) Additional classes to add to the component.

Default type[edit source]

Marks the beginning of a crafting grid.

  • 2, w: Width of the crafting grid.
  • 3, h: Height of the crafting grid.
  • float: (Optional) Sets the float of the crafting grid.

type = end[edit source]

Marks the end of a crafting grid. This component does not support the common parameters.

  • 2: (Default: both) Sets the type of clear at the end of the template

type = cell[edit source]

Grid cell. Supports slides.

  • 2: (Default: {{Gc}}) Grids to be displayed.
  • 3, x: Distance to the top of the crafting grid.
  • 4, y: Distance to the left of the crafting grid.

type = shapeless[edit source]

Adds a icon stating that the recipe is shapeless.

  • 2, x: Distance to the top of the crafting grid.
  • 3, y: Distance to the left of the crafting grid.

type = tank[edit source]

Tank cell. Supports slides.

  • 2: Tanks to be displayed.
  • 3, x: Distance to the top of the crafting grid.
  • 4, y: Distance to the left of the crafting grid.
  • 5: Capacity of the tank.

The following parameters are used to determine what tank background is to be used. If you do not know what to put in these parameters, consult other editors.

  • width: (Optional) Width in pixels of the tank background.
  • height: (Default: 120) Height in pixels of the tank background.

type = bg-image[edit source]

Sets the background image of the crafting grid.

  • 2: File name of the background image.
  • 3, width: (Optional) Used to set the width of the background image.

type = text[edit source]

Text cell. Supports slides.

  • 2: Text field prefix.
  • 3: Text to be displayed, this field will be turned into slides.
  • 4: Text field suffix.
  • 5, x: Distance to the top of the crafting grid.
  • 6, y: Distance to the left of the crafting grid.

type = image[edit source]

Image cell. Supports slides.

  • 2: Images to be displayed.
  • 3, x: Distance to the top of the crafting grid.
  • 4, y: Distance to the left of the crafting grid.

type = progress[edit source]

Progress bar.

  • 2: Image for the progress bar.
  • 3, x: Distance to the top of the crafting grid.
  • 4, y: Distance to the left of the crafting grid.
  • 5, dir: Direction for the progress bar to go. Possible values are left, right, up, and down.
  • 6, size: Size of the progress bar in the dimension that it will be growing.
  • reverse: Makes the progress bar shrink instead of grow.

Invoking crafting grids[edit source]

This sections defines the format of the inputs to different components when invoking the crafting grid templates; you can see what type the cell is in the documentation of the crafting grid templates. For a more detailed guide, read the crafting grid guide.

Cell type Input format Example
Grid cells Sequence of {{Gc}}s. {{Gc|mod=V|dis=false|TNT}}{{Gc|mod=V|dis=false|Grass}}{{Gc|mod=V|dis=false|Ice}}
Comma-separated list of items, read the documentation for #grid_foreach for advanced usage. TNT, Grass, Ice
Tank cells Sequence of {{T}}s. {{T|Water|8000}}{{T|Lava|2000}}
Text cells Sequence of {{S}}s. {{S|Something.}}{{S|Something else.}}
Image cells Sequence of {{I}}s. {{I|GUI Metal Former A}}{{I|GUI Metal Former B}}


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

Other languages:
English • ‎русский