Difference between revisions of "Dimensions"

From Sega Retro

Line 1: Line 1:
<includeonly>{{#vardefine:highest|{{Highest|{{{1|}}}|{{{2|}}}|{{{3|}}}}}}}{{
+
<includeonly>{{#vardefine:width|{{#if:{{{wi|}}}|{{#expr:{{{wi}}}*0.0254}}|{{{wm|1}}}}}}}{{
#vardefine:newwidth|{{#expr:({{{1|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
+
#vardefine:height|{{#if:{{{hi|}}}|{{#expr:{{{hi}}}*0.0254}}|{{{hm|1}}}}}}}{{
#vardefine:newheight|{{#expr:({{{2|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
+
#vardefine:depth|{{#if:{{{di|}}}|{{#expr:{{{di}}}*0.0254}}|{{{dm|1}}}}}}}{{
#vardefine:newdepth|{{#expr:(({{{3|}}}/{{#var:highest}})*{{{diagramsize|200}}})/2}}}}{{
+
#vardefine:highest|{{Highest|{{#var:height}}|{{#var:width}}|{{#var:depth}}}}}}{{
 +
#vardefine:newwidth|{{#expr:({{#var:width}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
 +
#vardefine:newheight|{{#expr:({{#var:height}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
 +
#vardefine:newdepth|{{#expr:({{#var:depth}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
 
#vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45*0.0174533)}}}}{{
 
#vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45*0.0174533)}}}}{{
 
#vardefine:movey|{{#expr:{{#var:newdepth}} * sin(45*0.0174533)}}}}{{
 
#vardefine:movey|{{#expr:{{#var:newdepth}} * sin(45*0.0174533)}}}}{{
Line 25: Line 28:
 
DrawLine|colour=#999|x1=0|y1={{#expr:{{#var:newdiagramheight}} + 10}}|w={{#var:newwidth}}}}{{
 
DrawLine|colour=#999|x1=0|y1={{#expr:{{#var:newdiagramheight}} + 10}}|w={{#var:newwidth}}}}{{
 
DrawLine|colour=#999|x1={{#expr:{{#var:newwidth}} + 7.07}}|y1={{#expr:{{#var:newdiagramheight}} + 7.07}}|w={{#var:newdepth}}|angle=45}}<div
 
DrawLine|colour=#999|x1={{#expr:{{#var:newwidth}} + 7.07}}|y1={{#expr:{{#var:newdiagramheight}} + 7.07}}|w={{#var:newdepth}}|angle=45}}<div
style="position:relative; vertical-align:top; white-space: nowrap; text-align:center; transform: translate({{#expr:{{#var:newwidth}}/2}}px,{{#var:newdiagramheight}}px); width:0; height:0; line-height:0;"><small>{{ConvertDistance|m={{{1|}}}}}</small></div><div
+
style="position:relative; vertical-align:top; white-space: nowrap; text-align:center; transform: translate({{#expr:{{#var:newwidth}}/2}}px,{{#var:newdiagramheight}}px); width:0; height:0; line-height:0;"><small>{{ConvertDistance|m={{#var:width}}}}</small></div><div
style="position:relative; vertical-align:top; white-space: nowrap; transform: translate(-30px,{{#expr:{{#var:newdiagramheight}}-({{#var:newheight}}/2)}}px) rotate(-90deg); text-align:center; width:0; height:0; line-height:0;"><small>{{ConvertDistance|m={{{2|}}}}}</small></div><div
+
style="position:relative; vertical-align:top; white-space: nowrap; transform: translate(-30px,{{#expr:{{#var:newdiagramheight}}-({{#var:newheight}}/2)}}px) rotate(-90deg); text-align:center; width:0; height:0; line-height:0;"><small>{{ConvertDistance|m={{#var:height}}}}</small></div><div
style="position:relative; vertical-align:top; white-space: nowrap; transform: translate({{#expr:{{#var:newwidth}}+({{#var:newdepth}}/2)}}px,{{#expr:{{#var:newdiagramheight}}-({{#var:newdepth}}/2)}}px); text-align:left; width:0; height:0; line-height:0;"><small>{{ConvertDistance|m={{{3|}}}}}</small></div></div>
+
style="position:relative; vertical-align:top; white-space: nowrap; transform: translate({{#expr:{{#var:newwidth}}+({{#var:newdepth}}/2)}}px,{{#expr:{{#var:newdiagramheight}}-({{#var:newdepth}}/2)}}px); text-align:left; width:0; height:0; line-height:0;"><small>{{ConvertDistance|m={{#var:depth}}}}</small></div></div>
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
{{Dimensions|20|30|60}}{{Dimensions|60|30|20}}{{Dimensions|20|60|30}}
+
{{Dimensions|wm=20|hm=30|dm=60}}{{Dimensions|wm=60|hm=30|dm=20}}{{Dimensions|wm=20|hm=60|dm=30}}
 
[[Category:Sega Retro templates]]
 
[[Category:Sega Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:12, 23 June 2018


20 m (65' 7.4")
30 m (98' 5.1")
60 m (196' 10.2")
60 m (196' 10.2")
30 m (98' 5.1")
20 m (65' 7.4")
20 m (65' 7.4")
60 m (196' 10.2")
30 m (98' 5.1")