Template:CSS image crop: Difference between revisions
Appearance
Created page with "<div class="{{#ifeq: {{{Location}}} | center |center"><div class="|{{#ifeq: {{{Description|}}}|||thumb}}}} {{#switch: {{{Location}}} | right = t | left = t | none = t | = {{#i..." |
No edit summary |
||
Line 3: | Line 3: | ||
<div style="width:{{{cWidth}}}px;height:{{{cHeight}}}px;overflow:hidden;position:relative"> | <div style="width:{{{cWidth}}}px;height:{{{cHeight}}}px;overflow:hidden;position:relative"> | ||
<div style="position:relative;top:-{{{oTop}}}px;left:-{{{oLeft}}}px"> | <div style="position:relative;top:-{{{oTop}}}px;left:-{{{oLeft}}}px"> | ||
[[ | [[{{{Image}}}|{{{bSize}}}px]] | ||
</div>{{#ifeq: {{{Description|}}}|||</div><div class="thumbcaption">{{magnify icon|link=File:{{{Image}}}}}{{{Description}}}</div>}} | </div>{{#ifeq: {{{Description|}}}|||</div><div class="thumbcaption">{{magnify icon|link=File:{{{Image}}}}}{{{Description}}}</div>}} | ||
</div> | </div> | ||
</div>{{#ifeq: {{{Location}}} | center |</div>|}} | </div>{{#ifeq: {{{Location}}} | center |</div>|}} |