Difference between revisions of "Template:Calculate InventoryVolume"

From Space Engineers Wiki
Jump to: navigation, search
m (Vox Serico moved page Template:Calculate inventoryvolume to Template:Calculate InventoryVolume: CamelCase consistency)
m (Corrected usage instruction)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#vardefineecho:MaxVolume|{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-}}}}|{{#var:MaxVolume}}|{{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.