Difference between revisions of "Template:Calculate InventoryVolume"

From Space Engineers Wiki
Jump to: navigation, search
m (Strip unit)
m (Corrected usage instruction)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{Calculate Volume|InventorySize}}}}</includeonly><noinclude>
+
<includeonly>{{#if:{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-n}}|{{#if:{{#show:{{FULLPAGENAME}}|?InventorySize#-n}}|{{Calculate Volume|InventorySize|page={{FULLPAGENAME}}}}|{{Calculate Volume|page={{FULLPAGENAME}}}}}}}}</includeonly><noinclude>
 
Calculates a block's inventory volume based on the current page.
 
Calculates a block's inventory volume based on the current page.
  
Usage <code><nowiki>{{Calculate InventorySize}}</nowiki></code> where both <code>InventorySize</code> is defined.
+
Usage <code><nowiki>{{Calculate InventoryVolume}}</nowiki></code> where <code>InventorySize</code> or <code>Size</code> is defined.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 15:13, 27 October 2020

Calculates a block's inventory volume based on the current page.

Usage {{Calculate InventoryVolume}} where InventorySize or Size is defined.