Template:Transform/doc

From Thorium Mod Wiki
Jump to navigation Jump to search

This template uses css transform to either flip horizontally, mirror vertically, rotate, or scale. 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.

Usage

flip = y / yes

Flips element horizontally.

  • {{transform|[[File:Diverman.png]]|flip=y}}
    Diverman.png
mirror = y / yes

Mirrors element vertically.

  • {{transform|[[File:Cinder String.png]]|mirror=y}}
    Cinder String.png
rotation = #

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

  • {{transform|{{item|mode=image|Blacksmith}}|rotation=90}} →    
    Blacksmith.png
scale = #

Scales the image. 1=full size, .5=50%

  • {{transform|{{item|mode=image|Confused Zombie}}|scale=.75}}
    Confused Zombie.png