Template:CraftingInterface: Difference between revisions

mNo edit summary
(improved more)
Line 3: Line 3:
<pre>
<pre>
{{CraftingInterface
{{CraftingInterface
| A3 = iron ingot | A3tooltip = Iron Ingot | A3-link = Apricorn
| A3 = iron ingot | A3-tooltip = Iron Ingot | A3-link = Apricorn
| B1 = copper ingot | B1tooltip = Copper Ingot
| B1 = copper ingot | B1-tooltip = Copper Ingot
| B2 = copper ingot | B2tooltip = Copper Ingot
| B2 = copper ingot | B2-tooltip = Copper Ingot
| B3 = iron ingot | B3tooltip = Iron Ingot
| B3 = iron ingot | B3-tooltip = Iron Ingot
| C1 = iron ingot | C1tooltip = Iron Ingot
| C1 = iron ingot | C1-tooltip = Iron Ingot
| C2 = iron ingot | C2tooltip = Iron Ingot
| C2 = iron ingot | C2-tooltip = Iron Ingot
| C3 = iron ingot | C3tooltip = Iron Ingot
| C3 = iron ingot | C3-tooltip = Iron Ingot
| itemresult = healing machine | itemresultcount = 4 | itemresulttooltip = Healing Machine | itemresultlink = Healing Machine
| output = healing machine | output-count = 4 | output-tooltip = Healing Machine | output-link = Healing Machine
}}
}}
</pre>
</pre>
Line 16: Line 16:
==Example Result==
==Example Result==
{{CraftingInterface
{{CraftingInterface
| A3 = iron ingot | A3tooltip = Iron Ingot | A3-link = Apricorn
| A3 = iron ingot | A3-tooltip = Iron Ingot | A3-link = Apricorn
| B1 = copper ingot | B1tooltip = Copper Ingot
| B1 = copper ingot | B1-tooltip = Copper Ingot
| B2 = copper ingot | B2tooltip = Copper Ingot
| B2 = copper ingot | B2-tooltip = Copper Ingot
| B3 = iron ingot | B3tooltip = Iron Ingot
| B3 = iron ingot | B3-tooltip = Iron Ingot
| C1 = iron ingot | C1tooltip = Iron Ingot
| C1 = iron ingot | C1-tooltip = Iron Ingot
| C2 = iron ingot | C2tooltip = Iron Ingot
| C2 = iron ingot | C2-tooltip = Iron Ingot
| C3 = iron ingot | C3tooltip = Iron Ingot
| C3 = iron ingot | C3-tooltip = Iron Ingot
| itemresult = healing machine | itemresultcount = 4 | itemresulttooltip = Healing Machine | itemresultlink = Healing Machine
| output = healing machine | output-count = 4 | output-tooltip = Healing Machine | output-link = Healing Machine
}}
}}


Line 33: Line 33:
   <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:{{{A1tooltip|}}}|<span class="item-tooltip">{{{A1tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{A2|}}}|[[File:{{PAGENAME:{{{A2}}}.png}}|link={{#if:{{{A2-link|}}}|{{PAGENAME:{{{A2-link}}}}}}}]]{{#if:{{{A2tooltip|}}}|<span class="item-tooltip">{{{A2tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{A3|}}}|[[File:{{PAGENAME:{{{A3}}}.png}}|link={{#if:{{{A3-link|}}}|{{PAGENAME:{{{A3-link}}}}}}}]]{{#if:{{{A3tooltip|}}}|<span class="item-tooltip">{{{A3tooltip}}}</span>}}}}</div>
       <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}}}</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:{{{B1tooltip|}}}|<span class="item-tooltip">{{{B1tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{B2|}}}|[[File:{{PAGENAME:{{{B2}}}.png}}|link={{#if:{{{B2-link|}}}|{{PAGENAME:{{{B2-link}}}}}}}]]{{#if:{{{B2tooltip|}}}|<span class="item-tooltip">{{{B2tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{B3|}}}|[[File:{{PAGENAME:{{{B3}}}.png}}|link={{#if:{{{B3-link|}}}|{{PAGENAME:{{{B3-link}}}}}}}]]{{#if:{{{B3tooltip|}}}|<span class="item-tooltip">{{{B3tooltip}}}</span>}}}}</div>
       <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}}}</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:{{{C1tooltip|}}}|<span class="item-tooltip">{{{C1tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{C2|}}}|[[File:{{PAGENAME:{{{C2}}}.png}}|link={{#if:{{{C2-link|}}}|{{PAGENAME:{{{C2-link}}}}}}}]]{{#if:{{{C2tooltip|}}}|<span class="item-tooltip">{{{C2tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{C3|}}}|[[File:{{PAGENAME:{{{C3}}}.png}}|link={{#if:{{{C3-link|}}}|{{PAGENAME:{{{C3-link}}}}}}}]]{{#if:{{{C3tooltip|}}}|<span class="item-tooltip">{{{C3tooltip}}}</span>}}}}</div>
       <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}}}</span>}}}}</div>
     </div>
     </div>
   </div>
   </div>
   <div class="crafting-interface-result">
   <div class="crafting-interface-result">
       <div class="item-slot item-slot-large">{{#if:{{{itemresult|}}}|[[File:{{PAGENAME:{{{itemresult}}}.png}}|link={{#if:{{{itemresult-link|}}}|{{PAGENAME:{{{itemresult-link}}}}}}}]]{{#if:{{{itemresultcount|}}}|<span class="item-slot-count">{{{itemresultcount}}}</span>}}{{#if:{{{itemresulttooltip|}}}|<span class="item-tooltip">{{{itemresulttooltip}}}</span>}}}}</div>
       <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>
   </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 05:37, 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