Vorlage:DiaX.2: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 25: Zeile 25:
 
Standardweite, rw
 
Standardweite, rw
  
-->{{#vardefine:rw | 600 }}<!--
+
-->{{#vardefine:rw| {{{rw|500}}} }}<!--
  
Standardhöhe, rh
+
Standardhöhe, rh (padding-top)
  
-->{{#vardefine:rh | {{#ifeq: {{{rh|}}} | auto |auto
+
-->{{#vardefine:rh  
| {{#expr:{{{rh|{{{rahmen_h|300 }}} }}}*6/5}}
+
| {{#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='
height: {{rh|inherit}}
+
  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-top: {{{top|0}}}px;
+
   position: {{#var:pos_innen}};
   margin-right: {{{r|{{{lr|0}}}}}}px;  
+
  {{#var:margin}}top: {{{top|0}}}px;
   margin-bottom: {{{b|0}}}px;  
+
   {{#var:margin}}right: {{{r|{{{lr|0}}}}}}px;
   margin-left: {{{l|{{{lr|0}}}}}}px;  
+
   {{#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><!--   

Version vom 8. Dezember 2019, 19:54 Uhr

DiaX.2

Testbild

Darstellung der Ame no Uzume. Werk von Katsushika Hokusai. Edo-Zeit, 1816
Bibliothèque de l'Institut National d'Histoire de l'Art, Paris
Uzume-hokusai.jpg

Parameter:

 {{DiaX.2
 | uzume-hokusai.jpg
 | (text)
 | rw=standard/px
 | rh=auto/standard/px
 | top=
 | l=
 | r=
 | lr=
 | b=
 | hell=
 | class=
 | style= (CSS)
 }}