Modèle:Mirror

De Terraria Wiki
Aller à la navigation Aller à la recherche

Description

This template displays an image that is flipped horizontally. It usually takes a single parameter, which can be an image, template, text, and/or other elements. It is mainly intended to flip images, or templates that display images alone, however any text or other included elements will also display flipped.

The mirroring happens at the center of the whole object and its effective dimensions will retain the original values of the object as if unmirrored, 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.

Examples

  • Dryad.png
    {{mirror|[[File:Dryad.png]]}}
  • Megashark.png
    {{mirror|[[File:Megashark.png]]}}
  • Guide
    {{mirror|{{item|mode=image|Guide}}}}