Template:Cg/doc/ru

Этот шаблон используется для создания компонентов в шаблонах сетки крафта. Параметры будут различаться, в зависимости от того, какой компонент вы добавляете.

Параметры
В этом разделе будут определять, какие параметры следует использовать при создании шаблонов сетки крафта, чтобы увидеть, что вы должны ввести при вызове этих шаблонов см. раздел ниже.

Common parameters
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
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
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
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
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
Tank cell. Supports slides. 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.
 * 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.
 * width: (Optional) Width in pixels of the tank background.
 * height: (Default: 120) Height in pixels of the tank background.

type = bg-image
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
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
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
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
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.