Eine freie Initiative von Menschen bei anthrowiki.at, anthro.world, biodyn.wiki und steiner.wiki mit online Lesekreisen, Übungsgruppen, Vorträgen ... |
Wie Sie die Entwicklung von AnthroWiki durch Ihre Spende unterstützen können, erfahren Sie hier. |
Vorlage:Doppeltes Bild: Unterschied zwischen den Versionen
Aus AnthroWiki
imported>Odyssee (Die Seite wurde neu angelegt: „<includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> | links = <div class="thumb tleft"> | rechts = <d…“) |
imported>Odyssee Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
<includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> | <includeonly>{{#switch: {{{1|}}} <!-- first parameter inserts a <div> with a left, right or central float --> | ||
| links = <div class="thumb | | links = <div class="thumb float-left"> | ||
| rechts = <div class="thumb | | rechts = <div class="thumb float-right"> | ||
| zentriert = <div class="center"><div class="thumb tnone"> | | zentriert = <div class="center"><div class="thumb tnone"> | ||
| #default = <div class="thumb | | #default = <div class="thumb float-right"> | ||
}}<div class="thumbinner" style="width:{{#expr: {{{3|0}}} + {{{5|0}}} + 8}}px;"> <!-- calculate width based on image widths +8px --> | }}<div class="thumbinner" {{#iferror:{{#expr: {{{3|0}}} + {{{5|0}}}}}||style="width:{{#expr: {{{3|0}}} + {{{5|0}}} + 8}}px;"}}> <!-- calculate width based on image widths +8px --> | ||
{| style="background: transparent; border: 0; padding: 0; margin: 0; width:{{#expr: {{{3|0}}} + {{{5|0}}} + 4}}px;" cellspacing="0" | {| style="background: transparent; border: 0; padding: 0; margin: 0; width:{{#expr: {{{3|0}}} + {{{5|0}}} + 4}}px;" cellspacing="0" | ||
|- style="vertical-align:{{{valign|middle}}};" | |- style="vertical-align:{{{valign|middle}}};" | ||
| style="padding: auto; margin: 0;" class="thumbimage" | [[Datei:{{{2}}}|{{{3}}}px|{{{6|}}}|{{{8 | | style="padding: auto; margin: 0;" class="thumbimage" | [[Datei:{{{2}}}|{{{3}}}px|{{{6|}}}{{#if:{{{8|}}}|{{!}}alt={{{8}}}}}]] <!-- image 1 --> | ||
| style="padding: 0; margin: 0; border: 0; width: 2px" | | | style="padding: 0; margin: 0; border: 0; width: 2px" | | ||
| style="padding: auto; margin: 0;" class="thumbimage" | [[Datei:{{{4}}}|{{{5}}}px|{{#if: {{{7|}}}|{{{7|}}}|{{{6|}}}}}|{{{9 | | style="padding: auto; margin: 0;" class="thumbimage" | [[Datei:{{{4}}}|{{{5}}}px|{{#if: {{{7|}}}|{{{7|}}}|{{{6|}}}}}{{#if:{{{9|}}}|{{!}}alt={{{9}}}}}]] <!-- image 2 --> | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
{{#if: {{{7|}}} | <!-- two captions if the seventh param (caption for title two) is specified --> | {{#if: {{{7|}}} | <!-- two captions if the seventh param (caption for title two) is specified --> |
Aktuelle Version vom 7. März 2018, 15:04 Uhr
Dokumentation[Bearbeiten]
Benutzung
Diese Vorlage erstellt eine Box mit zwei nebeneinander stehenden Bildern. Sie erwartet folgende Parameter:
{{Doppeltes Bild|links/rechts/zentriert|Linkes Bild|Linke Bildgröße|Rechtes Bild|Rechte Bildgröße|Linke Bildunterschrift|Rechte Bildunterschrift|Linker Alternativtext|Rechter Alternativtext}}
Alternativtexte können weggelassen werden.
Beispiele
Linksbündig, mit Bildunterschrift unter jedem Bild, Vorlagen-Text:
{{Doppeltes Bild|links|Yellow card.svg|60|Red card.svg|60|Gelbe Karte|Rote Karte|lili|rere}}
sieht so aus:
Rechtsbündig, mit einer gemeinsamen Bildunterschrift (zweiter Bildunterschrift-Parameter = Leerstelle), Vorlagen-Text:
{{Doppeltes Bild|rechts|Yellow card.svg|80|Red card.svg|80|Spieler werden mit … gewiesen.||lili|rere}}
sieht so aus:
Siehe auch
Bei technischen Fragen zu dieser Vorlage kannst du dich an die Vorlagenwerkstatt wenden. Inhaltliche Fragen und Vorschläge gehören zunächst auf die Diskussionsseite. |
|