Vorlage:W502: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
(20 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{titel|{{PAGENAME}}}}
 
 
Testbild
 
Testbild
<div class='testbild' style='background: #eee; padding: 1em'><!--
+
<div class='testbild'><!--
 
--><onlyinclude><!--
 
--><onlyinclude><!--
  
Zeile 11: Zeile 10:
 
Gesamtbreite
 
Gesamtbreite
  
-->{{#vardefine:rwAll | {{{rwAll|500}}} }}<!--
+
-->{{#vardefine:rwAll | {{{rwAll|600}}} }}<!--
  
 
Standardweite Einzelbild, rw
 
Standardweite Einzelbild, rw
Zeile 29: Zeile 28:
  
 
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|300}}}}}} }}<!--
 
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|300}}}}}} }}<!--
-->{{#vardefine:rh1 | {{{rh1|{{{rahmen_h1|{{#var:rh}}}}}}}} }}<!--
+
-->{{#vardefine:rh1 | {{#expr: {{{rh1|{{{rahmen_h1|{{#var:rh}}}}}}}}*6/5 }} }}<!--
-->{{#vardefine:rh2 | {{{rh2|{{{rahmen_h2|{{#var:rh}}}}}}}} }}<!--    
+
-->{{#vardefine:rh2 | {{#expr: {{{rh2|{{{rahmen_h2|{{#var:rh}}}}}}}}*6/5 }} }}<!--
  
reference, ref
+
right
  
-->{{#vardefine:ref
+
-->{{#vardefine:right1 | {{#if: {{{w1|}}}
|{{#if: {{{3|}}} | | {{#if: {{{ref|}}}|{{ref|bild={{{1|}}}}}{{ref|bild={{{2|}}}}} }} }}
+
| {{#expr: {{#var:rw1}} - ({{{w1|}}}*6/5 + {{{left1|0}}}*6/5) }}
}}<!--  
+
| 0
 +
}} }}<!-- 
 +
-->{{#vardefine:right2 | {{#if: {{{w2|}}}
 +
| {{#expr: {{#var:rw2}} - ({{{w2|}}}*6/5 + {{{left2|0}}}*6/5) }}
 +
| 0
 +
}} }}<!--
  
 
Caption:
 
Caption:
Zeile 42: Zeile 46:
 
-->{{#vardefine:caption
 
-->{{#vardefine:caption
 
|{{#if: {{{caption| }}}  
 
|{{#if: {{{caption| }}}  
|<div class= 'bildtext caption'>{{#var:ref}} {{{caption|}}}</div> }}
+
|<div class='bildtext caption'>{{#if: {{{ref|}}}| {{#if:{{{3|}}}||{{ref|ref={{{ref|}}}|bild={{{1|}}} }} }}{{#if:{{{4|}}}||{{ref|ref={{{ref|}}}|bild={{{2|}}} }} }} }} {{{caption|}}}</div>
 +
}}
 
}}<!--  
 
}}<!--  
  
 
HTML  
 
HTML  
  
--><div class='w500x {{{hell|}}}' style='width:{{#expr:{{#var:rwAll}}+8}}px; {{{style|}}}'>
+
--><div class='w500x {{{hell|}}}' style='{{#if: {{{rwAll|}}}
 +
| width: {{{rwAll|}}}; }}{{{style|}}}'>
 
<div style='float: left; width: {{#var:rw1%}}%; margin-right: 4%;'>
 
<div style='float: left; width: {{#var:rw1%}}%; margin-right: 4%;'>
 
{{DiaX
 
{{DiaX
Zeile 57: Zeile 63:
 
  | top=  {{{top1|0}}}
 
  | top=  {{{top1|0}}}
 
  | left=  {{{lr1|{{{left1|0}}}}}}   
 
  | left=  {{{lr1|{{{left1|0}}}}}}   
  | right= {{{lr1|{{{right1|0}}}}}}   
+
  | right= {{{lr1|{{{right1|{{#var:right1}} }}}}}}   
 
  | border={{{border|}}}  
 
  | border={{{border|}}}  
 
  | ref= {{{ref|}}}
 
  | ref= {{{ref|}}}
Zeile 70: Zeile 76:
 
  | top=  {{{top2|0}}}
 
  | top=  {{{top2|0}}}
 
  | left=  {{{lr2|{{{left2|0}}}}}}   
 
  | left=  {{{lr2|{{{left2|0}}}}}}   
  | right= {{{lr2|{{{right2|0}}}}}}   
+
  | right= {{{lr2|{{{right2|{{#var:right2}} }}} }}}   
 
  | border={{{border|}}}  
 
  | border={{{border|}}}  
 
  | ref= {{{ref|}}}
 
  | ref= {{{ref|}}}
Zeile 85: Zeile 91:
 
: Bild1: 1, w1, rw1, rh1, top1, right1, left1, lr1
 
: Bild1: 1, w1, rw1, rh1, top1, right1, left1, lr1
 
: Bild2: 2, w2, rw2, rh2, top2, right2, left2, lr2
 
: Bild2: 2, w2, rw2, rh2, top2, right2, left2, lr2
: Text: 3, 4, caption, ref  
+
: Text: 3, 4, caption, ref
{{Styles}}{{ThisWay||nocite}}
 

Version vom 28. August 2018, 18:14 Uhr

Testbild

Der Hirsch als Symbol des Schreins ist auch auf vielen Laternen (tōrō) zu finden.
Yamada Ryoko, flickr, 2005.
Die Grundform ist gleich, doch jede Laterne (tōrō) ist ein Einzelstück.
Owen Murray, flickr, 2007.

Parameter:

Div: hell, style
Bilder: rwAll, rw, rh, border
Bild1: 1, w1, rw1, rh1, top1, right1, left1, lr1
Bild2: 2, w2, rw2, rh2, top2, right2, left2, lr2
Text: 3, 4, caption, ref