Difference between revisions of "Template:Infobox/Resource"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (! image. * wikitabled flow modes.)
m (+cat; *use Template:Unit;)
Line 5: Line 5:
 
|file=none
 
|file=none
 
|lines=
 
|lines=
{{Infobox/Line|Density|2={{#ifeq: {{{density}}}|N|None|{{{density}}}&nbsp;kg/{{#ifeq: {{{unit|l}}}|unit|unit|<abbr title="Assuming that 1 unit = 1 liter">{{{unit|l}}}</abbr>}}}}}}
+
{{Infobox/Line|Density|2={{#ifeq: {{{density}}}|N|None|{{{density}}}&nbsp;kg/{{Unit|{{{unit|l}}}}}}}}}
 
{{Infobox/Line|Transferable|{{#ifeq: {{{transfer}}}|N|{{No}}|{{Yes}}}}}}
 
{{Infobox/Line|Transferable|{{#ifeq: {{{transfer}}}|N|{{No}}|{{Yes}}}}}}
 
{{Infobox/Line|[[Resource#Flow modes|Flow mode]]|{{#switch: {{{flow}}}
 
{{Infobox/Line|[[Resource#Flow modes|Flow mode]]|{{#switch: {{{flow}}}
Line 17: Line 17:
 
== Parameters ==
 
== Parameters ==
 
{{Parameter Table|name=text|parameters=
 
{{Parameter Table|name=text|parameters=
{{ParameterRow|density|Density of the resource in kg/{{{unit}}}. Allows <tt>N</tt> for ''None'' and without unit.}}
+
{{Parameter Row|density|Density of the resource in kg/{{{unit}}}. Allows <tt>N</tt> for ''None'' and without unit.}}
{{ParameterRow|transfer|If this resource is transferable. Allows <tt>N</tt> for {{No}} and shows {{Yes}} for every other value.|{{Yes}}}}
+
{{Parameter Row|transfer|If this resource is transferable. Allows <tt>N</tt> for {{No}} and shows {{Yes}} for every other value.|{{Yes}}}}
{{ParameterRow|flow|The [[Resource#Flow%20modes|flow mode]] of the resource.}}
+
{{Parameter Row|flow|The [[Resource#Flow%20modes|flow mode]] of the resource.}}
{{ParameterRow|since|The introduction of this resource.}}
+
{{Parameter Row|since|The introduction of this resource.}}
{{ParameterRow|unit|The unit of volume for the density.|<tt>l</tt>}}
+
{{Parameter Row|unit|The unit of volume for the density.|<tt>l</tt>}}
 
}}
 
}}
  
Line 42: Line 42:
 
| The resource can only be used by the part containing it.  
 
| The resource can only be used by the part containing it.  
 
|}
 
|}
</noinclude>
+
 
 +
[[Category:Templates]]</noinclude>

Revision as of 13:03, 13 July 2013

Infobox
Density {{{density}}} kg/l
Transferable Yes
Flow mode Invalid flow mode
Since Unknown
Infobox for resources.

Parameters

Template:Parameter Table

Flow modes

Code Type Description
a Adjacent Resources will only flow between adjacent sources and sinks, meaning that tanks can be drained unevenly.
e Everywhere The resource is always available to all parts structurally connected to the vessel, and the same amount of resources is drained from every container.
i Internal The resource can only be used by the part containing it.