Difference between revisions of "Ortho"
From Sega Retro
(Created page with "<includeonly>{{#if:{{{width|}}}|{{#vardefine:ht|{{w2h|{{{front}}}|{{d2w|{{{front}}}|{{{width}}}|{{{height}}}}}}}}}|{{#vardefine:ht|{{{height}}}}}}}{{#if: {{{back|}}} | {{#vard...") |
|||
Line 18: | Line 18: | ||
{{#if:{{{top|}}}|<div style="margin-left:{{#var:tl}}px">[[File:{{{top}}}|{{#var:tw}}px]]</div>}} | {{#if:{{{top|}}}|<div style="margin-left:{{#var:tl}}px">[[File:{{{top}}}|{{#var:tw}}px]]</div>}} | ||
{{#if:{{{back|}}}{{{front|}}}{{{left|}}}{{{right|}}}|<div> | {{#if:{{{back|}}}{{{front|}}}{{{left|}}}{{{right|}}}|<div> | ||
− | {{#if:{{{back|}}}|<div style="display:inline-block; transform:scaley()">[[File:{{{back}}}|x{{#var:ht}}px]]</div>}} | + | {{#if:{{{back|}}}|<div style="display:inline-block; transform:scaley({{#expr:{{#var:ht}}/{{hactual|{{{back}}}|{{#var:ht}}}}}})">[[File:{{{back}}}|x{{#var:ht}}px]]</div>}} |
− | {{#if:{{{left|}}}|<div style="display:inline-block; transform:scaley()">[[File:{{{left}}}|x{{#var:ht}}px]]</div>}} | + | {{#if:{{{left|}}}|<div style="display:inline-block; transform:scaley({{#expr:{{#var:ht}}/{{hactual|{{{left}}}|{{#var:ht}}}}}})">[[File:{{{left}}}|x{{#var:ht}}px]]</div>}} |
− | {{#if:{{{front|}}}|<div style="display:inline-block; transform:scaley()">[[File:{{{front}}}|x{{#var:ht}}px]]</div>}} | + | {{#if:{{{front|}}}|<div style="display:inline-block; transform:scaley({{#expr:{{#var:ht}}/{{hactual|{{{front}}}|{{#var:ht}}}}}})">[[File:{{{front}}}|x{{#var:ht}}px]]</div>}} |
− | {{#if:{{{right|}}}|<div style="display:inline-block; transform:scaley()">[[File:{{{right}}}|x{{#var:ht}}px]]</div>}} | + | {{#if:{{{right|}}}|<div style="display:inline-block; transform:scaley({{#expr:{{#var:ht}}/{{hactual|{{{right}}}|{{#var:ht}}}}}})">[[File:{{{right}}}|x{{#var:ht}}px]]</div>}} |
</div>}} | </div>}} | ||
{{#if:{{{bottom|}}}|<div style="margin-left:{{#var:bl}}px;">[[File:{{{bottom}}}|{{#var:bw}}px]]</div>}} | {{#if:{{{bottom|}}}|<div style="margin-left:{{#var:bl}}px;">[[File:{{{bottom}}}|{{#var:bw}}px]]</div>}} |