Vorlage:Floatright: 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_right 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
+
Standardweite, rw
  
-->{{Dia
+
-->{{#vardefine:rw | {{{rw|{{{rahmen_w|240}}}}}} }}<!--
| {{{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:
+
Standardhöhe, rh
  
-->{{#if: {{{2|}}}
+
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|350}}}}}} }}<!-- 
| <div class=text1>{{#if: {{{ref|}}}
+
 
| {{ref|bild={{{1|}}} }}  
+
reference, ref
}} {{{2|}}} </div>
+
 
}} </div><!--  
+
-->{{#vardefine:ref
 +
|{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }}  
 +
}}<!--  
  
 
Caption:
 
Caption:
  
--><!--  
+
-->{{#vardefine:caption
 +
|{{#if: {{{caption| }}}
 +
|<div class= 'bildtext caption'>{{#if: {{{2|}}} | | {{#var:ref}} }}{{{caption|}}}</div> }}
 +
}}<!--
 +
 
 +
HTML
 +
 
 +
--><div class='float_rightX 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><!--
  
Caption:
+
CSS
 +
 
 +
-->{{#css:
  
-->{{#if: {{{caption| }}}
+
}}</onlyinclude></div>
|<div class= 'bildtext caption'> <!--
+
----
Ref hier falls nicht oben:  
+
Parameter:
-->{{#if: {{{2|}}}| <!-- do nothing -->
+
: Div:  float, style, hell
| {{#if: {{{ref|}}}
+
: Bild: 1, w, rw, rh, top, right, left, lr, border
| {{ref|bild={{{1|}}} }} }}
+
: Text: 2, caption, ref  
}} {{{caption| }}}</div>
+
{{Styles}}{{ThisWay||nocite}}
}}</div><!-- ende bildbox
 
--><noinclude>rw=240| rh=350 | w=240| style= [jumpright]| border= [fff]</noinclude>
 

Version vom 17. August 2018, 23:00 Uhr

Floatright

Testbild

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

Parameter:

Div: float, style, hell
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:Floatright.