Vorlage:Floatleft: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
{{#if: {{{rahmen_w|{{{rw|}}} }}}
+
{{titel|{{PAGENAME}}}}
|{{#vardefine:weite|{{{rahmen_w|{{{rw|}}} }}} }}
+
Testbild
|{{#if:{{{w|}}}
+
<div class='testbild' style='background: #eee; padding: 1em'><!--
| {{#vardefine:weite|{{{w|}}}}}
+
--><onlyinclude><!--
|{{#vardefine:weite|240}}
 
}}
 
}}<!--
 
-->{{#vardefine:hoehe|{{{rahmen_h|{{{rh|350}}} }}} }}<!--
 
--><div class='float_left bildtext' style='<!--
 
  
styling des DIV:
+
VARIABLE
  
--> width:{{#expr:{{#var:weite}}+8}}px;
+
-->{{#vardefine: img |{{{1|uzume-hokusai.jpg}}} }}<!--  
clear:right;
 
{{#ifeq: {{{style|}}} | jumpright
 
| margin-right: -{{#expr:{{#var:weite}}/2+8}}px;
 
| {{{style|}}}
 
}}<!-- Ende style --> '> <div class=' w500  {{{hell|}}}'><!--
 
  
BILD
+
Text
  
-->{{Dia
+
-->{{#vardefine:text |{{{2|}}} }}<!--
| {{{1|uzume-hokusai.jpg}}}
 
| rahmen_w={{#var:weite}}
 
| rahmen_h={{#var:hoehe}}
 
| w={{{w|240}}}
 
| left={{{left|0}}} | top={{{top|0}}}
 
| border={{{border|}}}
 
| link={{{link|}}}
 
}}<!--
 
  
Text:
+
Standardweite, rw
  
-->{{#if: {{{2|}}}
+
-->{{#vardefine:rw | {{{rw|{{{rahmen_w|{{{w|240}}}}}}}}} }}<!--
| <div class=text1>{{#if: {{{ref|}}}
+
 
| {{ref|bild={{{1|}}} }}  
+
Standardhöhe, rh
}} {{{2|}}} </div>
+
 
}} </div><!--  
+
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|350}}}}}} }}<!--   
 +
 
 +
reference, ref
 +
 
 +
-->{{#vardefine:ref
 +
|{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }}  
 +
}}<!--  
  
 
Caption:
 
Caption:
  
-->{{#if: {{{caption| }}}
+
-->{{#vardefine:caption
|<div class= 'bildtext caption'> {{{caption| }}}</div>
+
|{{#if: {{{caption| }}}  
}}</div><!-- ende bildbox
+
|<div class= 'bildtext caption'>{{#if: {{{2|}}} | | {{#var:ref}} }}{{{caption|}}}</div> }}
--><noinclude>rw=240| rh=350 | w=240| style= [jumpright]| border= [fff]</noinclude>
+
}}<!--  
 +
 
 +
HTML
 +
 
 +
--><div class='float_leftX w240x {{{hell|}}}' style='width:{{#expr: {{#var:rw}}+8 }}px; {{{style|}}}'>
 +
{{DiaX
 +
| {{#var:img}}
 +
| {{{2|}}}
 +
| rw=   {{#var:rw}}
 +
| rh=   {{#var:rh}}
 +
| w=     {{{w|}}}
 +
| top=  {{{top|0}}}
 +
| left=  {{{lr|{{{left|0}}}}}} 
 +
| right= {{{lr|{{{right|0}}}}}} 
 +
| border={{{border|}}}
 +
| ref= {{{ref|}}}
 +
}}<!-- 
 +
-->{{#var:caption}}</div><!-- 
 +
 
 +
Vorlage Ende
 +
 
 +
--></onlyinclude></div>
 +
----
 +
Parameter:
 +
: Div:  hell, style
 +
: Bild: 1, w, rw, rh, top, right, left, lr, border
 +
: Text: 2, caption, ref
 +
{{Styles}}{{ThisWay||nocite}}

Version vom 19. August 2018, 09:14 Uhr

Floatleft

Testbild

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, top, right, left, lr, border
Text: 2, caption, ref

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