Vorlage:CSS image crop: Unterschied zwischen den Versionen
Aus kommunalflaggen.eu
(Die Seite wurde neu angelegt: „<includeonly><div class="{{#if:{{{Description|}}}|thumb <!-- -->{{#switch:{{{Location|}}} | none | tnone = tnone | left | tleft = tleft | right | tright = t…“) |
|||
(2 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | <includeonly><div class="{{# | + | <includeonly><div class="{{#ifeq: {{{Location|}}} | center |center"><div class="|{{#ifeq: {{{Description|}}}|||thumb}}}} {{#switch: {{{Location|}}} | right = t | left = t | none = t | = {{#ifeq: {{{Description|}}}|||tright}}}}{{{Location|}}}"> |
− | + | {{#ifeq: {{{Description|}}}|||<div style="width: {{{cWidth}}}px;" class="thumbinner">}} | |
− | + | <div style="width:{{{cWidth}}}px;height:{{{cHeight}}}px;overflow:hidden;"> | |
− | + | <div style="position:relative;top:-{{{oTop}}}px;left:-{{{oLeft}}}px;width:{{{bSize}}}"> | |
− | + | [[Datei:{{{Image}}}|{{{bSize}}}px|class=noresize]] | |
− | + | </div>{{#ifeq: {{{Description|}}}|||</div><div class="thumbcaption">{{{Description}}}</div>}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | {{# | + | |
− | <div style="width: {{{cWidth}}}px; height: {{{cHeight}}}px; overflow: hidden;"> | + | |
− | <div style="position: relative; top: -{{{oTop}}}px; left: -{{{oLeft}}}px; width: {{{bSize}}} | + | |
− | + | ||
− | + | ||
− | {{# | + | |
− | <div class="thumbcaption" | + | |
− | + | ||
− | </div>}} | + | |
</div> | </div> | ||
− | </div>{{#ifeq: | + | </div>{{#ifeq: {{{Location|}}} | center |</div>|}}</includeonly> |
− | + | ||
− | </ | + |