Vorlage:W503: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
 
-->{{#vardefine: img1 |{{{1|backyardshrine.jpg}}} }}<!--   
 
-->{{#vardefine: img1 |{{{1|backyardshrine.jpg}}} }}<!--   
 
-->{{#vardefine: img2 |{{{2|umenomiya_shrine.jpg}}} }}<!--       
 
-->{{#vardefine: img2 |{{{2|umenomiya_shrine.jpg}}} }}<!--       
-->{{#vardefine: img3 |{{{3|schrein_torii_komainu.jpg}}} }}<!--       
+
-->{{#vardefine: img3 |{{{3|schrein_torii_komainu.jpg}}} }}<!-- 
 +
 
 +
Bildtext kurz
 +
 
 +
-->{{#vardefine:text1
 +
| {{#if: {{{4|}}}
 +
| {{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{4|}}}
 +
}}
 +
}}<!--       
 +
-->{{#vardefine:text2
 +
| {{#if: {{{5|}}}
 +
| {{#if: {{{ref|}}}|{{ref|bild={{{2|}}} }} }} {{{5|}}}
 +
}}
 +
}}<!--     
 +
-->{{#vardefine:text3
 +
| {{#if: {{{6|}}}
 +
| {{#if: {{{ref|}}}|{{ref|bild={{{3|}}} }} }} {{{6|}}}
 +
}}
 +
}}<!--     
 +
 
 +
reference, ref
 +
 
 +
-->{{#vardefine:ref
 +
|{{#if: {{{4|}}} |
 +
|{{#if: {{{ref|}}} | {{ref|bild={{{1|}}}}}{{ref|bild={{{2|}}}}}{{ref|bild={{{3|}}}}} }} 
 +
}}
 +
}}<!--   
 +
 
 +
Caption:
 +
 
 +
-->{{#vardefine:caption
 +
|<div class= 'bildtext caption clear'>{{#if: {{{caption| }}}
 +
|{{#var:ref}} {{{caption|}}} }}</div>
 +
}}<!--
  
 
Gesamtbreite
 
Gesamtbreite
Zeile 39: Zeile 72:
 
-->{{#vardefine:rh1 | {{#expr: {{#var:rh}} * 2.15  }} }}<!--
 
-->{{#vardefine:rh1 | {{#expr: {{#var:rh}} * 2.15  }} }}<!--
  
reference, ref
+
right
 +
 
 +
-->{{#vardefine:r1 | {{#if: {{{w1|}}}
 +
| {{#expr: {{#var:rw1}} - ({{{w1|}}}*6/5 + {{{left1|0}}}*6/5) }}
 +
| 0
 +
}} }}<!-- 
 +
-->{{#vardefine:r2 | {{#if: {{{w2|}}}
 +
| {{#expr: {{#var:rw2}} - ({{{w2|}}}*6/5 + {{{left2|0}}}*6/5) }}
 +
| 0
 +
}} }}<!-- 
  
-->{{#vardefine:ref
+
-->{{#vardefine:r3 | {{#if: {{{w3|}}}
|{{#if: {{{4|{{{5|}}} }}} | | {{#ifeq: {{{ref|}}}| 1|{{ref|bild={{{1|}}}}}{{ref|bild={{{2|}}}}}{{ref|bild={{{3|}}}}} }} }}
+
| {{#expr: {{#var:rw3}} - ({{{w3|}}}*6/5 + {{{left3|0}}}*6/5) }}
}}<!--  
+
| 0
 +
}} }}<!--
  
Caption:
+
Abstände
 +
 
 +
-->{{#vardefine:t1|{{{t1|{{{top1|}}}}}}}}<!--   
 +
-->{{#vardefine:l1|{{{l1|{{{left1|{{{lr1|}}}}}}}}}}}<!-- 
 +
-->{{#vardefine:r1|{{{r1|{{{right1|{{{lr1|{{#var:r1}}}}}}}}}}}}}<!--
 +
-->{{#vardefine:b1|{{{b1|}}}}}<!-- 
 +
 
 +
-->{{#vardefine:t2|{{{t2|{{{top2|}}}}}}}}<!--   
 +
-->{{#vardefine:l2|{{{l2|{{{left2|{{{lr2|}}}}}}}}}}}<!-- 
 +
-->{{#vardefine:r2|{{{r2|{{{right2|{{{lr2|{{#var:r2}}}}}}}}}}}}}<!--
 +
-->{{#vardefine:b2|{{{b2|}}}}}<!-- 
 +
 
 +
-->{{#vardefine:t3|{{{t3|{{{top3|}}}}}}}}<!--   
 +
-->{{#vardefine:l3|{{{l3|{{{left3|{{{lr3|}}}}}}}}}}}<!-- 
 +
-->{{#vardefine:r3|{{{r3|{{{right3|{{{lr3|{{#var:r3}}}}}}}}}}}}}<!--
 +
-->{{#vardefine:b3|{{{b3|}}}}}<!-- 
  
-->{{#vardefine:caption
 
|{{#if: {{{caption| }}}
 
|<div class= 'bildtext caption'>{{#var:ref}} {{{caption|}}}</div> }}
 
}}<!--
 
 
   
 
   
 
HTML  
 
HTML  
  
--><div class='w500x {{{hell|}}}' style='{{#if: {{{rwAll|}}}
+
--><div class='i500 {{{hell|}}}' style='{{#if: {{{rwAll|}}}
 
| width: {{{rwAll|}}}; }}{{{style|}}}'>
 
| width: {{{rwAll|}}}; }}{{{style|}}}'>
 
<div style='display: grid;  
 
<div style='display: grid;  
Zeile 60: Zeile 114:
 
   grid-gap: 10px 4%;'>  
 
   grid-gap: 10px 4%;'>  
 
<div style='grid-area: {{#var:grid}}'>   
 
<div style='grid-area: {{#var:grid}}'>   
{{DiaX
+
{{DiaX.2
| {{#var:img1}}
+
| img= {{#var:img1}}
| {{{4|}}}
+
| text={{#var:text1}}
 
| rw= {{#var:rw}}
 
| rw= {{#var:rw}}
 
| rh= {{#var:rh1}}
 
| rh= {{#var:rh1}}
| w= {{{w1|}}}  
+
| t={{#var:t1}}  
| top=   {{#expr:{{{top1|0}}}*6/5}}
+
| l={{#var:l1}}
| left= {{#expr:{{{lr1|{{{left1|0}}}}}} *6/5}}  
+
| r={{#var:r1}}
| right= {{#expr:{{{lr1|{{{right1|0}}}}}}*6/5}} 
+
| b={{#var:b1}}  
| ref= {{{ref|}}} 
 
 
}}  
 
}}  
 
</div>
 
</div>
 
<div>
 
<div>
{{DiaX
+
{{DiaX.2
| {{#var:img2}}  
+
| img= {{#var:img2}}  
| {{{5|}}}
+
| text={{#var:text2}}
 
| rw= {{#var:rw2}}
 
| rw= {{#var:rw2}}
 
| rh= {{#var:rh2}}
 
| rh= {{#var:rh2}}
| w= {{{w2|}}}
+
| t={{#var:t2}}  
| top=   {{#expr:{{{top2|0}}}*6/5}}  
+
| l={{#var:l2}}
| left= {{#expr:{{{lr2|{{{left2|0}}}}}}*6/5}} 
+
| r={{#var:r2}}
| right= {{#expr:{{{lr2|{{{right2|0}}}}}}*6/5}} 
+
| b={{#var:b2}}  
| ref= {{{ref|}}}  
 
 
}}  
 
}}  
 
</div>
 
</div>
 
<div style='align-self: end;'>   
 
<div style='align-self: end;'>   
{{DiaX
+
{{DiaX.2
| {{#var:img3}}
+
| img= {{#var:img3}}  
| {{{6|}}}
+
| text={{#var:text3}}
 
| rw= {{#var:rw3}}
 
| rw= {{#var:rw3}}
 
| rh= {{#var:rh3}}
 
| rh= {{#var:rh3}}
| w= {{{w3|}}}
+
| t={{#var:t3}}  
| top=   {{#expr:{{{top3|0}}}*6/5}}  
+
| l={{#var:l3}}   
| left= {{#expr:{{{lr3|{{{left3|0}}}}}} *6/5}}   
+
| r={{#var:r3}}
| right= {{#expr:{{{lr3|{{{right3|0}}}}}} *6/5}}  
+
| b={{#var:b3}}  
| ref= {{{ref|}}}  
 
 
}}
 
}}
 
</div>
 
</div>
Zeile 106: Zeile 157:
 
----
 
----
 
Parameter:
 
Parameter:
: Div:  hell, style, rwAll, format=[right]
+
: Div:  hell, style, rwAll,
: Bild: 1, 2, 3, w, rh, top, right, left, lr  
+
: Bild: 1, 2, 3, w, rh, t, r, l, lr  
 
: Text: 4, 5, 6,  ref, caption
 
: Text: 4, 5, 6,  ref, caption

Version vom 16. Dezember 2019, 21:57 Uhr

Testbild

Backyardshrine.jpg
Ein torii in einer Hintergasse Tōkyōs.
Eckhart Derschmidt, PBase 2005 (mit freundlicher Genehmigung).
Umenomiya shrine.jpg
Schreinzugang mit torii in städtischer Umgebung.
Bildquelle: unbekannt.
Schrein torii komainu.jpg
Typisches Ensemble von torii, Miniaturschrein (hokora), komainu und Steinlaterne (tōrō) in einer städtischen Parkanlage.
Bildquelle: unbekannt.

Parameter:

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