Difference between revisions of "Dimensions"

From Sega Retro

 
(2 intermediate revisions by the same user not shown)
Line 30: Line 30:
 
style="position:relative; vertical-align:top; white-space: nowrap; text-align:center; transform: translate({{#expr:{{#var:newwidth}}/3}}px,{{#var:newdiagramheight}}px); width:0; height:0; line-height:0;"><small>{{RolloverText|{{ConvertDistance|m={{#var:width}}|inchesonly=true}}|Width}}</small></div><div
 
style="position:relative; vertical-align:top; white-space: nowrap; text-align:center; transform: translate({{#expr:{{#var:newwidth}}/3}}px,{{#var:newdiagramheight}}px); width:0; height:0; line-height:0;"><small>{{RolloverText|{{ConvertDistance|m={{#var:width}}|inchesonly=true}}|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>{{RolloverText|{{ConvertDistance|m={{#var:height}}|inchesonly=true}}|Height}}</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>{{RolloverText|{{ConvertDistance|m={{#var:height}}|inchesonly=true}}|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>{{RolloverText|{{ConvertDistance|m={{#var:depth}}|inchesonly=true}}|Depth}}</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>{{RolloverText|{{ConvertDistance|m={{#var:depth}}|inchesonly=true}}|Depth}}</small></div><div style="position:relative; vertical-align:top;  transform:translate({{#expr:{{#var:newdiagramwidth}}+30}}px,-20px); white-space: nowrap; width:0; height:0; line-height:0;" >{{{ref|}}}</div></div>
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
{{Dimensions|wm=20|hm=30|dm=60}}{{Dimensions|wm=60|hm=30|dm=20}}{{Dimensions|wm=20|hm=60|dm=30}}
+
Template for visualising dimensions. Units can be supplied in either metric (m) or imperial (i).
[[Category:Sega Retro templates]]
+
 
 +
==Examples==
 +
<pre>{{Dimensions|wm=20|hm=30|dm=60}}</pre>
 +
{{Dimensions|wm=20|hm=30|dm=60}}
 +
<pre>{{Dimensions|wm=60|hm=30|dm=20|diagramsize=300}}</pre>
 +
{{Dimensions|wm=60|hm=30|dm=20|diagramsize=300}}
 +
<pre>{{Dimensions|wi=20|hi=60|di=30|ref={{ref|http://www.google.com}}}}</pre>
 +
{{Dimensions|wi=20|hi=60|di=30|ref={{ref|http://www.google.com}}}}
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:07, 1 January 2022


Template for visualising dimensions. Units can be supplied in either metric (m) or imperial (i).

Examples

{{Dimensions|wm=20|hm=30|dm=60}}
20 m (787.4")
30 m (1181.1")
60 m (2362.2")


{{Dimensions|wm=60|hm=30|dm=20|diagramsize=300}}
60 m (2362.2")
30 m (1181.1")
20 m (787.4")


{{Dimensions|wi=20|hi=60|di=30|ref={{ref|http://www.google.com}}}}
508 mm (20")
1.524 m (60")
762 mm (30")