Difference between revisions of "Template:CraftingTable"
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!
(4 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 }} | ||
|- | |- | ||
{{#if: {{{name-1|}}} | | {{#if: {{{name-1|}}} | | ||
− | ! {{{name-1}}} | + | ! {{{name-1|}}} |
− | {{!}} {{{ingredients-1}}} | + | {{!}} {{{ingredients-1|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-1}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-1|}}} |
− | {{!}} {{{description-1}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-1|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-2|}}} | | {{#if: {{{name-2|}}} | | ||
− | ! {{{name-2}}} | + | ! {{{name-2|}}} |
− | {{!}} {{{ingredients-2}}} | + | {{!}} {{{ingredients-2|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-2}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-2|}}} |
− | {{!}} {{{description-2}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-2|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-3|}}} | | {{#if: {{{name-3|}}} | | ||
− | ! {{{name-3}}} | + | ! {{{name-3|}}} |
− | {{!}} {{{ingredients-3}}} | + | {{!}} {{{ingredients-3|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-3}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-3|}}} |
− | {{!}} {{{description-3}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-3|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-4|}}} | | {{#if: {{{name-4|}}} | | ||
− | ! {{{name-4}}} | + | ! {{{name-4|}}} |
− | {{!}} {{{ingredients-4}}} | + | {{!}} {{{ingredients-4|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-4}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-4|}}} |
− | {{!}} {{{description-4}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-4|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-5|}}} | | {{#if: {{{name-5|}}} | | ||
− | ! {{{name-5}}} | + | ! {{{name-5|}}} |
− | {{!}} {{{ingredients-5}}} | + | {{!}} {{{ingredients-5|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-5}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-5|}}} |
− | {{!}} {{{description-5}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-5|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-6|}}} | | {{#if: {{{name-6|}}} | | ||
− | ! {{{name-6}}} | + | ! {{{name-6|}}} |
− | {{!}} {{{ingredients-6}}} | + | {{!}} {{{ingredients-6|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-6}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-6|}}} |
− | {{!}} {{{description-6}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-6|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-7|}}} | | {{#if: {{{name-7|}}} | | ||
− | ! {{{name-7}}} | + | ! {{{name-7|}}} |
− | {{!}} {{{ingredients-7}}} | + | {{!}} {{{ingredients-7|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-7}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-7|}}} |
− | {{!}} {{{description-7}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-7|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-8|}}} | | {{#if: {{{name-8|}}} | | ||
− | ! {{{name-8}}} | + | ! {{{name-8|}}} |
− | {{!}} {{{ingredients-8}}} | + | {{!}} {{{ingredients-8|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-8}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-8|}}} |
− | {{!}} {{{description-8}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-8|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-9|}}} | | {{#if: {{{name-9|}}} | | ||
− | ! {{{name-9}}} | + | ! {{{name-9|}}} |
− | {{!}} {{{ingredients-9}}} | + | {{!}} {{{ingredients-9|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-9}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-9|}}} |
− | {{!}} {{{description-9}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-9|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-10|}}} | | {{#if: {{{name-10|}}} | | ||
− | ! {{{name-10}}} | + | ! {{{name-10|}}} |
− | {{!}} {{{ingredients-10}}} | + | {{!}} {{{ingredients-10|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-10}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-10|}}} |
− | {{!}} {{{description-10}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-10|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-11|}}} | | {{#if: {{{name-11|}}} | | ||
− | ! {{{name-11}}} | + | ! {{{name-11|}}} |
− | {{!}} {{{ingredients-11}}} | + | {{!}} {{{ingredients-11|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-11}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-11|}}} |
− | {{!}} {{{description-11}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-11|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-12|}}} | | {{#if: {{{name-12|}}} | | ||
− | ! {{{name-12}}} | + | ! {{{name-12|}}} |
− | {{!}} {{{ingredients-12}}} | + | {{!}} {{{ingredients-12|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-12}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-12|}}} |
− | {{!}} {{{description-12}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-12|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-13|}}} | | {{#if: {{{name-13|}}} | | ||
− | ! {{{name-13}}} | + | ! {{{name-13|}}} |
− | {{!}} {{{ingredients-13}}} | + | {{!}} {{{ingredients-13|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-13}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-13|}}} |
− | {{!}} {{{description-13}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-13|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-14|}}} | | {{#if: {{{name-14|}}} | | ||
− | ! {{{name-14}}} | + | ! {{{name-14|}}} |
− | {{!}} {{{ingredients-14}}} | + | {{!}} {{{ingredients-14|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-14}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-14|}}} |
− | {{!}} {{{description-14}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-14|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-15|}}} | | {{#if: {{{name-15|}}} | | ||
− | ! {{{name-15}}} | + | ! {{{name-15|}}} |
− | {{!}} {{{ingredients-15}}} | + | {{!}} {{{ingredients-15|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-15}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-15|}}} |
− | {{!}} {{{description-15}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-15|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-16|}}} | | {{#if: {{{name-16|}}} | | ||
− | ! {{{name-16}}} | + | ! {{{name-16|}}} |
− | {{!}} {{{ingredients-16}}} | + | {{!}} {{{ingredients-16|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-16}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-16|}}} |
− | {{!}} {{{description-16}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-16|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-17|}}} | | {{#if: {{{name-17|}}} | | ||
− | ! {{{name-17}}} | + | ! {{{name-17|}}} |
− | {{!}} {{{ingredients-17}}} | + | {{!}} {{{ingredients-17|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-17}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-17|}}} |
− | {{!}} {{{description-17}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-17|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-18|}}} | | {{#if: {{{name-18|}}} | | ||
− | ! {{{name-18}}} | + | ! {{{name-18|}}} |
− | {{!}} {{{ingredients-18}}} | + | {{!}} {{{ingredients-18|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-18}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-18|}}} |
− | {{!}} {{{description-18}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-18|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-19|}}} | | {{#if: {{{name-19|}}} | | ||
− | ! {{{name-19}}} | + | ! {{{name-19|}}} |
− | {{!}} {{{ingredients-19}}} | + | {{!}} {{{ingredients-19|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-19}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-19|}}} |
− | {{!}} {{{description-19}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-19|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-20|}}} | | {{#if: {{{name-20|}}} | | ||
− | ! {{{name-20}}} | + | ! {{{name-20|}}} |
− | {{!}} {{{ingredients-20}}} | + | {{!}} {{{ingredients-20|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-20}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-20|}}} |
− | {{!}} {{{description-20}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-20|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-21|}}} | | {{#if: {{{name-21|}}} | | ||
− | ! {{{name-21}}} | + | ! {{{name-21|}}} |
− | {{!}} {{{ingredients-21}}} | + | {{!}} {{{ingredients-21|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-21}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-21|}}} |
− | {{!}} {{{description-21}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-21|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-22|}}} | | {{#if: {{{name-22|}}} | | ||
− | ! {{{name-22}}} | + | ! {{{name-22|}}} |
− | {{!}} {{{ingredients-22}}} | + | {{!}} {{{ingredients-22|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-22}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-22|}}} |
− | {{!}} {{{description-22}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-22|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-23|}}} | | {{#if: {{{name-23|}}} | | ||
− | ! {{{name-23}}} | + | ! {{{name-23|}}} |
− | {{!}} {{{ingredients-23}}} | + | {{!}} {{{ingredients-23|}}} |
− | {{!}} style="text-align: center;" {{!}} {{{recipe-23}}} | + | {{!}} style="text-align: center;" {{!}} {{{recipe-23|}}} |
− | {{!}} {{{description-23}}} | + | {{#if: {{{description-1|}}} | {{!}} {{{description-23|}}}}} |
}} | }} | ||
|- | |- | ||
{{#if: {{{name-24|}}} | | {{#if: {{{name-24|}}} | | ||
− | ! {{{name-24}}} | + | ! {{{name-24|}}} |
− | {{!}} {{{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 09:56, 7 July 2022
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 | None |