Vorlage:ImageViewer: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen derselben Benutzerin werden nicht angezeigt)
Zeile 12: Zeile 12:
data-left="{{{left|Left}}}"  
data-left="{{{left|Left}}}"  
data-right="{{{right|Right}}}"  
data-right="{{{right|Right}}}"  
data-both="{{{both|Both}}}"></div></includeonly>
data-both="{{{both|Both}}}"
data-left-tooltip="{{{left-tooltip|}}}"
data-right-tooltip="{{{right-tooltip|}}}"
data-both-tooltip="{{{both-tooltip|}}}"
data-left-color="{{{left-color|}}}"
data-left-border-color="{{{left-border-color|}}}"
data-right-color="{{{right-color|}}}"
data-right-border-color="{{{right-border-color|}}}"
data-both-color="{{{both-color|}}}"
data-both-border-color="{{{both-border-color|}}}"
data-left-relative-pos="{{{left-relative-pos|0}}}"
data-right-relative-pos="{{{right-relative-pos|0}}}"
data-both-relative-pos="{{{both-relative-pos|50}}}"></div></includeonly>
<noinclude>
<noinclude>
== Image Viewer Widget ==
== Image Viewer Widget ==
Zeile 28: Zeile 40:
|right=Righto
|right=Righto
|both=Bother
|both=Bother
|left-tooltip=Drag to reveal first image
|right-tooltip=Drag to reveal second image
|both-tooltip=Drag both buttons simultaneously
|left-color=#FF0000
|left-border-color=white
|right-color=#0000FF
|right-border-color=black
|both-color=#00FF00
|both-border-color=yellow
|left-relative-pos=20
|right-relative-pos=20
|both-relative-pos=50
}}
}}
</pre>
</pre>
Zeile 40: Zeile 64:
* '''right''' - Right button text (optional, default: "Right")
* '''right''' - Right button text (optional, default: "Right")
* '''both''' - Both button text (optional, default: "Both")
* '''both''' - Both button text (optional, default: "Both")
* '''left-tooltip''' - Tooltip for left button (optional)
* '''right-tooltip''' - Tooltip for right button (optional)
* '''both-tooltip''' - Tooltip for both button (optional)
* '''left-color''' - Left button text color (optional, default: black)
* '''left-border-color''' - Left button border color (optional, default: white)
* '''right-color''' - Right button text color (optional, default: white)
* '''right-border-color''' - Right button border color (optional, default: black)
* '''both-color''' - Both button text color (optional, default: gray)
* '''both-border-color''' - Both button border color (optional, default: white)
* '''left-relative-pos''' - Initial left button position 0-100 (optional, default: 0)
* '''right-relative-pos''' - Initial right button position 0-100 (optional, default: 0)
* '''both-relative-pos''' - Initial both button position 0-100 (optional, default: 50)


=== Notes ===
=== Notes ===
Zeile 46: Zeile 82:
* Images should have the same aspect ratio for best results
* Images should have the same aspect ratio for best results
* The widget is responsive and will scale to fit its container
* The widget is responsive and will scale to fit its container
* Initial positions must satisfy: left-relative-pos + right-relative-pos <= 100
* Both button position only applies when left + right < 100


[[Category:Templates]]
</noinclude>
</noinclude>