Difference between revisions of "Template:Infobox/Part/converter"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Add category)
(Add conversion method, use dict for in-/output and preview)
 
Line 1: Line 1:
<noinclude>
+
<noinclude>{{Infobox/Part/preview|
{{Infobox/Part/preview|</noinclude>{{Infobox/Line|{{#if: {{{in2-type|}}}|'''Inputs'''|'''Input'''}}}}
+
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|conversion}}|{{Dict/resource|{{{conversion<noinclude>|lf</noinclude>}}}}}}}
{{Infobox/Part/converter/io|{{{in1-type}}}|{{{in1-amount}}}}}{{if||{{{in2-type|}}}|
+
{{Infobox/Line|'''{{#if: {{{in2-type|<noinclude>or</noinclude>}}}|{{Infobox/Part/Dict|Inputs}}|{{Infobox/Part/Dict|Input}}}}'''}}
{{Infobox/Part/converter/io|{{{in2-type}}}|{{{in2-amount}}}}}}}
+
{{Infobox/Part/converter/io|{{{in1-type<noinclude>|or</noinclude>}}}|{{{in1-amount<noinclude>|2.25</noinclude>}}}}}{{if||{{{in2-type|<noinclude>ec</noinclude>}}}|
{{Infobox/Line|{{#if: {{{out2-type|}}}|'''Outputs'''|'''Output'''}}}}
+
{{Infobox/Part/converter/io|{{{in2-type<noinclude>|ec</noinclude>}}}|{{{in2-amount<noinclude>|30</noinclude>}}}}}}}
{{Infobox/Part/converter/io|{{{out1-type}}}|{{{out1-amount}}}}}{{if||{{{out2-type|}}}|
+
{{Infobox/Line|'''{{#if: {{{out2-type|}}}|{{Infobox/Part/Dict|Outputs}}|{{Infobox/Part/Dict|Output}}}}'''}}
 +
{{Infobox/Part/converter/io|{{{out1-type<noinclude>|lf</noinclude>}}}|{{{out1-amount<noinclude>|0.45</noinclude>}}}}}{{if||{{{out2-type|}}}|
 
{{Infobox/Part/converter/io|{{{out2-type}}}|{{{out2-amount}}}}}}}<noinclude>
 
{{Infobox/Part/converter/io|{{{out2-type}}}|{{{out2-amount}}}}}}}<noinclude>
 
}}
 
}}
Line 11: Line 12:
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
 +
{{Parameter row|conversion|The conversion method}}
 
{{Parameter row|in1-type|Primary type of input resource}}
 
{{Parameter row|in1-type|Primary type of input resource}}
 
{{Parameter row|in1-amount|Primary amount of input resource}}
 
{{Parameter row|in1-amount|Primary amount of input resource}}

Latest revision as of 21:24, 12 September 2024

Conversion Liquid fuel
Inputs
Ore 2.25 Units of fuel/s
Electric charge 30 ⚡/s
Output
Liquid fuel 0.45 Units of fuel/s

{{Infobox/Part}} module for converters. It is using {{Infobox/Part/converter/io}} for the two inputs and outputs so the types must be set appropriately.

Name Optional Description Default
conversion No The conversion method
in1-type No Primary type of input resource
in1-amount No Primary amount of input resource
in2-type Yes Secondary type of input resource Not set/Hidden
in2-amount Yes Secondary amount of input resource Not set/Hidden
out1-type No Primary type of output resource
out1-amount No Primary amount of output resource
out2-type Yes Secondary type of output resource Not set/Hidden
out2-amount Yes Secondary amount of output resource Not set/Hidden