FANDOM


m
m
 
Line 1: Line 1:
 
<onlyinclude><div style="width: {{{width|100}}}px; height: {{#expr:{{{width|100}}} * .9155 round 0}}px; position: relative; margin-top: 1em; {{#switch:{{{float|left}}}|left=float: left; margin-right: 10px;|right=float: right; margin-left: 10px;}}"><!--
 
<onlyinclude><div style="width: {{{width|100}}}px; height: {{#expr:{{{width|100}}} * .9155 round 0}}px; position: relative; margin-top: 1em; {{#switch:{{{float|left}}}|left=float: left; margin-right: 10px;|right=float: right; margin-left: 10px;}}"><!--
 
-->{{#switch: {{{orientation|}}}<!--
 
-->{{#switch: {{{orientation|}}}<!--
-->|vertical={{#if:{{{img1|}}}|<div style="position: absolute: top: -{{#expr:{{{width|100}}}*.5 round 0}}px; left: 0; clip: rect(0px {{#expr:{{{width|100}}}*.5 round 0}}px {{#expr:{{{width|100}}}*1.5 round 0}}px 0px);">[[File:{{{img1|}}}|{{{width|100}}}px]]</div>}}<!--
+
-->|vertical={{#if:{{{img1|}}}|<div style="position: absolute; top: -{{#expr:{{{width|100}}}*.5 round 0}}px; left: 0; clip: rect({{#expr:{{{width|100}}}*.5 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*1.5 round 0}}px 0px);">[[File:{{{img1|}}}|{{{width|100}}}px]]</div>}}<!--
 
-->|horizontal={{#if:{{{img1|}}}|<div style="position: absolute; top: 0; left: -{{#expr:{{{width|100}}}*.5 round 0}}px; clip: rect(0px {{#expr:{{{width|100}}}*1.5 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*.5 round 0}}px);">[[File:{{{img1|}}}|{{#expr:{{{width|100}}}*2 round 0}}px]]</div>}}<!--
 
-->|horizontal={{#if:{{{img1|}}}|<div style="position: absolute; top: 0; left: -{{#expr:{{{width|100}}}*.5 round 0}}px; clip: rect(0px {{#expr:{{{width|100}}}*1.5 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*.5 round 0}}px);">[[File:{{{img1|}}}|{{#expr:{{{width|100}}}*2 round 0}}px]]</div>}}<!--
 
-->|#default={{#if:{{{img4|}}}|<div style="position: absolute; top: 0; left: 0;">[[File:{{{img1}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; top: 0; right: 0;">[[File:{{{img2}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; left: 0;">[[File:{{{img3}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; right: 0;">[[File:{{{img4}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><!--
 
-->|#default={{#if:{{{img4|}}}|<div style="position: absolute; top: 0; left: 0;">[[File:{{{img1}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; top: 0; right: 0;">[[File:{{{img2}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; left: 0;">[[File:{{{img3}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; right: 0;">[[File:{{{img4}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><!--

Latest revision as of 02:55, November 14, 2014

[edit · purge]
Template documentation (for the template shown above, sometimes hidden or invisible)
There is currently no documentation for this template.
.
Community content is available under CC-BY-SA unless otherwise noted.