Template:CraftingInterface: Difference between revisions

(improved more)
(automatic output linking)
Line 49: Line 49:
   </div>
   </div>
   <div class="crafting-interface-result">
   <div class="crafting-interface-result">
       <div class="item-slot item-slot-large">{{#if:{{{output|}}}|[[File:{{PAGENAME:{{{output}}}.png}}|link={{#if:{{{output-link|}}}|{{PAGENAME:{{{output-link}}}}}}}]]{{#if:{{{output-count|}}}|<span class="item-slot-count">{{{output-count}}}</span>}}{{#if:{{{output-tooltip|}}}}|<span class="item-tooltip">{{{output-tooltip}}}</span>}}}}</div>
       <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}}}</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>

Revision as of 06:22, 14 May 2023

Example Usage

{{CraftingInterface
| A3 = iron ingot | A3-tooltip = Iron Ingot | A3-link = Apricorn
| B1 = copper ingot | B1-tooltip = Copper Ingot
| B2 = copper ingot | B2-tooltip = Copper Ingot
| B3 = iron ingot | B3-tooltip = Iron Ingot
| C1 = iron ingot | C1-tooltip = Iron Ingot
| C2 = iron ingot | C2-tooltip = Iron Ingot
| C3 = iron ingot | C3-tooltip = Iron Ingot
| output = healing machine | output-count = 4 | output-tooltip = Healing Machine | output-link = Healing Machine
}}

Example Result


Optional Parameters

| shapeless = true