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 uses css transform to either flip horizontally, mirror vertically, or rotate. It can be used on an image, template, text, and/or other elements. It is mainly intended to transform images, or templates that display images alone, however any text or other included elements will also display transformed.

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 you may adjust the position and padding to avoid unwanted overlapping. Use the style= parameter to specify the CSS style. The 'display' CSS property is specified separately via the display= parameter.

This template does not support IE8 or older browsers. IE8 requires cumbersome calculating of matrices. You may implement it into this template if you know how to translate the formula into Lua.

Verwendung

Unnamed Parameter 1

Element to be transformed, for example: [[File:Dryad.png]] or {{item|mode=image|Guide}}

flip = y / yes

Flips element horizontally.

mirror = y / yes

Mirrors element vertically.

rotation = #

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

Beispiele

  • {{transform|[[File:Dryad.png]]|flip=y}}
    Dryad.png
  • {{transform|[[File:Megashark.png]]|mirror=y}}
    Megashark.png
  • {{transform|{{item|mode=image|Guide}}|rotation=90}} →    
    Fremdenführer
  • {{transform|{{NPC}}|flip=y}}
    Nurse.png
    Dies ist ein Stadt-NPC. Ein Haus ist erforderlich, damit er erscheint.
  • {{transform|{{3DS version}}|mirror=y}}
  • {{transform|{{item|mode=text|Dryad}}|rotation=90}}
  • {{transform|[[File:Dryad.png]]|flip=y|mirror=y|rotation=30}} →  
    Dryad.png