Vorlage:W503: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(15 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{#vardefine: width
+
Testbild
|{{{rw|{{{rahmen_w|240}}} }}}
+
<div class='testbild'><!--
 +
--><onlyinclude><!--
 +
 
 +
Bilder ba
 +
 
 +
-->{{#vardefine: img1 |{{{1|Asakusa_pagode.jpg}}} }}<!-- 
 +
-->{{#vardefine: img2 |{{{2|umenomiya_shrine.jpg}}} }}<!--     
 +
-->{{#vardefine: img3 |{{{3|schrein_torii_komainu.jpg}}} }}<!-- 
 +
 
 +
Bildtext kurz
 +
 
 +
-->{{#vardefine:text1
 +
| {{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{4|}}}
 +
}}<!--     
 +
-->{{#vardefine:text2
 +
| {{#if: {{{ref|}}}|{{ref|bild={{{2|}}} }} }} {{{5|}}}
 +
}}<!--     
 +
-->{{#vardefine:text3
 +
| {{#if: {{{ref|}}}|{{ref|bild={{{3|}}} }} }} {{{6|}}}
 +
}}<!--   
 +
 
 +
Caption:
 +
 
 +
-->{{#vardefine:caption
 +
| {{#if: {{{caption| }}}
 +
|<div class='bildtext caption'>{{{caption|}}}</div>
 +
}}
 +
}}<!--   
 +
 
 +
Gesamtbreite
 +
 
 +
-->{{#vardefine:rwAll | {{#if:{{{max|}}}|700|500 }}}}<!--
 +
 
 +
Format grid
 +
 +
-->{{#vardefine:grid
 +
|{{#ifeq: {{{format|}}} | right |  1/2/3 | 1/1/3
 +
}}
 +
}}<!--
 +
 
 +
Standardweite Einzelbild, rw
 +
 
 +
-->{{#vardefine:rw
 +
| {{#expr: {{#expr: {{#var:rwAll}}*48/100 }} round 0 }}
 +
}}<!--
 +
 
 +
Weite kleine Bilder
 +
 
 +
-->{{#vardefine:rw2 | {{#var:rw}} }}<!--
 +
-->{{#vardefine:rw3 | {{#var:rw}} }}<!--
 +
 
 +
Standardhöhe, rh
 +
 
 +
-->{{#vardefine:rh 
 +
| {{#expr: {{#expr: {{#var:rwAll}}*2/3 }} round 0 }}
 
}}<!--
 
}}<!--
-->{{#vardefine: height
+
-->{{#vardefine:rh2
|{{{rh| {{{rahmen_h|160}}} }}}
+
| {{#expr: {{#expr: {{#var:rh}}*47/100 }} round 0 }}
 
}}<!--
 
}}<!--
-->{{#vardefine: height2
+
-->{{#vardefine:rh3 | {{#var:rh2}} }}<!--
|{{#expr: {{#var: height}}*2 + 18}}
+
 
}}<!-- {{#ifeq: 1 | 1 | 2 | 1}}
+
Abstände
--><div class= "bildbox bildtext"><!--  
+
 
--><table class= "bildbox bildtext" ><tr><!-- Reihe 1 -->
+
-->{{#vardefine:t1|{{{t1|{{{top1|}}} }}} }}<!--  
<td rowspan={{#ifeq: {{{rowspan|}}} | right | 1 | 2 }}  width={{#expr: {{{rahmen_w1|{{#var:width}} }}}+12}}>{{Dia
+
-->{{#vardefine:l1|{{{l1|{{{left1|{{{lr1|0}}} }}} }}} }}<!-- 
| {{{1|hiroshige_asakusa_fischer.jpg}}}| rahmen_w={{{rahmen_w1|{{#var:width}} }}}| rahmen_h={{{rahmen_h1|{{#var:height{{#ifeq: {{{rowspan|}}} | right | | 2 }} }} }}}| w={{{w1|{{#var:width}} }}} | top={{{top1|0}}}|left={{{left1|0}}} }}
+
-->{{#vardefine:r1|{{{r1|{{{right1|{{{lr1|0}}} }}} }}} }}<!--  
</td>  
+
-->{{#vardefine:b1|{{{b1|}}} }}<!--  
<td  rowspan={{#ifeq:{{{rowspan|}}} | right | 2 | 1}} width={{{rahmen_w2|{{#var:width}} }}}+12}}>{{Dia
+
 
  | {{{2|hiroshige_asakusa.jpg}}}| rahmen_w={{{rahmen_w2|{{#var:width}} }}}| rahmen_h={{{rahmen_h2|{{#var:height{{#ifeq: {{{rowspan|}}} | right | 2}}}} }}}| w={{{w2|{{#var:width}} }}} | top={{{top2|0}}}|left={{{left2|0}}} }} </td>
+
-->{{#vardefine:t2|{{{t2|{{{top2|}}} }}} }}<!--   
</tr><tr><!--- Reihe 2 -->
+
-->{{#vardefine:l2|{{{l2|{{{left2|{{{lr2|0}}} }}} }}} }}<!--  
<td>{{Dia
+
-->{{#vardefine:r2|{{{r2|{{{right2|{{{lr2|0}}} }}} }}} }}<!--
| {{{3|hiroshige_asakusa.jpg}}}| rahmen_w={{{rahmen_w3|{{#var:width}} }}}| rahmen_h={{{rahmen_h3|{{#var:height}} }}}| w={{{w3|{{#var:width}} }}} | top={{{top3|0}}}|left={{{left3|0}}}  
+
-->{{#vardefine:b2|{{{b2|}}} }}<!-- 
 +
 
 +
-->{{#vardefine:t3|{{{t3|{{{top3|}}} }}} }}<!--   
 +
-->{{#vardefine:l3|{{{l3|{{{left3|{{{lr3|0}}} }}} }}} }}<!-- 
 +
-->{{#vardefine:r3|{{{r3|{{{right3|{{{lr3|0}}} }}} }}} }}<!--
 +
-->{{#vardefine:b3|{{{b3|}}} }}<!--     
 +
 
 +
class
 +
 
 +
-->{{#vardefine:max|{{#if:{{{max|}}}|imax }}}}<!--
 +
 
 +
-->{{#vardefine:showPopup
 +
| {{#ifeq:{{{noviewer|}}}|1
 +
  | 0
 +
  | {{{ref|0}}}
 +
  }}
 +
}}<!--
 +
-->{{#vardefine:showPopup2
 +
| {{#var:showPopup}}
 +
}}<!-- 
 +
-->{{#vardefine:showPopup3
 +
| {{#var:showPopup}}
 +
}}<!--   
 +
 +
HTML
 +
 
 +
--><div class='imgWrap {{{hell|}}}'><div class='i500  {{#var:max}}' style='
 +
  display: grid;
 +
  grid-template-columns: 1fr 1fr;  
 +
  grid-gap:6% 4%'>
 +
<div style='grid-area: {{#var:grid}}'> 
 +
{{Dia
 +
| img= {{#var:img1}}
 +
| text={{#var:text1}}
 +
| rw= {{#var:rw}}
 +
| rh= {{#var:rh}}
 +
| t={{#var:t1}}  
 +
| l={{#var:l1}}
 +
| r={{#var:r1}}
 +
| b={{#var:b1}}
 +
| showPopup={{#var:showPopup}}
 +
}}
 +
</div>
 +
<div>
 +
{{Dia
 +
| img= {{#var:img2}}  
 +
| text={{#var:text2}}
 +
| rw= {{#var:rw2}}
 +
| rh= {{#var:rh2}}
 +
| t={{#var:t2}}
 +
| l={{#var:l2}}
 +
| r={{#var:r2}}
 +
| b={{#var:b2}}  
 +
| showPopup={{#var:showPopup2}}  
 +
}}  
 +
</div>
 +
<div style='align-self: end;'>
 +
{{Dia
 +
| img= {{#var:img3}}  
 +
| text={{#var:text3}}
 +
| rw= {{#var:rw3}}
 +
| rh= {{#var:rh3}}
 +
| t={{#var:t3}}  
 +
| l={{#var:l3}} 
 +
| r={{#var:r3}}
 +
| b={{#var:b3}}  
 +
| showPopup={{#var:showPopup3}}  
 
}}
 
}}
</td></tr><!--- Reihe 3 -->
+
</div>
{{#if: {{{caption|{{{ref|}}} }}}  
+
</div>{{#var:caption}}</div><!-- 
|<tr><td colspan=2><div> {{#if: {{{ref|}}}
+
 
  | {{ref|ref={{{ref|}}}|bild={{{1|}}} }}{{ref|ref={{{ref|}}}|bild={{{2|}}} }}{{ref|ref={{{ref|}}}|bild={{{3|}}} }}{{ref|ref={{{ref|}}}|bild={{{4|}}} }}
+
Vorlage Ende
  <br/>}}{{{caption|}}}</div></td></tr>
+
 
}}</table></div>
+
--></onlyinclude></div>
 +
----
 +
Parameter:
 +
: Div: hell, style, rwAll, format[right]
 +
: Bild: 1, 2, 3, w, rh, t, r, l, lr
 +
: Text: 4, 5, 6,  ref, caption

Aktuelle Version vom 6. November 2023, 15:12 Uhr

Testbild

Asakusa pagode.jpg
Umenomiya shrine.jpg
Schrein torii komainu.jpg

Parameter:

Div: hell, style, rwAll, format[right]
Bild: 1, 2, 3, w, rh, t, r, l, lr
Text: 4, 5, 6, ref, caption