• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:MirrorV

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here


Template documentation[view] [edit] [history] [purge]

A shorthanded CSS code for vertically mirroring elements inside style attribute. Use it inside the style="" attribute of HTML elements like other CSS properties.

  • Named Parameter display= allows to change the CSS display property. It defaults to display: inline-block;

When using this template to create the mirrored effect, editors should consider carefully about the accessibility.

Note: 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

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 display= parameter to further control positioning.

Syntax Result
*Some mirrored characters:<br /><span style="{{mirrorV}}">A</span> B <span style="{{mirrorV}}">C</span> D
*Works with numbers, too:<br /><span style="{{mirrorV}}">0</span> 1 <span style="{{mirrorV}}">2</span> 3 <span style="{{mirrorV}}">4</span> 5 <span style="{{mirrorV}}">6</span> 7 <span style="{{mirrorV}}">8</span> 9
*Or with arbitrary text:<br /><span style="{{mirrorV}}">This text<br />is vertically<br />mirrored.</span><br />&nbsp;<br />This text is not.
  • Some mirrored characters:
    A B C D
  • Works with numbers, too:
    0 1 2 3 4 5 6 7 8 9
  • Or with arbitrary text:
    This text
    is vertically
    mirrored.

     
    This text is not.
This is a placeholder image:
<div style="position:relative; left:100px; {{mirrorV|display=block}}">[[file:placeholder.png|200px]]</div>
It is mirrored.
This is a placeholder image:
Placeholder.png

It is mirrored.

See also:

  • {{Transform-rotate}}
  • {{mirrorH}}
The above documentation is transcluded from Template:MirrorV/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:MirrorV&oldid=23917"
Categories:
  • Cross-browser compatibility templates
  • Graphics templates
Last edited on 15 December 2019, at 16:24

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 15 December 2019, at 16:24.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop