Difference between revisions of "Template:BlockVolume"
From Space Engineers Wiki
Vox Serico (talk | contribs) (BlockVolume template displays block dimensions and calculates its volume.) |
Vox Serico (talk | contribs) m (Calculate 0.5) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#switch: {{{2|}}} | {{#switch: {{{2|}}} | ||
− | | small = {{#vardefineecho:blockwidth|{{#show: Large_Thruster |?swidth}}}}×{{#vardefineecho:blockheight|{{#show: Large_Thruster |?sheight}}}}×{{#vardefineecho:blockdepth|{{#show: Large_Thruster |?sdepth}}}} ({{#expr: {{#var:blockwidth}}*{{#var:blockheight}}*{{#var:blockdepth}}*0. | + | | small = {{#vardefineecho:blockwidth|{{#show: Large_Thruster |?swidth}}}}×{{#vardefineecho:blockheight|{{#show: Large_Thruster |?sheight}}}}×{{#vardefineecho:blockdepth|{{#show: Large_Thruster |?sdepth}}}} ({{#expr: {{#var:blockwidth}}*{{#var:blockheight}}*{{#var:blockdepth}}*0.125 }} m<sup>3</sup>) |
− | | large = {{#vardefineecho:blockwidth|{{#show: Large_Thruster |?lwidth}}}}×{{#vardefineecho:blockheight|{{#show: Large_Thruster |?lheight}}}}×{{#vardefineecho:blockdepth|{{#show: Large_Thruster |?ldepth}}}} ({{#expr: {{#var:blockwidth}}*{{#var:blockheight}}*{{#var:blockdepth}}* | + | | large = {{#vardefineecho:blockwidth|{{#show: Large_Thruster |?lwidth}}}}×{{#vardefineecho:blockheight|{{#show: Large_Thruster |?lheight}}}}×{{#vardefineecho:blockdepth|{{#show: Large_Thruster |?ldepth}}}} ({{#expr: {{#var:blockwidth}}*{{#var:blockheight}}*{{#var:blockdepth}}*15.625 }} m<sup>3</sup>) |
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 15:06, 27 March 2020
Displays block dimensions and calculates its volume.
Usage:
{{BlockVolume|Block name|size}}
Where Block name is the page of the block and size is small or large for respective the block size.
{{BlockVolume|Large Thruster|small}}
Gives ×× (Expression error: Unexpected * operator. m3)
{{BlockVolume|Large Thruster|large}}
Gives ×× (Expression error: Unexpected * operator. m3)