Vorlage:Transform

Aus Terraria Wiki
Zur Navigation springen Zur Suche springen
Template-info.svg Dokumentation Die folgende Dokumentation stammt von der Seite Vorlage:Transform/Dokumentation. (bearbeiten | Versionsgeschichte)
Siehe auch die englische Vorlagenseite: Template:Transform. Sie enthält möglicherweise umfassendere oder aktuellere Informationen.
Important.svg
Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

This template is used to transform content using CSS. It supports horizontally flipping, vertically mirroring, and rotating the content, in any order. The content can be an image, template, text, or any other wikitext, although the template is mainly intended to transform images, or templates that display images alone.

The transformation happens at the center of the whole object and its effective dimensions will retain the original values of the object as if untransformed, so the position and padding may need to be adjusted to avoid unwanted overlapping.

Note that this template does not support Internet Explorer 8 or even older browsers, as that requires cumbersome calculating of matrices.

Verwendung

{{ transform | <content> | flip = y/yes | mirror = y/yes | rotation = <degrees> | scale = <factor> | display = <CSS display property> | style = <additional custom styling> }}

First unnamed parameter

Element to be transformed.

flip

Flips element horizontally.

mirror

Mirrors element vertically.

rotation

Rotation in degrees (clockwise). For best results, use only 90, 180, and 270 degree rotations.

scale

Scales the image. 1 is normal size, 0.5 half size, etc.

display

CSS display property, defaults to inline-block.

style

Additional custom styling if required, applied before the transformations.

Beispiele

Code Result
{{transform|[[File:Megashark.png]]|mirror=y}}
Megashark.png
{{transform|{{item|mode=image|Guide}}|rotation=90}}
Fremdenführer
{{transform|{{important}}|flip=y}}
{{transform|{{3DS version}}|mirror=y}}
{{transform|[[Tree]]|rotation=90}}
{{transform|[[File:Dryad.png]]|flip=y}}
Dryad.png
{{transform|[[File:Dryad.png]]|flip=y|mirror=y}}
Dryad.png
{{transform|[[File:Dryad.png]]|flip=y|mirror=y|rotation=30}}
Dryad.png
{{transform|[[File:Dryad.png]]|flip=y|rotation=30|mirror=y}}
Dryad.png

{{transform|{{item|mode=image|Guide}}|scale=0.5}}

{{transform|{{item|mode=image|Guide}}|scale=1}}

{{transform|{{item|mode=image|Guide}}|scale=1.5}}

Fremdenführer
Fremdenführer
Fremdenführer