Difference between revisions of "Template:Calculate InventoryVolume"

From Space Engineers Wiki
Jump to: navigation, search
(Cargo Containers don't have InventorySize, but seem to go by Size instead.)
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.