Vorlage:DiaX: Unterschied zwischen den Versionen

Wechseln zu: Navigation, Suche
 
(19 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
{{titel|{{PAGENAME}}}}  
 
{{titel|{{PAGENAME}}}}  
 
Testbild
 
Testbild
<div class='testbild' style='background: #eee; width: 248px; padding: 1em'><!--
+
<div class='testbild'><!--
 
--><onlyinclude><!--
 
--><onlyinclude><!--
  
Zeile 7: Zeile 7:
  
 
-->{{#vardefine: img |{{{1|uzume-hokusai.jpg}}} }}<!--   
 
-->{{#vardefine: img |{{{1|uzume-hokusai.jpg}}} }}<!--   
 +
-->{{#vardefine: id | i_{{#regex: {{#regex: {{#var:img}} |/[^\.]+/}}|/ /|_}} }}<!-- 
  
 
Standardweite, rw
 
Standardweite, rw
  
-->{{#vardefine:rw | {{{rw|240}}} }}<!--  
+
-->{{#vardefine:rw | {{{rw|240}}} }}<!-- 
 +
 
 +
rechts, right
 +
 
 +
-->{{#vardefine:right | {{#ifeq: {{{right|}}} | 0
 +
| {{#if:{{{w|}}} | {{#expr: {{#var:rw}} - {{{left|0}}} - {{{w|}}} }} | 0 }}
 +
| {{{right|}}} }} }}<!--
 +
 
 +
Bildweite, w
 +
 
 +
-->{{#vardefine:w | {{#expr: {{#var:rw}} - {{{left|0}}} - {{{left|0}}} }}px
 +
}}<!--  
  
 
Standardhöhe, rh (padding-top)
 
Standardhöhe, rh (padding-top)
Zeile 38: Zeile 50:
  
 
-->{{#vardefine:border
 
-->{{#vardefine:border
|{{#if: {{{border|}}}| border-color: #{{{border|}}}; }}
+
|{{#if: {{{border|}}}| style='border-color: #{{{border|}}};' }}
}}<!-- 
 
 
 
reference, ref
 
 
 
-->{{#vardefine:ref
 
|{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }}  
 
 
}}<!--   
 
}}<!--   
  
Zeile 50: Zeile 56:
  
 
-->{{#vardefine:text
 
-->{{#vardefine:text
| {{#if: {{{2|}}}
+
| {{#if: {{{2|}}}  
|<div class='bildtext'>{{#var:ref}}{{{2|}}}</div>
+
|<div class='bildtext'>{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{2|}}}</div>
 
}}
 
}}
 
}}<!--   
 
}}<!--   
Zeile 57: Zeile 63:
 
HTML  
 
HTML  
  
--><div class='imgBorder imgX {{{hell|}}}'>
+
--><div id='{{#var:id}}' class='imgBorder imgX {{{hell|}}}' {{#var:border}}><!--
<div class='aussen' style='position: relative; padding-top: {{#var:rh}};'>
+
-->{{#css:
 +
#{{#var:id}} .innen,
 +
#{{#var:id}} .thumb.tright {
 +
  position: {{#var: position}};
 +
}
 +
}}<!--
 +
--><div class='aussen' style='position: relative; padding-top: {{#var:rh}};'>
 
   <div class='innen' style='
 
   <div class='innen' style='
  position: {{#var: position}};
 
 
   {{#var:margin}}top: {{{top|0}}}px;
 
   {{#var:margin}}top: {{{top|0}}}px;
   {{#var:margin}}left: {{{lr|{{{left|0}}}}}}px;  
+
   {{#var:margin}}left: {{{left|0}}}px;  
   {{#var:margin}}right: {{{lr|{{{right|0}}}}}}px;  
+
   {{#var:margin}}right: {{#var:right}}px;  
 
   bottom: 0;  
 
   bottom: 0;  
  '>[[Bild:{{#var:img}}|240px]]</div>
+
  '>[[Bild:{{#var:img}}|{{#var:w}}|mini|{{File:{{#var:img}}}}]]</div>
</div>{{#var:text}}</div><!--
+
</div>{{#var:text}}</div><!--  
--><div class='pp_text' id='pp_{{#var:img}}'>{{File:{{#var:img}}}}</div><!--
 
 
 
CSS
 
  
-->{{#css:
 
.imgX img {
 
width: 100%;
 
height: inherit;
 
}
 
}}<!--
 
 
--></onlyinclude></div>  
 
--></onlyinclude></div>  
 
----
 
----
Zeile 95: Zeile 97:
 
  }}
 
  }}
 
  </nowiki>
 
  </nowiki>
Vorlage hier eingebunden:
 
{{DiaX
 
| uzume-hokusai.jpg
 
| Uzume
 
| rw=240
 
| rh=350
 
| w= 240
 
| top=
 
| left=
 
| lr=
 
| hell=
 
| border=
 
| style=
 
}}
 

Aktuelle Version vom 25. März 2019, 19:17 Uhr

Religion in Japan > Vorlage > DiaX
DiaX

Testbild

Ame no Uzume.
Buchillustration, kami von Katsushika Hokusai. 1816; aus Hokusai manga, Bd. 5
Bildquelle: visipix (bearbeitet). (Letzter Zugriff: 2016/9/18).

Darstellung der Ame no Uzume


Parameter:

 {{DiaX
 | uzume-hokusai.jpg
 | (text)
 | rw=240
 | rh=240
 | w= 
 | top=
 | left=
 | lr=
 | hell=
 | border=(fff)  
 | style= (CSS)
 }}