Template:SmeltingInterface: Difference between revisions

mNo edit summary
m (fix, now it's automatic)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
<pre>
<pre>
{{SmeltingInterface
{{SmeltingInterface
| iteminput = File:link cable.png | iteminputtooltip = Link Cable | iteminputlink = Link Cable
| input = Link Cable | input-link = Link Cable
| itemresult = File:healing machine.png | itemresulttooltip = Healing Machine | itemresultlink = Healing Machine
| output = Healing Machine | output-tooltip = Healing Machine | output-link = Healing Machine
}}
}}
</pre>
</pre>
Line 10: Line 10:
==Example Result==
==Example Result==
{{SmeltingInterface
{{SmeltingInterface
| iteminput = File:link cable.png | iteminputtooltip = Link Cable | iteminputlink = Link Cable
| input = Link Cable | input-link = Link Cable
| itemresult = File:healing machine.png | itemresulttooltip = Healing Machine | itemresultlink = Healing Machine
| output = Healing Machine | output-tooltip = Healing Machine | output-link = Healing Machine
}}
}}


==Optional Parameters==
==Optional Parameters==
<code>| itemfuel = File:apricorn log.png | itemfueltooltip = Apricorn Log | itemfuellink = Apricorn Log</code>
<code>| fuel = Apricorn Log | fuel-tooltip = Apricorn Log | fuel-link = Apricorn Log</code>
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<div class="smelting-interface">
<div class="interface smelting-interface">
   <div class="smelting-interface-input">
   <div class="smelting-interface-input">
       <div class="item-slot">{{#if:{{{iteminput|}}}|[[File:{{PAGENAME:{{{iteminput}}}}}|link={{#if:{{{iteminputlink|}}}|{{PAGENAME:{{{iteminputlink}}}}}}}]]{{#if:{{{iteminputtooltip|}}}|<span class="item-tooltip">{{{iteminputtooltip}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{input|}}}|[[File:{{PAGENAME:{{{input}}}.png}}|link={{#if:{{{input-link|}}}|{{PAGENAME:{{{input-link}}}}}}}]]{{#if:{{{input-tooltip|}}}}|<span class="item-tooltip">{{{input-tooltip|{{{input}}}}}}</span>}}}}</div>
       <div class="item-slot">{{#if:{{{itemfuel|}}}|[[File:{{PAGENAME:{{{itemfuel}}}}}|link={{#if:{{{itemfuellink|}}}|{{PAGENAME:{{{itemfuellink}}}}}}}]]{{#if:{{{itemfueltooltip|}}}|<span class="item-tooltip">{{{itemfueltooltip}}}</span>}}|[[File:coal.png|link=]]<span class="item-tooltip">Fuel</span>}}</div>
       <div class="item-slot">{{#if:{{{fuel|}}}|[[File:{{PAGENAME:{{{fuel}}}.png}}|link={{#if:{{{fuel-link|}}}|{{PAGENAME:{{{fuel-link}}}}}}}]]{{#if:{{{fuel-tooltip|}}}}|<span class="item-tooltip">{{{fuel-tooltip}}}</span>}}|[[File:Coal.png|link=]]<span class="item-tooltip">Fuel</span>}}</div>
   </div>
   </div>
   <div class="smelting-interface-result">
   <div class="smelting-interface-result">
       <div class="item-slot item-slot-large">{{#if:{{{itemresult|}}}|[[File:{{PAGENAME:{{{itemresult}}}}}|link={{#if:{{{itemresultlink|}}}|{{PAGENAME:{{{itemresultlink}}}}}}}]]{{#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|{{{output}}}}}}</span>}}}}</div>
   </div>
   </div>
</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 15:48, 26 July 2023

Example Usage

{{SmeltingInterface
| input = Link Cable | input-link = Link Cable
| output = Healing Machine | output-tooltip = Healing Machine | output-link = Healing Machine
}}

Example Result

Link Cable.pngLink Cable
Coal.pngFuel
Healing Machine.pngHealing Machine


Optional Parameters

| fuel = Apricorn Log | fuel-tooltip = Apricorn Log | fuel-link = Apricorn Log