Vorlage:Dia: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 25: | Zeile 25: | ||
Standardweite, rw | Standardweite, rw | ||
− | -->{{#vardefine:rw | | + | -->{{#vardefine:rw| {{{rw|500}}} }}<!-- |
− | Standardhöhe, rh | + | Standardhöhe, rh (padding-top) |
− | -->{{#vardefine:rh | {{# | + | -->{{#vardefine:rh |
− | | {{#expr:{{{rh|{{ | + | | {{#if: {{{rh|}}} |
− | }} }}<!-- | + | | {{#expr: {{{rh|}}}/{{#var:rw}}*100}}% |
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | styles für innen | ||
+ | |||
+ | -->{{#if: {{{rh|}}} | | ||
+ | {{#vardefine:margin| margin-}} | ||
+ | {{#vardefine:pos_innen| absolute}} | ||
+ | }}<!-- | ||
HTML | HTML | ||
Zeile 37: | Zeile 46: | ||
--><div id='{{#var:id}}' class='imgBorder diax2 {{{hell|}}} {{{class|}}}'><!-- | --><div id='{{#var:id}}' class='imgBorder diax2 {{{hell|}}} {{{class|}}}'><!-- | ||
--><div class='aussen' style=' | --><div class='aussen' style=' | ||
− | + | padding-top: {{#var:rh}} | |
'>[[Bild:{{#var:img}}|75x75px|thumb|{{#var:anm}}]] | '>[[Bild:{{#var:img}}|75x75px|thumb|{{#var:anm}}]] | ||
<div class='innen' style=' | <div class='innen' style=' | ||
− | margin | + | position: {{#var:pos_innen}}; |
− | margin | + | {{#var:margin}}top: {{{top|0}}}px; |
− | margin | + | {{#var:margin}}right: {{{r|{{{lr|0}}}}}}px; |
− | margin | + | {{#var:margin}}bottom: {{{b|0}}}px; |
+ | {{#var:margin}}left: {{{l|{{{lr|0}}}}}}px; | ||
'>[[Bild:{{#var:img}}|{{#var:rw}}px|ohne|link=]]</div> | '>[[Bild:{{#var:img}}|{{#var:rw}}px|ohne|link=]]</div> | ||
</div>{{#var:text}}</div><!-- | </div>{{#var:text}}</div><!-- |