Difference between revisions of "Template:CraftingTable"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{| class="wikitable crafting-table mw-collapsible" data-collapsetext="hide" data-expandtext="show"
 
{| class="wikitable crafting-table mw-collapsible" data-collapsetext="hide" data-expandtext="show"
 
{{#if: {{{name-1|}}} | ! Name }}
 
{{#if: {{{name-1|}}} | ! Name }}
{{#if: {{{ingredients-1|}}} | ! Ingredients }}
+
{{#if: {{{ingredients-1|}}} | ! style="width: 160px;" {{!}} Ingredients }}
 
{{#if: {{{recipe-1|}}} | ! style="width: 160px;" {{!}} Recipe }}
 
{{#if: {{{recipe-1|}}} | ! style="width: 160px;" {{!}} Recipe }}
 
{{#if: {{{description-1|}}} | ! Description }}
 
{{#if: {{{description-1|}}} | ! Description }}
Line 173: Line 173:
 
{{#if: {{{description-1|}}} | {{!}} {{{description-24|}}}}}
 
{{#if: {{{description-1|}}} | {{!}} {{{description-24|}}}}}
 
}}
 
}}
|}
+
|}</includeonly><noinclude>
</includeonly><noinclude>
 
 
Table containing up to 24 crafting recipes.
 
Table containing up to 24 crafting recipes.
  

Latest revision as of 09:56, 7 July 2022

For the templates of the Crafting grid, see Template:CraftSmall and Template:CraftBig.

Table containing up to 24 crafting recipes.


Syntax

{{CraftingTable
| name-1 = 
| ingredients-1 = 
| recipe-1 = 
| description-1 = 
| name-2 = 
| ingredients-2 = 
| recipe-2 = 
| description-2 = 
| name-3 = 
| ingredients-3 = 
| recipe-3 = 
| description-3 = 
| name-4 = 
| ingredients-4 = 
| recipe-4 = 
| description-4 = 
| name-5 = 
| ingredients-5 = 
| recipe-5 = 
| description-5 = 
| name-6 = 
| ingredients-6 = 
| recipe-6 = 
| description-6 = 
| name-7 = 
| ingredients-7 = 
| recipe-7 = 
| description-7 = 
| name-8 = 
| ingredients-8 = 
| recipe-8 = 
| description-8 = 
| name-9 = 
| ingredients-9 = 
| recipe-9 = 
| description-9 = 
| name-10 = 
| ingredients-10 = 
| recipe-10 = 
| description-10 = 
| name-11 = 
| ingredients-11 = 
| recipe-11 = 
| description-11 = 
| name-12 = 
| ingredients-12 = 
| recipe-12 = 
| description-12 = 
| name-13 = 
| ingredients-13 = 
| recipe-13 = 
| description-13 = 
| name-14 = 
| ingredients-14 = 
| recipe-14 = 
| description-14 = 
| name-15 = 
| ingredients-15 = 
| recipe-15 = 
| description-15 = 
| name-16 = 
| ingredients-16 = 
| recipe-16 = 
| description-16 = 
| name-17 = 
| ingredients-17 = 
| recipe-17 = 
| description-17 = 
| name-18 = 
| ingredients-18 = 
| recipe-18 = 
| description-18 = 
| name-19 = 
| ingredients-19 = 
| recipe-19 = 
| description-19 = 
| name-20 = 
| ingredients-20 = 
| recipe-20 = 
| description-20 = 
| name-21 = 
| ingredients-21 = 
| recipe-21 = 
| description-21 = 
| name-22 = 
| ingredients-22 = 
| recipe-22 = 
| description-22 = 
| name-23 = 
| ingredients-23 = 
| recipe-23 = 
| description-23 = 
| name-24 = 
| ingredients-24 = 
| recipe-24 = 
| description-24 = 
}}

Example

{{CraftingTable
| name-1 = [[Pickaxes|Stone pickaxe]]
| ingredients-1 = 3 [[Cobblestone]]s + 2 [[Stick]]s
| recipe-1 = {{CraftBig
| A1 = Cobblestone
| A2 = Cobblestone
| A3 = Cobblestone
| B2 = Stick
| C2 = Stick
| output = Stone Pickaxe
}}
| description-1 = None
}}

Results in:


Name Ingredients Recipe Description
Stone pickaxe 3 Cobblestones + 2 Sticks

Cobblestone Cobblestone Cobblestone Invisible-sprite Stick Invisible-sprite Invisible-sprite Stick Invisible-sprite Stone Pickaxe

None