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

From Kerbal Space Program Wiki
Jump to: navigation, search
(added -1 option for volume)
m (fixed stacking quantity default to 1)
Line 2: Line 2:
 
</noinclude>{{Infobox/Line
 
</noinclude>{{Infobox/Line
 
|{{lang|en=Packed Volume|}}
 
|{{lang|en=Packed Volume|}}
|{{#ifeq: {{{volume<noinclude>|5.0</noinclude>}}}|-1
+
|{{#ifeq: {{{volume|<noinclude>5.0</noinclude>}}}|-1
 
| N/A
 
| N/A
| {{{volume<noinclude>|5.0</noinclude>}}}&nbsp;{{dict|l}}
+
| {{{volume|<noinclude>5.0</noinclude>}}}&nbsp;{{dict|l}}
 
|}}
 
|}}
 
}}
 
}}
{{#ifexpr: {{{volume<noinclude>|5.0</noinclude>}}} > -1
+
{{#ifexpr: {{{volume|<noinclude>5.0</noinclude>}}} > -1
 
|{{Infobox/Line
 
|{{Infobox/Line
 
| {{lang|en=Stacking Capacity|}}
 
| {{lang|en=Stacking Capacity|}}
| {{#if: {{{quantity<noinclude>|4</noinclude>}}}
+
| {{#if: {{{quantity|<noinclude>4</noinclude>}}}
|  {{{quantity<noinclude>|4</noinclude>}}}
+
|  {{{quantity|<noinclude>4</noinclude>}}}
 
|  1
 
|  1
 
| }}
 
| }}

Revision as of 04:47, 28 July 2021

Packed Volume 5.0 l
Stacking Capacity 4


{{Infobox/Part}} module for cargo parts that can be manipulated in EVA Construction or stored in an inventory. Not limited to parts that fall under the ingame "Cargo" category.

Name Optional Description Default
volume No Packed volume. If volume is -1, displays as N/A, and is considered a part that cannot be stored (but can be manipulated in EVA Construction).
quantity Yes Stacking capacity, if not set defaults to 1. Hidden if volume is -1. Not set/1