Vorlage:Bildteil/doc

Zur Navigation springen Zur Suche springen
Bearbeiten · Raw · Versionen · Cache leeren · Messages · Seiteninformation · Vorlage bearbeiten · Seiteninformation Vorlage
Diese Seite ist die Dokumentations-Unterseite der Vorlage Bildteil

Die Vorlage {{Bildteil}} erzeugt einen Bildausschnitt, der in horizontaler und vertikaler Richtung wählbar ist.

Vorlagen zur Darstellung von Bildern: Bildteil, DivImg, Superpose, SuperXpose

Parameter

x
NameBeschreibungStandardStatus
1BildnameGitter.pngoptional
positionCSS position Propertyrelativeoptional
boxbreiteBreite des Ausschnittes CSS width Property100%optional
heightHöhe des Ausschnittes CSS height Property200pxoptional
hshifthorizontale Verschiebung CSS left Property0optional
vshiftvertikale Positionierung CSS top Property0optional
addstylezusätzliche Formatierung lt. CSS Referenceleeroptional
bildbreiteBildbreite lt. MediaWiki-Syntaxautooptional
overflowSichtbarkeit in vertikaler Richtung CSS overflow Propertyscrolloptional
borderRahmen CSS border Property0 solid greenoptional
bildheightBildhöhe{{{height|500px}}}optional

Kopiervorlagen

{{Bildteil|1=|position=|boxbreite=|height=|hshift=|vshift=|addstyle=|bildbreite=|overflow=|border=|bildheight=}}
{{Bildteil|1=|position=|boxbreite=|height=|hshift=|vshift=|addstyle=|bildbreite=|overflow=|border=|bildheight=}}
{{Bildteil
|1=
|position=
|boxbreite=
|height=
|hshift=
|vshift=
|addstyle=
|bildbreite=
|overflow=
|border=
|bildheight=}}
{{Bildteil
|1=
|position=
|boxbreite=
|height=
|hshift=
|vshift=
|addstyle=
|bildbreite=
|overflow=
|border=
|bildheight=}}

Anwendung

{{Bildteil|hshift=100px|height=200px|bildbreite=250px|overflow=hidden|1=Sie liebt mich.png}}
ergibt angewendet:

Code

<includeonly>

<onlyinclude><div style="position: {{{position|relative}}}; width: {{{boxbreite|auto}}}; height: {{{height|500px}}}; border: {{{border|0 dashed green}}}; overflow: hidden;"><div style="height: {{{bildheight|{{{height|500px}}}}}}; position: absolute; left: -{{{hshift|0}}}; top: {{{vshift|0}}}; overflow-y: {{{overflow|scroll}}}; {{{addstyle|}}}">[[File:{{{1|{{PAGENAME}}.png}}}|{{{bildbreite|auto}}}|link={{{link|File:{{{1|Gitter.png}}}}}}]]</div></div></onlyinclude>

</includeonly>{{Dokumentation}}