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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (fixed stacking quantity default to 1)
m (Update)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|
+
<noinclude>{{Infobox/Part/preview|</noinclude>
</noinclude>{{Infobox/Line
+
{{Infobox/Line|{{Infobox/Part/Dict|Volume}}|{{#ifeq: {{{volume|}}}|-1|{{Dict|none}}|{{{volume<noinclude>|50</noinclude>}}}&nbsp;{{Dict|l}}}}}}{{if||{{{stack|<noinclude>5</noinclude>}}}|
|{{lang|en=Packed Volume|}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Stacking capacity}}|{{{stack<noinclude>|3</noinclude>}}}&nbsp;{{Dict|units}}}}}}
|{{#ifeq: {{{volume|<noinclude>5.0</noinclude>}}}|-1
 
| N/A
 
| {{{volume|<noinclude>5.0</noinclude>}}}&nbsp;{{dict|l}}
 
|}}
 
}}
 
{{#ifexpr: {{{volume|<noinclude>5.0</noinclude>}}} > -1
 
|{{Infobox/Line
 
| {{lang|en=Stacking Capacity|}}
 
| {{#if: {{{quantity|<noinclude>4</noinclude>}}}
 
{{{quantity|<noinclude>4</noinclude>}}}
 
|  1
 
| }}
 
|}}
 
}}
 
 
<noinclude>}}
 
<noinclude>}}
 
  
 
{{Tl|Infobox/Part}} module for [[Parts/Cargo#Equipment|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.
 
{{Tl|Infobox/Part}} module for [[Parts/Cargo#Equipment|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.
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|volume|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).}}
+
{{Parameter row|volume|Packed volume. If volume is -1, displays as None, and is considered a part that cannot be stored (but can be manipulated in EVA Construction).}}
{{Parameter row|quantity|Stacking capacity, if not set defaults to 1. Hidden if volume is -1.|Not set/1}}
+
{{Parameter row|stack|Stacking capacity, if not set defaults to 1.|Not set / 1}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Revision as of 22:14, 31 August 2024

Volume 50 l
Stacking capacity 3 units

{{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 None, and is considered a part that cannot be stored (but can be manipulated in EVA Construction).
stack Yes Stacking capacity, if not set defaults to 1. Not set / 1