Difference between revisions of "Template:Infobox/Part/cargo"
From Kerbal Space Program Wiki
< Template:Infobox | Part
AlpacaMall (talk | contribs) (added -1 option for volume) |
AlpacaMall (talk | contribs) 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> | + | |{{#ifeq: {{{volume|<noinclude>5.0</noinclude>}}}|-1 |
| N/A | | N/A | ||
− | | {{{volume<noinclude> | + | | {{{volume|<noinclude>5.0</noinclude>}}} {{dict|l}} |
|}} | |}} | ||
}} | }} | ||
− | {{#ifexpr: {{{volume<noinclude> | + | {{#ifexpr: {{{volume|<noinclude>5.0</noinclude>}}} > -1 |
|{{Infobox/Line | |{{Infobox/Line | ||
| {{lang|en=Stacking Capacity|}} | | {{lang|en=Stacking Capacity|}} | ||
− | | {{#if: {{{quantity<noinclude> | + | | {{#if: {{{quantity|<noinclude>4</noinclude>}}} |
− | | {{{quantity<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 |