Difference between revisions of "Template:Calculate Volume"

From Space Engineers Wiki
Jump to: navigation, search
(Calculate volume from page properties)
 
m (Fixed it.)
Line 1: Line 1:
 
{{#expr:
 
{{#expr:
  {{#explode:{{#vardefineecho:Size={{#show:{{FULLPAGENAME}}|?Size#-}}}}|,|0}} *
+
  {{#explode:{{#vardefineecho:Size|{{#show:SmallHydrogenTankSmall|?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:SmallHydrogenTankSmall|?CubeSize#-}}|Large=15.625|Small=0.125|#default=0}}
 
}}<noinclude>[[Category:Templates]]</noinclude>
 
}}<noinclude>[[Category:Templates]]</noinclude>

Revision as of 21:10, 1 April 2020

Expression error: Unexpected * operator.