Template:SmeltingInterface: Difference between revisions
(should make tooltips show automatically without "-tooltip") |
m (fix, now it's automatic) |
||
Line 20: | Line 20: | ||
<div class="interface smelting-interface"> | <div class="interface smelting-interface"> | ||
<div class="smelting-interface-input"> | <div class="smelting-interface-input"> | ||
<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:{{{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:{{{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 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:{{{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 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
Optional Parameters
| fuel = Apricorn Log | fuel-tooltip = Apricorn Log | fuel-link = Apricorn Log