Template:CraftingInterface: Difference between revisions
mNo edit summary |
No edit summary Tag: Manual revert |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="interface crafting-interface"> | <div class="interface crafting-interface"> | ||
<div class="crafting-interface-ingredients"> | <div class="crafting-interface-ingredients"> | ||
<div class="crafting-row"> | <div class="crafting-row"> | ||
<div class="item-slot">{{#if:{{{A1|}}}|[[File:{{PAGENAME:{{{A1}}}.png}}|link={{#if:{{{A1-link|}}}|{{PAGENAME:{{{A1-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{A1|}}}|[[File:{{PAGENAME:{{{A1}}}.png}}|link={{#if:{{{A1-link|}}}|{{PAGENAME:{{{A1-link}}}}}}}]]{{#if:{{{A1-tooltip|}}}}|<span class="item-tooltip">{{{A1-tooltip|{{{A1}}}}}}</span>}}}}</div> | ||
<div class="item-slot">{{#if:{{{A2|}}}|[[File:{{PAGENAME:{{{A2}}}.png}}|link={{#if:{{{A2-link|}}}|{{PAGENAME:{{{A2-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{A2|}}}|[[File:{{PAGENAME:{{{A2}}}.png}}|link={{#if:{{{A2-link|}}}|{{PAGENAME:{{{A2-link}}}}}}}]]{{#if:{{{A2-tooltip|}}}}|<span class="item-tooltip">{{{A2-tooltip|{{{A2}}}}}}</span>}}}}</div> | ||
<div class="item-slot">{{#if:{{{A3|}}}|[[File:{{PAGENAME:{{{A3}}}.png}}|link={{#if:{{{A3-link|}}}|{{PAGENAME:{{{A3-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{A3|}}}|[[File:{{PAGENAME:{{{A3}}}.png}}|link={{#if:{{{A3-link|}}}|{{PAGENAME:{{{A3-link}}}}}}}]]{{#if:{{{A3-tooltip|}}}}|<span class="item-tooltip">{{{A3-tooltip|{{{A3}}}}}}</span>}}}}</div> | ||
</div> | </div> | ||
<div class="crafting-row"> | <div class="crafting-row"> | ||
<div class="item-slot">{{#if:{{{B1|}}}|[[File:{{PAGENAME:{{{B1}}}.png}}|link={{#if:{{{B1-link|}}}|{{PAGENAME:{{{B1-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{B1|}}}|[[File:{{PAGENAME:{{{B1}}}.png}}|link={{#if:{{{B1-link|}}}|{{PAGENAME:{{{B1-link}}}}}}}]]{{#if:{{{B1-tooltip|}}}}|<span class="item-tooltip">{{{B1-tooltip|{{{B1}}}}}}</span>}}}}</div> | ||
<div class="item-slot">{{#if:{{{B2|}}}|[[File:{{PAGENAME:{{{B2}}}.png}}|link={{#if:{{{B2-link|}}}|{{PAGENAME:{{{B2-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{B2|}}}|[[File:{{PAGENAME:{{{B2}}}.png}}|link={{#if:{{{B2-link|}}}|{{PAGENAME:{{{B2-link}}}}}}}]]{{#if:{{{B2-tooltip|}}}}|<span class="item-tooltip">{{{B2-tooltip|{{{B2}}}}}}</span>}}}}</div> | ||
<div class="item-slot">{{#if:{{{B3|}}}|[[File:{{PAGENAME:{{{B3}}}.png}}|link={{#if:{{{B3-link|}}}|{{PAGENAME:{{{B3-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{B3|}}}|[[File:{{PAGENAME:{{{B3}}}.png}}|link={{#if:{{{B3-link|}}}|{{PAGENAME:{{{B3-link}}}}}}}]]{{#if:{{{B3-tooltip|}}}}|<span class="item-tooltip">{{{B3-tooltip|{{{B3}}}}}}</span>}}}}</div> | ||
</div> | </div> | ||
<div class="crafting-row"> | <div class="crafting-row"> | ||
<div class="item-slot">{{#if:{{{C1|}}}|[[File:{{PAGENAME:{{{C1}}}.png}}|link={{#if:{{{C1-link|}}}|{{PAGENAME:{{{C1-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{C1|}}}|[[File:{{PAGENAME:{{{C1}}}.png}}|link={{#if:{{{C1-link|}}}|{{PAGENAME:{{{C1-link}}}}}}}]]{{#if:{{{C1-tooltip|}}}}|<span class="item-tooltip">{{{C1-tooltip|{{{C1}}}}}}</span>}}}}</div> | ||
<div class="item-slot">{{#if:{{{C2|}}}|[[File:{{PAGENAME:{{{C2}}}.png}}|link={{#if:{{{C2-link|}}}|{{PAGENAME:{{{C2-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{C2|}}}|[[File:{{PAGENAME:{{{C2}}}.png}}|link={{#if:{{{C2-link|}}}|{{PAGENAME:{{{C2-link}}}}}}}]]{{#if:{{{C2-tooltip|}}}}|<span class="item-tooltip">{{{C2-tooltip|{{{C2}}}}}}</span>}}}}</div> | ||
<div class="item-slot">{{#if:{{{C3|}}}|[[File:{{PAGENAME:{{{C3}}}.png}}|link={{#if:{{{C3-link|}}}|{{PAGENAME:{{{C3-link}}}}}}}]]{{#if:{{{ | <div class="item-slot">{{#if:{{{C3|}}}|[[File:{{PAGENAME:{{{C3}}}.png}}|link={{#if:{{{C3-link|}}}|{{PAGENAME:{{{C3-link}}}}}}}]]{{#if:{{{C3-tooltip|}}}}|<span class="item-tooltip">{{{C3-tooltip|{{{C3}}}}}}</span>}}}}</div> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="crafting-interface-result"> | <div class="crafting-interface-result"> | ||
<div class="item-slot item-slot-large">{{#if:{{{ | <div class="item-slot item-slot-large">{{#if:{{{output|}}}|[[File:{{PAGENAME:{{{output}}}.png}}|link={{#if:{{{output-link|}}}|{{PAGENAME:{{{output-link}}}|{{{output}}}}}|{{{output}}}}}]]{{#if:{{{output-count|}}}|<span class="item-slot-count">{{{output-count}}}</span>}}{{#if:{{{output-tooltip|}}}}|<span class="item-tooltip">{{{output-tooltip|{{{output}}}}}}</span>}}}}</div> | ||
</div> | </div> | ||
{{#if:{{{shapeless|}}}|<div class="shapeless-mark" title="This recipe is shapeless, items can be placed in any arrangement for this recipe">⭍</div>}} | {{#if:{{{shapeless|}}}|<div class="shapeless-mark" title="This recipe is shapeless, items can be placed in any arrangement for this recipe">⭍</div>}} | ||
</div> | </div> | ||
</includeonly> | </includeonly><noinclude> | ||
{{documentation}} | |||
</noinclude> | |||
Revision as of 02:16, 14 October 2023
This template represents the Crafting Table interface.
Notes
Each item can be displayed using the Template:ItemSlot.
{{CraftingInterface
| A1 = {{ItemSlot}}
| A2 = {{ItemSlot}}
| A3 = {{ItemSlot}}
| B1 = {{ItemSlot}}
| B2 = {{ItemSlot}}
| B3 = {{ItemSlot}}
| C1 = {{ItemSlot}}
| C2 = {{ItemSlot}}
| C3 = {{ItemSlot}}
| output = {{ItemSlot}}
}}
Usage
{{CraftingInterface
| A3 = {{ItemSlot| item = Copper Ingot | link = Apricorn}}
| B1 = {{ItemSlot| item = Copper Ingot | tooltip = Ingot}}
| B2 = {{ItemSlot| item = Copper Ingot}}
| B3 = {{ItemSlot| item = Iron Ingot}}
| C1 = {{ItemSlot| item = Iron Ingot}}
| C2 = {{ItemSlot| item = Iron Ingot}}
| C3 = {{ItemSlot| item = Iron Ingot}}
| output = {{ItemSlot| item = Healing Machine | link = PC | tooltip = Link Cable | amount = 4}}
}}
produces:
[[File:|link=]]
Ingot
[[File:|link=]]
Copper Ingot
[[File:|link=]]
Iron Ingot
[[File:|link=]]
Iron Ingot
[[File:|link=]]
Iron Ingot
[[File:|link=]]
Iron Ingot
Optional Parameters
| shapeless = true
[view | edit | history | purge]The above documentation is transcluded from Template:CraftingInterface/doc.