Difference between revisions of "Template:Calculate InventoryVolume"

From Space Engineers Wiki
Jump to: navigation, search
m (Removed unnecessary variable definition. Hooray for caching!)
m (Corrected usage instruction)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-}}|{{#show:{{FULLPAGENAME}}|?InventoryMaxVolume#-}}|{{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.