Template:InputInterface: Difference between revisions

mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<pre>
<pre>
{{InputInterface
{{InputInterface
| iteminput = File:link cable.png | iteminputtooltip = Link Cable | iteminputlink = Link Cable
| input = Link Cable | input-tooltip = Link Cable | input-link = Link Cable
| itemresult = File:healing machine.png | itemresulttooltip = Healing Machine | itemresultlink = Healing Machine
| output = Healing Machine | output-tooltip = PC | output-link = Healing Machine
}}
}}
</pre>
</pre>
Line 10: Line 10:
==Example Result==
==Example Result==
{{InputInterface
{{InputInterface
| iteminput = File:link cable.png | iteminputtooltip = Link Cable | iteminputlink = Link Cable
| input = Link Cable | input-tooltip = Link Cable | input-link = Link Cable
| itemresult = File:healing machine.png | itemresulttooltip = Healing Machine | itemresultlink = Healing Machine
| output = Healing Machine | output-tooltip = PC | output-link = Healing Machine
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<div class="interface input-interface">
<div class="interface input-interface">
   <div class="item-slot">{{#if:{{{iteminput|}}}|[[File:{{PAGENAME:{{{iteminput}}}}}|link={{#if:{{{iteminputlink|}}}|{{PAGENAME:{{{iteminputlink}}}}}}}]]{{#if:{{{iteminputtooltip|}}}|<span class="item-tooltip">{{{iteminputtooltip}}}</span>}}}}
   <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>
   <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>
</includeonly>
</includeonly>

Latest revision as of 16:04, 10 June 2023

Example Usage

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

Example Result

Link Cable.pngLink Cable
Healing Machine.pngPC