Vorlage:DiaX: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(17 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{titel|{{PAGENAME}}}} | {{titel|{{PAGENAME}}}} | ||
Testbild | Testbild | ||
− | <div class='testbild | + | <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 | ||
Zeile 15: | Zeile 16: | ||
-->{{#vardefine:right | {{#ifeq: {{{right|}}} | 0 | -->{{#vardefine:right | {{#ifeq: {{{right|}}} | 0 | ||
− | | {{#if:{{{w|}}} | {{#expr: {{#var:rw}} - {{{left|0}}} - {{{w|}}} }} | + | | {{#if:{{{w|}}} | {{#expr: {{#var:rw}} - {{{left|0}}} - {{{w|}}} }} | 0 }} |
− | | 0 }} | ||
| {{{right|}}} }} }}<!-- | | {{{right|}}} }} }}<!-- | ||
Bildweite, w | Bildweite, w | ||
− | -->{{#vardefine:w | + | -->{{#vardefine:w | {{#expr: {{#var:rw}} - {{{left|0}}} - {{{right|0}}} + 8 }}px |
− | | {{#expr: {{#var:rw}} - {{{left|0}}} - {{ | + | }}<!-- |
− | |||
Standardhöhe, rh (padding-top) | Standardhöhe, rh (padding-top) | ||
Zeile 52: | Zeile 51: | ||
-->{{#vardefine:border | -->{{#vardefine:border | ||
|{{#if: {{{border|}}}| style='border-color: #{{{border|}}};' }} | |{{#if: {{{border|}}}| style='border-color: #{{{border|}}};' }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}<!-- | }}<!-- | ||
Zeile 63: | Zeile 56: | ||
-->{{#vardefine:text | -->{{#vardefine:text | ||
− | | {{# | + | | {{#if: {{{2|}}} |
− | |<div class='bildtext'>{{# | + | |<div class='bildtext'>{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{2|}}}</div> |
}} | }} | ||
}}<!-- | }}<!-- | ||
Zeile 70: | Zeile 63: | ||
HTML | HTML | ||
− | --><div class='imgBorder imgX {{{hell|}}}' {{#var:border}}> | + | --><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, | ||
+ | #{{#var:id}} .thumbinner { | ||
+ | position: {{#var: position}}; | ||
+ | {{#ifeq: {{{rh|}}} | auto | width:{{#expr:{{#var:rw}}+8}}px; | ||
+ | | width: auto!important;}} | ||
+ | } | ||
+ | }}<!-- | ||
+ | --><div class='aussen' style='position: relative; padding-top: {{#var:rh}};'> | ||
<div class='innen' style=' | <div class='innen' style=' | ||
− | |||
{{#var:margin}}top: {{{top|0}}}px; | {{#var:margin}}top: {{{top|0}}}px; | ||
{{#var:margin}}left: {{{left|0}}}px; | {{#var:margin}}left: {{{left|0}}}px; | ||
{{#var:margin}}right: {{#var:right}}px; | {{#var:margin}}right: {{#var:right}}px; | ||
bottom: 0; | bottom: 0; | ||
− | '>[[Bild:{{#var:img}}|{{#var:w}} | + | '>[[Bild:{{#var:img}}|{{#var:w}}|mini|{{File:{{#var:img}}}}]]</div> |
− | + | </div>{{#var:text}}</div><!-- | |
− | + | ||
--></onlyinclude></div> | --></onlyinclude></div> | ||
---- | ---- | ||
Zeile 99: | Zeile 100: | ||
}} | }} | ||
</nowiki> | </nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |