Vorlage:Smallimage: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 2: | Zeile 2: | ||
|{{{1|Sanmen_daikoku.jpg}}} | |{{{1|Sanmen_daikoku.jpg}}} | ||
}}<!-- | }}<!-- | ||
+ | -->{{#vardefine: id | i_{{#regex: {{#regex: {{#var:img}} |/[^\.]+/}}|/ /|_}} }}<!-- | ||
Bildtext | Bildtext | ||
Zeile 10: | Zeile 11: | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
− | --><div class=smallimage> | + | |
+ | schreiben | ||
+ | |||
+ | --><div class=smallimage id={{#var:id}}> | ||
<div class='imgBorder'>[[Bild:{{#var:img}}]]</div> | <div class='imgBorder'>[[Bild:{{#var:img}}]]</div> | ||
<div class='caption'>{{#var:text}}</div> | <div class='caption'>{{#var:text}}</div> | ||
− | </div>{{#css: | + | </div><!-- |
− | + | ||
− | float:{{{float| | + | CSS |
− | + | ||
− | + | -->{{#if: {{{float|}}} | |
− | + | | {{#css: | |
+ | #{{var:id}} { | ||
+ | float:{{{float|}}}; | ||
{{#switch: {{{float|}}} | {{#switch: {{{float|}}} | ||
| right = padding-left: 1em; | | right = padding-left: 1em; | ||
Zeile 24: | Zeile 30: | ||
}} | }} | ||
} | } | ||
− | + | }} | |
− | |||
− | } | ||
}} | }} |