Template:BrewingInterface: Difference between revisions

(testing)
 
mNo edit summary
 
Line 3: Line 3:
<pre>
<pre>
{{BrewingInterface
{{BrewingInterface
| input = Link Cable | input-link = Link Cable
| input = Healing Machine | input-tooltip = Healing Machine | input-link = Healing Machine
| output = Healing Machine | output-tooltip = Healing Machine | output-link = Healing Machine
| base = Medicinal Brew | base-tooltip = Medicinal Brew | base-link = Medicinal Brew
| output = PC | output-tooltip = PC | output-link = PC
}}
}}
</pre>
</pre>
Line 10: Line 11:
==Example Result==
==Example Result==
{{BrewingInterface
{{BrewingInterface
| input = Link Cable | input-link = Link Cable
| input = Healing Machine | input-tooltip = Healing Machine | input-link = Healing Machine
| output = Healing Machine | output-tooltip = Healing Machine | output-link = Healing Machine
| base = Medicinal Brew | base-tooltip = Medicinal Brew | base-link = Medicinal Brew
| output = PC | output-tooltip = PC | output-link = PC
}}
}}
==Optional Parameters==
<code>| fuel = Apricorn Log | fuel-tooltip = Apricorn Log | fuel-link = Apricorn Log</code>
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<div class="interface brewing-interface">
<div class="interface brewing-interface">
   <div class="brewing-interface-input">
   <div class="brewing-interface-input">
    <div class="input-row">
      <div class="item-slot">{{#if:{{{base|}}}|[[File:{{PAGENAME:{{{base}}}.png}}|link={{#if:{{{base-link|}}}|{{PAGENAME:{{{base-link}}}}}}}]]{{#if:{{{base-tooltip|}}}}|<span class="item-tooltip">{{{base-tooltip|{{{base}}}}}}</span>}}}}</div>
      <div class="item-slot">{{#if:{{{base|}}}|[[File:{{PAGENAME:{{{base}}}.png}}|link={{#if:{{{base-link|}}}|{{PAGENAME:{{{base-link}}}}}}}]]{{#if:{{{base-tooltip|}}}}|<span class="item-tooltip">{{{base-tooltip|{{{base}}}}}}</span>}}}}</div>
    </div>
    <div class="input-column">
       <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:{{{base|}}}|[[File:{{PAGENAME:{{{base}}}.png}}|link={{#if:{{{base-link|}}}|{{PAGENAME:{{{base-link}}}}}}}]]{{#if:{{{base-tooltip|}}}}|<span class="item-tooltip">{{{base-tooltip|{{{base}}}}}}</span>}}}}</div>
  </div>
    </div>
    </div>
   <div class="brewing-interface-result">
   <div class="brewing-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>

Latest revision as of 19:37, 13 October 2023

Example Usage

{{BrewingInterface
| input = Healing Machine | input-tooltip = Healing Machine | input-link = Healing Machine
| base = Medicinal Brew | base-tooltip = Medicinal Brew | base-link = Medicinal Brew
| output = PC | output-tooltip = PC | output-link = PC
}}

Example Result

Medicinal Brew.pngMedicinal Brew
Medicinal Brew.pngMedicinal Brew
Healing Machine.pngHealing Machine
Medicinal Brew.pngMedicinal Brew
PC.pngPC