Vorlage:Floatright: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:
 
Standardhöhe, rh
 
Standardhöhe, rh
  
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|350}}}}}} }}<!--
+
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|350}}}}}} }}<!--    
 +
 
 +
reference, ref
 +
 
 +
-->{{#vardefine:ref
 +
|{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }}
 +
}}<!-- 
  
 
Caption:
 
Caption:
  
 
-->{{#vardefine:caption
 
-->{{#vardefine:caption
|{{#if: {{{caption| }}} |<div class= 'bildtext caption'>{{{caption|}}}</div> }}
+
|{{#if: {{{caption| }}}  
 +
|<div class= 'bildtext caption'>{{#if: {{{2|}}} | | {{#var:ref}} }}{{{caption|}}}</div> }}
 
}}<!--  
 
}}<!--  
  
 
HTML  
 
HTML  
  
--><div class='float_rightX w240x {{{hell|}}}' style='width:{{#expr: {{#var:rw}}+8 }}px; {{{style|}}}'>
+
--><div class='float_{{{float|right}}}X w240x {{{hell|}}}' style='width:{{#expr: {{#var:rw}}+8 }}px; {{{style|}}}'>
 
{{DiaX
 
{{DiaX
 
| {{#var: img}}
 
| {{#var: img}}
Zeile 39: Zeile 46:
 
-->{{#var:caption}}</div><!--   
 
-->{{#var:caption}}</div><!--   
  
CSS
+
Vorlage Ende
 
 
-->{{#css:
 
  
}}</onlyinclude></div>
+
--></onlyinclude></div>
 
----
 
----
 
Parameter:
 
Parameter:

Version vom 18. August 2018, 16:41 Uhr

Floatright

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.

Parameter:

Div: float, style, hell
Bild: 1, w, rw, rh, top, right, left, lr, border
Text: 2, caption, ref

Vorlage:Styles