Vorlage:Floatleft: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:
 
VARIABLE
 
VARIABLE
  
-->{{#vardefine: img |{{{1|uzume-hokusai.jpg}}} }}<!--  
+
-->{{#vardefine: img |{{{1|uzume-hokusai.jpg}}} }}<!--
  
Text
+
Bildtext kurz
  
-->{{#vardefine:text |{{{2|}}} }}<!--
+
-->{{#vardefine:text
 
+
| {{#if: {{{2|}}}  
Standardweite, rw
+
| {{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{2|}}}
 
+
}}
-->{{#vardefine:rw | {{{rw|{{{rahmen_w|{{{w|240}}}}}}}}} }}<!--
+
}}<!--
 
 
Standardhöhe, rh
 
 
 
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|350}}}}}} }}<!--   
 
 
 
reference, ref
 
 
 
-->{{#vardefine:ref
 
|{{#if: {{{2|}}} | | {{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} }}
 
}}<!--  
 
  
 
Caption:
 
Caption:
  
 
-->{{#vardefine:caption
 
-->{{#vardefine:caption
|{{#if: {{{caption| }}}  
+
| {{#if: {{{caption| }}}  
|<div class= 'bildtext caption'>{{#var:ref}} {{{caption|}}}</div> }}
+
|<div class='bildtext caption'>{{#if: {{{ref|}}}
 +
| {{#if:{{{2|}}}|<!-- do nothing -->
 +
|{{ref | ref={{{ref|}}} | bild={{{1|}}} }}
 +
}}
 +
}} {{{caption|}}}</div>
 +
}}
 
}}<!--  
 
}}<!--  
 +
 +
Style width
 +
 +
-->{{#vardefine:rw|{{{rw|{{{rahmen_w|240}}}}}}}}<!--   
 +
-->{{#vardefine:rh|{{{rh|{{{rahmen_h|350}}}}}}}}<!--   
 +
-->{{#vardefine:t|{{{t|{{{top|}}}}}}}}<!--   
 +
-->{{#vardefine:l|{{{l|{{{left|{{{lr|}}}}}}}}}}}<!--   
 +
-->{{#vardefine:r|{{{r|{{{lr|}}}}}}}}<!--   
 +
-->{{#vardefine:b|{{{b|}}}}}<!--     
  
 
HTML  
 
HTML  
  
--><div class='float_leftX w240x {{{hell|}}}' style='width:{{#expr: {{#var:rw}}+8 }}px; {{{style|}}}'>
+
--><div class='i240 ileft {{{hell|}}}'>
{{DiaX
+
{{DiaX.2
| {{#var:img}}
+
| img={{#var:img}}
| {{{2|}}}
+
| text= {{{2|}}}
  | rw=   {{#var:rw}}
+
  | rw={{#var:rw}}
  | rh=   {{#var:rh}}
+
  | rh={{#var:rh}}  
  | w=     {{{w|}}}
+
  | t={{#var:t}}
  | top=   {{{top|0}}}
+
  | l={{#var:l}}  
  | left= {{{lr|{{{left|0}}}}}}
+
  | r={{#var:r}}  
  | right= {{{lr|{{{right|0}}}}}}   
+
  | b={{#var:b}}   
| border={{{border|}}}
 
| ref= {{{ref|}}}
 
 
  }}<!--   
 
  }}<!--   
 
-->{{#var:caption}}</div><!--   
 
-->{{#var:caption}}</div><!--   
Zeile 56: Zeile 58:
 
Parameter:
 
Parameter:
 
: Div:  hell, style
 
: Div:  hell, style
: Bild: 1, w, rw, rh, top, right, left, lr, border
+
: Bild: 1, w, rw, rh, t, r, l, lr
 
: Text: 2, caption, ref  
 
: Text: 2, caption, ref  
 
{{Styles}}{{ThisWay||nocite}}
 
{{Styles}}{{ThisWay||nocite}}

Version vom 15. Dezember 2019, 21:00 Uhr

Floatleft

Testbild

Uzume-hokusai.jpg
Darstellung der Ame no Uzume.
Werk von Katsushika Hokusai. Edo-Zeit, 1816. Internet Archive, Birmingham Young University.

Parameter:

Div: hell, style
Bild: 1, w, rw, rh, t, r, l, lr
Text: 2, caption, ref

Achtung: Sie sehen eine veraltete Version von https://religion-in-japan.univie.ac.at/Handbuch/Vorlage:Floatleft.