Difference between revisions of "Template:Calculate Volume"

From Space Engineers Wiki
Jump to: navigation, search
m (Removed placeholder)
m (Added instructions)
Line 1: Line 1:
{{#expr:
+
<includeonly>{{#expr:
 
  {{#explode:{{#vardefineecho:Size|{{#show:{{FULLPAGENAME}}|?Size#-}}}}|,|0}} *
 
  {{#explode:{{#vardefineecho:Size|{{#show:{{FULLPAGENAME}}|?Size#-}}}}|,|0}} *
 
  {{#explode:{{#var:Size}}|,|1}} *
 
  {{#explode:{{#var:Size}}|,|1}} *
 
  {{#explode:{{#var:Size}}|,|2}} *
 
  {{#explode:{{#var:Size}}|,|2}} *
 
  {{#switch: {{#show:{{FULLPAGENAME}}|?CubeSize#-}}|Large=15.625|Small=0.125|#default=0}}
 
  {{#switch: {{#show:{{FULLPAGENAME}}|?CubeSize#-}}|Large=15.625|Small=0.125|#default=0}}
}}<noinclude>[[Category:Templates]]</noinclude>
+
}}</includeonly><noinclude>
 +
 
 +
Calculates a block's volume based on the current page.
 +
 
 +
Usage <code><nowiki>{{Calculate volume}}</nowiki></code> where both <code>Size</code> and <code>CubeSize</code> is defined.
 +
 
 +
[[Category:Templates]]</noinclude>

Revision as of 21:13, 1 April 2020


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

Usage {{Calculate volume}} where both Size and CubeSize is defined.