Template:Crafting Grid/doc

Crafting Table is used to create an interface that looks similar to the Crafting Table's. To display only the recipe grid, not the whole UI, use Crafting Grid.

See Template:Inventory slot for basic usage, this documentation page will cover additional or different functions.

Syntax
Note: All parameters are entirely optional. ... ...

Recipe Declaration. Usually only one method is used, unless in situations of overridding.
 * - Recipe(s) from database to display. See next section for details.
 * To make a single recipe, simply call Recipe Required. Example: Enchanted Cobblestone
 * To make an animated table/grid using more than one database recipes, either [1. pass as a single string with each item separated with * (similar to a wikitext unordered list)] or [2. pass as separate positional arguments]. Example: Enchanted Grilled Pork and *Enchanted Grilled Pork *Enchanted Pork are equivallent
 * - Items for each Crafting Table/Grid slot. Can be used to override any slots declared in . See next section for details.
 * - Items for each Crafting Table/Grid slot. Can be any item. Can be used to override any slots declared in and . See next section for details.

Recipe Declaration Config
 * - Version number for syntax. Affects how A1-C3 is mapped. Default to 1. See next section for details.

Other Parameters
 * - The item crafted. Can be any item.
 * For Crafting Table, when using a recipe existing in database, the Output is automatically assigned a value. Such will be displayed as a slot unless overridden.
 * For Crafting Grid, the text passed to Output will be displayed on top of the grid.
 * - Whether to display bazaar prices of the recipe. Default no.

Exclusive for Crafting Table
 * - A link for input items. Set this to 'none' to disable linking.
 * - A link for output items. Set this to 'none' to disable linking.

Database
To set recipes to database, use Module:Crafting/Data with Module:Crafting/Templates. The recipes must be declared in RSV ver=2.

QRS
The Quick Recipe Syntax (QRS) is used as follows:
 * Slot declaration :
 * ex1: 'A123B13C123' gives { 'A1', 'A2', 'A3', 'B1', 'B3', 'C1', 'C2', 'C3' }
 * ex2: 'A*B13C*' also gives { 'A1', 'A2', 'A3', 'B1', 'B3', 'C1', 'C2', 'C3' }
 * ex3: '*13A2C2' gives { 'A1', 'B1', 'C1', 'A3', 'B3', 'C3', 'A2', 'C2' } (this list is unordered; result is equivallent to ex1 and ex2)
 * ex4: '**' gives all nine slots { 'A1', 'A2', 'A3', 'B1', 'B2', 'B3', 'C1', 'C2', 'C3' }
 * Example: The recipe for Aspect of the End is A2B2 "Enchanted Eye of Ender,16" C2 "Enchanted Diamond" in RSV ver=2, and B12 "Enchanted Eye of Ender,16" B3 "Enchanted Diamond" in RSV ver=1

Animated slots:
 * Method 1:
 * Do not use the traditional way of separating each recipe item using ';' separators! It will cause problems when making animated recipes.

RSV
The Recipe Syntax Version is the version in which the slot positions are named. Since most of the recipes are declared in RSV ver=1, it is the default. When using ver=2, unless declaring through Crafting/Data (which is forced to use ver=2), must specify explicitly. If you know linear algebra, you should be able to immediately tell that ver=2 can be obtained by transposing the matrix ver=1, and vice versa. When using RSV ver=2 (new version), think horizontally. (A, B, C represents the rows; 1, 2, 3 represents the columns.) RSV ver=2 is now the recommended syntax to use as it should be more intuitive. When using RSV ver=1 (traditional version), think vertically. (A, B, C represents the columns; 1, 2, 3 represents the rows.)

Example
Note: Only this example uses crafting grid. All other examples also works with crafting grid.


 * Produces:


 * Produces:

Example using database recipes

 * Produces:

Multiple items, but also overridding the output:


 * Produces:

Example using stacks
Many recipes in skyblock require stacks of objects. In these case use a comma followed by the number. This example also shows how to disable links by modifying and.

Using A1-C3 slot declaration with RVS ver=1:
 * Produces:

Using QRS slot declaration with RVS ver=1:
 * Produces:

Animated
To make the slots animate, you make a list of blocks and objects you want to show, separated by semi-colons.

Using A1-C3 with RVS ver=1: 
 * Produces:

Another example, using QRS with RVS ver=1: 
 * Produces:

Links
Taken from / inspired by https://minecraft.gamepedia.com/Template:Crafting_Table