Difference between revisions of "Template:Infobox/Resource"
From Kerbal Space Program Wiki
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}}} kg/{{ | + | {{Infobox/Line|Density|2={{#ifeq: {{{density}}}|N|None|{{{density}}} 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= | ||
− | {{ | + | {{Parameter Row|density|Density of the resource in kg/{{{unit}}}. Allows <tt>N</tt> for ''None'' and without unit.}} |
− | {{ | + | {{Parameter Row|transfer|If this resource is transferable. Allows <tt>N</tt> for {{No}} and shows {{Yes}} for every other value.|{{Yes}}}} |
− | {{ | + | {{Parameter Row|flow|The [[Resource#Flow%20modes|flow mode]] of the resource.}} |
− | {{ | + | {{Parameter Row|since|The introduction of this resource.}} |
− | {{ | + | {{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 |
Parameters
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. |