Difference between revisions of "Template:Infobox/Resource/doc"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Add docs)
 
m (Update doc)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Infobox/Resource
 
{{Infobox/Resource
|file=
+
|density=0.005
|file desc=
 
|density=5
 
 
|transfer=n
 
|transfer=n
 
|tweakable=y
 
|tweakable=y
Line 18: Line 16:
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
 
{{Parameter row|name|Name of the resource.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
 
{{Parameter row|name|Name of the resource.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
{{Parameter row|file|Image of the resource.|Not set/Hidden}}
+
{{Parameter row|icon|Icon of the resource.|Not set/Hidden}}
{{Parameter row|file desc|Description of the image.|Not set/Hidden|1}}
+
{{Parameter row|icon width|Width of the image.|Not set/Hidden|1}}
 
{{Parameter row|density|Density of the resource in kg/{{{unit}}}. Allows <tt>0</tt> for ''None'' and without unit.}}
 
{{Parameter row|density|Density of the resource in kg/{{{unit}}}. Allows <tt>0</tt> for ''None'' and without unit.}}
{{Parameter row|transfer|Whether the resource is transferable. Allows <tt>n</tt> for {{tl|No}} and shows {{tl|Yes}} for every other value.|{{Yes}}}}
+
{{Parameter row|transfer|Whether the resource is transferable. Allows <tt>y</tt> for {{tl|Yes}} and shows {{tl|No}} for every other value.|{{No}}}}
{{Parameter row|tweakable|Whether the resource is tweakable in the VAB/SPH. Allows <tt>n</tt> for {{tl|No}} and shows {{tl|Yes}} for every other value.|{{Yes}}}}
+
{{Parameter row|tweakable|Whether the resource is tweakable in the VAB/SPH. Allows <tt>y</tt> for {{tl|Yes}} and shows {{tl|No}} for every other value.|{{No}}}}
 
{{Parameter row|drainable|Whether the resource is drainable. Allows <tt>n</tt> for {{tl|No}} and shows {{tl|Yes}} for every other value.|{{Yes}}}}
 
{{Parameter row|drainable|Whether the resource is drainable. Allows <tt>n</tt> for {{tl|No}} and shows {{tl|Yes}} for every other value.|{{Yes}}}}
 
{{Parameter row|flow|The [[Resource#Flow modes|flow mode]] of the resource.}}
 
{{Parameter row|flow|The [[Resource#Flow modes|flow mode]] of the resource.}}

Latest revision as of 07:49, 17 September 2024

Infobox/Resource
Density 5 kg/l
Transferable No
Tweakable Yes
Drainable No
Flow mode Adjacent
Cost 0.8 Funds/l
0.16 Funds/kg
Since version 0.20

Infobox for resources.

Parameters

Name Optional Description Default
name Yes Name of the resource. {{BASEPAGENAME}}
icon Yes Icon of the resource. Not set/Hidden
icon width Yes Width of the image. Not set/Hidden
density No Density of the resource in kg/{{{unit}}}. Allows 0 for None and without unit.
transfer Yes Whether the resource is transferable. Allows y for {{Yes}} and shows {{No}} for every other value. No
tweakable Yes Whether the resource is tweakable in the VAB/SPH. Allows y for {{Yes}} and shows {{No}} for every other value. No
drainable Yes Whether the resource is drainable. Allows n for {{No}} and shows {{Yes}} for every other value. Yes
flow No The flow mode of the resource.
cost No Cost per unit of the resource. Allows 0 for None and without unit. Also calculates costs per mass if density and cost are both not zero.
since Yes The introduction of this resource. If not set shows the value unknown. Unknown
unit Yes The unit of volume for the density. l

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.
n None The resource won't be pumped automatically but can be manually transferred.