Vorlage:W502: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
{{#vardefine: width
+
{{titel|{{PAGENAME}}}}
|{{{rw|{{{rahmen_w|240}}} }}}
+
Testbild
 +
<div class='testbild' style='background: #eee; padding: 1em'><!--
 +
--><onlyinclude><!--
 +
 
 +
Bilder
 +
 
 +
-->{{#vardefine: img1 |{{{1|kasuga_lanterns3.jpg}}} }}<!-- 
 +
-->{{#vardefine: img2 |{{{2|kasuga4.jpg}}} }}<!--   
 +
 
 +
Standardweite, rw
 +
 
 +
-->{{#vardefine:rw
 +
| {{{rw|{{{rahmen_w|{{#expr: 500*48/100 }} }}}}}}
 
}}<!--
 
}}<!--
-->{{#vardefine: height
+
-->{{#vardefine:rw1 | {{{rw1|{{{rahmen_w1|{{#var:rw}}}}}}}} }}<!--
|{{{rh|{{{rahmen_h|300}}} }}}
+
-->{{#vardefine:rw2 | {{{rw2|{{{rahmen_w2|{{#var:rw}}}}}}}} }}<!--
}}<!--
+
 
--><div class= "bildbox bildtext"><!--  
+
Prozent rw1
--><table class= "bildbox bildtext w502 {{{hell|}}}" ><tr>  
+
-->{{#vardefine:rw1%
<td width={{#expr: {{{rahmen_w1|{{#var:width}} }}} }}><!--
+
| {{#if: {{{rw1|{{{rahmen_w1|}}}}}} | {{#expr: {{#var:rw1}}/5 }}
 +
| 48 }} }}<!--
 +
 
 +
Standardhöhe, rh
 +
 
 +
-->{{#vardefine:rh | {{{rh|{{{rahmen_h|300}}}}}} }}<!--
 +
-->{{#vardefine:rh1 | {{{rh1|{{{rahmen_h1|{{#var:rh}}}}}}}} }}<!--
 +
-->{{#vardefine:rh2 | {{{rh2|{{{rahmen_h2|{{#var:rh}}}}}}}} }}<!--    
 +
 
 +
reference, ref
 +
 
 +
-->{{#vardefine:ref
 +
|{{#if: {{{3|}}} | | {{#if: {{{ref|}}}|{{ref|bild={{{1|}}}}}{{ref|bild={{{2|}}}}} }} }}
 +
}}<!-- 
 +
 
 +
Caption:
 +
 
 +
-->{{#vardefine:caption
 +
|{{#if: {{{caption| }}}
 +
|<div class= 'bildtext caption'>{{#var:ref}} {{{caption|}}}</div> }}
 +
}}<!--  
 +
 
 +
HTML
 +
 
 +
--><div class='w500x {{{hell|}}}' style='508px; {{{style|}}}'>
 +
<div style='float: left; width: {{#var:rw1%}}%; margin-right: 4%;'>
 +
{{DiaX
 +
| {{#var:img1}}
 +
| {{{3|}}}
 +
| rw=    {{#var:rw1}}
 +
| rh=    {{#var:rh1}}
 +
| w=    {{{w1|}}}
 +
| top=  {{{top1|0}}}
 +
| left=  {{{lr1|{{{left1|0}}}}}} 
 +
| right= {{{lr1|{{{right1|0}}}}}} 
 +
| border={{{border|}}}
 +
| ref= {{{ref|}}}
 +
}}
 +
</div>
 +
{{DiaX
 +
| {{#var:img2}}
 +
| {{{4|}}}
 +
| rw=    {{#var:rw2}}
 +
| rh=    {{#var:rh2}}
 +
| w=    {{{w2|}}}
 +
| top=  {{{top2|0}}}
 +
| left=  {{{lr2|{{{left2|0}}}}}} 
 +
| right= {{{lr2|{{{right2|0}}}}}} 
 +
| border={{{border|}}}
 +
| ref= {{{ref|}}}
 +
}}<!-- 
 +
-->{{#var:caption}}</div><!--
  
BILD 1
+
Vorlage Ende
  
-->{{Dia
+
--></onlyinclude></div>
| {{{1|hiroshige_asakusa_fischer.jpg}}}
+
----
| rahmen_w={{{rahmen_w1|{{#var:width}} }}}
+
Parameter:
| rahmen_h={{{rahmen_h1|{{#var:height}} }}}
+
: Div: hell, style
| w={{{w1|{{#var:width}} }}}
+
: Bilder: rw, rh, border
| top={{{top1|0}}}
+
: Bild1: 1, w1, rw1, rh1, top1, right1, left1, lr1
| left={{{left1|0}}}
+
: Bild2: 2, w2, rw2, rh2, top2, right2, left2, lr2
}}<!--
+
: Text: 3, 4, caption, ref  
-->{{#if:{{{3|}}}
+
{{Styles}}{{ThisWay||nocite}}
|<div class=text1>{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{3|}}} </div>
 
}}
 
</td><!--
 
--><td width=8></td><td width={{{rahmen_w2|{{#var:width}} }}} }}>{{Dia
 
  | {{{2|hiroshige_asakusa.jpg}}}| rahmen_w={{{rahmen_w2|{{#var:width}} }}}| rahmen_h={{{rahmen_h2|{{#var:height}} }}}| w={{{w2|{{#var:width}} }}} | top={{{top2|0}}}|left={{{left2|0}}}
 
}}{{#if:{{{4|}}}
 
|<div class=text1>{{#if: {{{ref|}}}|{{ref|ref={{{ref|}}}|bild={{{2|}}} }} }} {{{4|}}}</div>
 
}}
 
</td></tr><!--
 
-->{{#if: {{{caption|}}}
 
|<tr><td colspan=3><div class=caption> {{#if: {{{ref|}}}| {{#if:{{{3|}}}||{{ref|ref={{{ref|}}}|bild={{{1|}}} }} }} {{#if:{{{4|}}}||{{ref|ref={{{ref|}}}|bild={{{2|}}} }} }} }} {{{caption|}}}</div></td></tr>
 
}}</table></div><noinclude>
 

Version vom 19. August 2018, 15:29 Uhr

W502

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: 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

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