Vorlage:Panorama: Unterschied zwischen den Versionen

Aus Kiel-Wiki
(Die Seite wurde neu angelegt: „<onlyinclude><includeonly>{{#if: {{IstZahl|{{{2|}}}}}|<div style="max-width:{{{4|100%}}}; margin-left:auto; margin-right:auto;"><div class="thumbinner centered…“)
 
(Vorlage aus der WP übernommen)
Zeile 1: Zeile 1:
<onlyinclude><includeonly>{{#if: {{IstZahl|{{{2|}}}}}|<div style="max-width:{{{4|100%}}}; margin-left:auto; margin-right:auto;"><div class="thumbinner centered panorama" style="max-width:{{#expr:{{{2}}} + 2}}px; width: 100%; width: inherit;"><div class="thumbimage" style="overflow-y:hidden; overflow-x:scroll; overflow:auto; width:100%; width:inherit;">[[Datei:{{{1}}}|{{{2}}}px|alt=]]</div>{{#if: {{{3|}}}|<div class="thumbcaption" style="text-align: {{{text-align|center}}};"><div class="magnify">[[Datei:magnify-clip.png|link=Datei:{{{1}}}|alt=|{{int:Thumbnail-more}}]]</div><div class="magnify" style="margin-right:3px">[[Datei:Lupe.png|12x12px|link=//toolserver.org/~dschwen/iip/wip.php?flash=no&f={{urlencode:{{{1}}}}}|alt=|Interaktiver Bildbetrachter]]</div>{{#ifeq:{{{text-align|center}}}|center|<div style="float:left; width:30px; height:12px;"></div>}}{{{3}}}</div>|<div style="display:none">[[Vorlage:Panorama/Wartung/Bildbeschreibung fehlt]]</div>}}</div></div>|<div class="error" style="text-align:center; border:3px solid #ff0000; max-width:100%">Datei:{{{1|}}}: Bitte eine Gesamtbreite '''ohne''' Einheit angeben.<span style="display: none">[[Vorlage:Panorama/Wartung/Breite mit Einheit]]</span></div>}}{{#if:{{{4|}}}|<span style="display: none">[[Vorlage:Panorama/Wartung/Para4]]</span>}}</includeonly></onlyinclude>
<onlyinclude><includeonly>{{#if: {{IstZahl|{{{2|}}}}}|<div class={{#switch:{{{float|}}}|left="float-left"|right="float-right"|#default=""}} style="max-width:{{{4|100%}}}; margin-left:auto; margin-right:auto;"><div class="thumbinner centered panorama" style="max-width:{{#expr:{{{2}}} + 2}}px; width: 100%; width: inherit;"><div class="thumbimage" style="overflow-y:hidden; overflow-x:scroll; overflow:auto; width:100%; width:inherit; {{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}">[[Datei:{{{1}}}|{{{2}}}px|alt={{{alt|}}}]]</div>{{#if: {{{3|}}}|<div class="thumbcaption" style="text-align: {{{text-align|center}}};"><div class="magnify">[[:Datei:{{{1}}}|{{int:Thumbnail-more}}]]</div><div style="float:right; margin:0 3px">[[Datei:Lupe.png|12x12px|link=//tools.wmflabs.org/zoomviewer/?flash=no&f={{urlencode:{{{1}}}}}|alt=|Interaktiver Bildbetrachter]]</div>{{#ifeq:{{{text-align|center}}}|center|<div style="float:left; width:30px; height:12px;"></div>}}{{{3}}}</div>|<div style="display:none">[[Vorlage:Panorama/Wartung/Bildbeschreibung fehlt]]</div>}}</div></div>|<div class="error" style="text-align:center; border:3px solid #ff0000; max-width:100%">Datei:{{{1|}}}: Bitte eine Gesamtbreite '''ohne''' Einheit angeben.<span style="display: none">[[Vorlage:Panorama/Wartung/Breite mit Einheit]]</span></div>}}{{#if:{{{4|}}}|<span style="display: none">[[Vorlage:Panorama/Wartung/Para4]]</span>}}</includeonly></onlyinclude>
{{Dokumentation}}
{{Dokumentation}}

Version vom 1. Januar 2017, 14:22 Uhr


Dokumentation [Bearbeiten]

Diese Vorlage erstellt für ein Bild einen Rahmen mit automatischem horizontalen Bildlauf. Der Bildlauf erscheint, sobald das Bild breiter als das Browserfenster ist. Die Vorlage eignet sich daher für breite Bilder wie Panoramen.

Die Verwendung ist ähnlich wie [[Datei: ... ]] bzw. [[Bild: ... ]]:

{{Panorama|Dateiname|Bildgesamtbreite|Beschreibung|Sichtbare Breite|dir=Direktion}}

Bei Fragen zu dieser Vorlage kannst du dich an die Vorlagenwerkstatt wenden.