Vorlage:Annotiertes Bild: Unterschied zwischen den Versionen

Aus Panthor
(Die Seite wurde neu angelegt: „<onlyinclude><includeonly>{{#ifeq:{{{float}}}|center|<div class="center">}}<div class="noresize thumb {{#switch:{{{float}}} |left= tleft |center | none= tnone…“)
 
Keine Bearbeitungszusammenfassung
 
(13 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><includeonly>{{#ifeq:{{{float}}}|center|<div class="center">}}<div class="noresize thumb {{#switch:{{{float}}}
<includeonly><div style="position:relative;z-index:5;">{{{1}}}<div style="z-index:10;position:absolute;top:{{{3|21}}}px;left:{{{4|57}}}px;font-family:Calibri;font-size:100%;font-weight:bold;line-height:0.9;letter-spacing:-1px;">{{{2}}}</div></div></includeonly><noinclude>
|left= tleft
== Beispiel ==
|center | none= tnone
{{Annotiertes Bild|[[Datei:Ministerium-fuer-Blanco Logo.png|200px]]|die Auslöschung<br>und Kontrolle<br>von Aufständigen}}
|right
<code><nowiki>{{Annotiertes Bild|[[Datei:Ministerium-fuer-Blanco Logo.png|200px]]|die Auslöschung<br>und Kontrolle<br>von Aufständigen}}</nowiki></code>
|#default= tright
== Dokumentation ==
}}" style="{{{outer-css|}}};">
- Parameter 1: Bild mit Datei-Namespace <br>
<div {{#if: {{#invoke:TemplUtl|faculty|{{{noframe|}}}|0}}| |class="thumbinner"}} style="overflow:hidden;width:{{#expr:{{{width|{{{image-width|300}}}}}}+2}}px;">
- Parameter 2: Text <br>
<div class="thumbimage" style="{{#if:{{{height|}}}|height:{{#expr:{{{height}}}+2}}px;}} overflow:hidden; position:relative; {{{inner-css|}}};">
- Parameter 3: Text-Abstand Top (in px) <br>
<div style="{{{image-css|}}};left:{{{image-left|0}}}px; top:{{{image-top|0}}}px; width:{{{image-width|300}}}px; position:absolute; background-color:{{{image-bg-color|white}}};"> {{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Datei:{{{image}}}|page={{{page}}}|{{{image-width|300}}}px|alt={{{alt|alternative Beschreibung}}}|{{{caption|Bildlegende}}}]]}}</div>
- Parameter 4: Text-Abstand Left (in px) <br>
<div style="text-align:{{{annot-text-align|left}}}; background-color:{{{annot-background-color|transparent}}};  {{#if:{{{annot-font-family|}}}|font-family:{{{annot-font-family}}};|}} {{#if:{{{annot-font-size|}}}|font-size:{{{annot-font-size}}}px;|}} {{#if:{{{annot-font-weight|}}}|font-weight:{{{annot-font-weight}}};|}} {{#if:{{{annot-font-style|}}}|font-style:{{{annot-font-style}}};|}} {{#if:{{{annot-color|}}}|color:{{{annot-color}}};|}} {{#if:{{{annot-line-height|}}}|line-height:{{{annot-line-height}}};|{{#if:{{{annot-font-size|}}}|line-height:{{#expr:{{{annot-font-size|}}}+2}}px;  |line-height:110%;}}}}">
<code><nowiki>{{Annotiertes Bild|[[Datei:image.png]]|TEXT|TEXT-ABSTAND LINKS|TEXT-ABSTAND OBEN}}</nowiki></code>
<!--annotation|left|top-->
</noinclude>
{{{annotations|}}}
</div><div style="visibility:hidden">{{#if:{{{imagemap|}}}|{{{imagemap}}}|[[Datei:{{{image}}}|page={{{page}}}|{{{image-width|300}}}px|rahmenlos|alt={{{alt|}}}]]}}</div>
</div>{{#if:{{{caption|}}}|<div class="thumbcaption" style="width:{{{width|300}}}px;">{{{caption|}}}</div>|}}
</div></div>{{#ifeq:{{{float}}}|center|</div>}}</includeonly></onlyinclude>

Aktuelle Version vom 5. Mai 2020, 22:04 Uhr

Beispiel

Fehler beim Erstellen des Vorschaubildes: Datei fehlt
die Auslöschung
und Kontrolle
von Aufständigen

{{Annotiertes Bild|[[Datei:Ministerium-fuer-Blanco Logo.png|200px]]|die Auslöschung<br>und Kontrolle<br>von Aufständigen}}

Dokumentation

- Parameter 1: Bild mit Datei-Namespace
- Parameter 2: Text
- Parameter 3: Text-Abstand Top (in px)
- Parameter 4: Text-Abstand Left (in px)
{{Annotiertes Bild|[[Datei:image.png]]|TEXT|TEXT-ABSTAND LINKS|TEXT-ABSTAND OBEN}}