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

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created infobox template for all parts that can be placed in the 1.11 inventory system)
 
(added -1 option for volume)
Line 2: Line 2:
 
</noinclude>{{Infobox/Line
 
</noinclude>{{Infobox/Line
 
|{{lang|en=Packed Volume|}}
 
|{{lang|en=Packed Volume|}}
|{{{volume<noinclude>|5.0</noinclude>}}}&nbsp;{{dict|l}}
+
|{{#ifeq: {{{volume<noinclude>|5.0</noinclude>}}}|-1
 +
| N/A
 +
| {{{volume<noinclude>|5.0</noinclude>}}}&nbsp;{{dict|l}}
 
|}}
 
|}}
{{Infobox/Line
+
}}
|{{lang|en=Stacking Capacity|}}
+
{{#ifexpr: {{{volume<noinclude>|5.0</noinclude>}}} > -1
|{{#if: {{{quantity<noinclude>|4</noinclude>}}}
+
|{{Infobox/Line
| {{{quantity<noinclude>|4</noinclude>}}}
+
| {{lang|en=Stacking Capacity|}}
| 1
+
| {{#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 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}}
+
{{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|quantity|Stacking capacity, if not set defaults to 1|Not set/1}}
+
{{Parameter row|quantity|Stacking capacity, if not set defaults to 1. Hidden if volume is -1.|Not set/1}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Revision as of 17:41, 27 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