Difference between revisions of "Template:Calculate InventoryVolume"
From Space Engineers Wiki
Vox Serico (talk | contribs) (Cargo Containers don't have InventorySize, but seem to go by Size instead.) |
Vox Serico (talk | contribs) m (Missing braces) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#if:{{#show:{{FULLPAGENAME}}|?InventorySize#-n}}|{{Calculate Volume|InventorySize}}|{{Calculate Volume|Size}}}}</includeonly><noinclude> | + | <includeonly>{{#if:{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#if:{{#show:{{FULLPAGENAME}}|?InventorySize#-n}}|{{Calculate Volume|InventorySize}}|{{Calculate Volume|Size}}}}}}</includeonly><noinclude> |
Calculates a block's inventory volume based on the current page. | Calculates a block's inventory volume based on the current page. | ||
Line 5: | Line 5: | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> | ||
+ | |||
+ | {{Calculate InventoryVolume|Mod:Vanilla/CubeBlock/SmallHydrogenTankSmall}} |
Revision as of 16:33, 5 April 2020
Calculates a block's inventory volume based on the current page.
Usage {{Calculate InventorySize}}
where InventorySize
or Size
is defined.
Expression error: Unexpected * operator.