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!

 
(3 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 10: Line 10:
 
{{!}} {{{ingredients-1|}}}
 
{{!}} {{{ingredients-1|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-1|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-1|}}}
{{!}} {{{description-1|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-1|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 17: Line 17:
 
{{!}} {{{ingredients-2|}}}
 
{{!}} {{{ingredients-2|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-2|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-2|}}}
{{!}} {{{description-2|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-2|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 24: Line 24:
 
{{!}} {{{ingredients-3|}}}
 
{{!}} {{{ingredients-3|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-3|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-3|}}}
{{!}} {{{description-3|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-3|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 31: Line 31:
 
{{!}} {{{ingredients-4|}}}
 
{{!}} {{{ingredients-4|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-4|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-4|}}}
{{!}} {{{description-4|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-4|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 38: Line 38:
 
{{!}} {{{ingredients-5|}}}
 
{{!}} {{{ingredients-5|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-5|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-5|}}}
{{!}} {{{description-5|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-5|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 45: Line 45:
 
{{!}} {{{ingredients-6|}}}
 
{{!}} {{{ingredients-6|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-6|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-6|}}}
{{!}} {{{description-6|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-6|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 52: Line 52:
 
{{!}} {{{ingredients-7|}}}
 
{{!}} {{{ingredients-7|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-7|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-7|}}}
{{!}} {{{description-7|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-7|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 59: Line 59:
 
{{!}} {{{ingredients-8|}}}
 
{{!}} {{{ingredients-8|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-8|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-8|}}}
{{!}} {{{description-8|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-8|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 66: Line 66:
 
{{!}} {{{ingredients-9|}}}
 
{{!}} {{{ingredients-9|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-9|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-9|}}}
{{!}} {{{description-9|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-9|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 73: Line 73:
 
{{!}} {{{ingredients-10|}}}
 
{{!}} {{{ingredients-10|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-10|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-10|}}}
{{!}} {{{description-10|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-10|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 80: Line 80:
 
{{!}} {{{ingredients-11|}}}
 
{{!}} {{{ingredients-11|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-11|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-11|}}}
{{!}} {{{description-11|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-11|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 87: Line 87:
 
{{!}} {{{ingredients-12|}}}
 
{{!}} {{{ingredients-12|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-12|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-12|}}}
{{!}} {{{description-12|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-12|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 94: Line 94:
 
{{!}} {{{ingredients-13|}}}
 
{{!}} {{{ingredients-13|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-13|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-13|}}}
{{!}} {{{description-13|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-13|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 101: Line 101:
 
{{!}} {{{ingredients-14|}}}
 
{{!}} {{{ingredients-14|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-14|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-14|}}}
{{!}} {{{description-14|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-14|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 108: Line 108:
 
{{!}} {{{ingredients-15|}}}
 
{{!}} {{{ingredients-15|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-15|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-15|}}}
{{!}} {{{description-15|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-15|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 115: Line 115:
 
{{!}} {{{ingredients-16|}}}
 
{{!}} {{{ingredients-16|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-16|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-16|}}}
{{!}} {{{description-16|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-16|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 122: Line 122:
 
{{!}} {{{ingredients-17|}}}
 
{{!}} {{{ingredients-17|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-17|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-17|}}}
{{!}} {{{description-17|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-17|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 129: Line 129:
 
{{!}} {{{ingredients-18|}}}
 
{{!}} {{{ingredients-18|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-18|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-18|}}}
{{!}} {{{description-18|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-18|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 136: Line 136:
 
{{!}} {{{ingredients-19|}}}
 
{{!}} {{{ingredients-19|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-19|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-19|}}}
{{!}} {{{description-19|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-19|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 143: Line 143:
 
{{!}} {{{ingredients-20|}}}
 
{{!}} {{{ingredients-20|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-20|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-20|}}}
{{!}} {{{description-20|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-20|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 150: Line 150:
 
{{!}} {{{ingredients-21|}}}
 
{{!}} {{{ingredients-21|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-21|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-21|}}}
{{!}} {{{description-21|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-21|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 157: Line 157:
 
{{!}} {{{ingredients-22|}}}
 
{{!}} {{{ingredients-22|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-22|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-22|}}}
{{!}} {{{description-22|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-22|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 164: Line 164:
 
{{!}} {{{ingredients-23|}}}
 
{{!}} {{{ingredients-23|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-23|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-23|}}}
{{!}} {{{description-23|}}}
+
{{#if: {{{description-1|}}} | {{!}} {{{description-23|}}}}}
 
}}
 
}}
 
|-
 
|-
Line 171: Line 171:
 
{{!}} {{{ingredients-24|}}}
 
{{!}} {{{ingredients-24|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-24|}}}
 
{{!}} style="text-align: center;" {{!}} {{{recipe-24|}}}
{{!}} {{{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 10: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