Template:Transform-rotate

From Wikimedia Commons, the free media repository
Revision as of 20:42, 17 December 2014 by Edokter (talk | contribs) (redundant)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Transform-rotate/doc.

Rotate any HTML element. Template sets the style of the HTML <span> or <div> tag in such a way that the image or other content of the section is rotated. It uses CSS3 Transforms, see here for support by different browsers.

Usage

{{Transform-rotate |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1angleRotation angle measured in degrees clockwise (°↻) from the up-pointing vector.emptyrequired
displaydisplayby default rotation is accompanied by display:inline-block, as it rotates around center. Use this parameter to change this default.inline-blockoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

See also

Localization

This template is not intended to be localized.

Examples

<span style="{{Transform-rotate|315}}">[[File:North Pointer.svg|20px|link=|alt=]]</span> gives ""

<span style="{{Transform-rotate|30}}">[[File:Albert Einstein Head.jpg|100px]]</span> gives
""

<div style="{{Transform-rotate|45}}">[[File:Commons-logo.svg|90px|thumb|hello]]</div> gives
"
hello
"