v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Rotate"
Jump to navigation
Jump to search
(created) |
m (add missing slash) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | <!-- to add extra newlines when viewing the template --> | ||
− | |||
− | + | </noinclude><span style="position:relative;"><span style="position:absolute;transform:rotate({{{deg|-90}}}deg);-ms-transform:rotate({{{deg|-90}}}deg);-moz-transform: rotate({{{deg|-90}}}deg);-webkit-transform: rotate({{{deg|-90}}}deg);-o-transform: rotate({{{deg|-90}}}deg);transform-origin:0% 0%;-ms-transform-origin:0% 0%;-moz-transform-origin:0% 0%;-webkit-transform-origin:0% 0%;-o-transform-origin:0% 0%;{{{style|}}}">{{{1}}}</span></span><noinclude> | |
− | + | {{documentation}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude><span style="position:relative;"><span style="position:absolute;transform:rotate({{{deg|-90}}}deg);-ms-transform:rotate({{{deg|-90}}}deg);-moz-transform: rotate({{{deg|-90}}}deg);-webkit-transform: rotate({{{deg|-90}}}deg);-o-transform: rotate({{{deg|-90}}}deg);transform-origin:0% 0%;-ms-transform-origin:0% 0%;-moz-transform-origin:0% 0%;-webkit-transform-origin:0% 0%;-o-transform-origin:0% 0% | ||
− | <noinclude> | ||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 20:10, 13 February 2013
{{{1}}}
(view - edit - history - purge) Documentation
Rotate content (requires CSS3, not supported on old browsers)
Note: content will be rotated around upper-left corner; left-aligned text is recommended.
Usage
{{ rotate | [content] | deg = X | style = CSS_string }}
- where:
- [content] is the content to be rotated
- X is an optional clockwise rotation angle in degrees (default is -90 degrees)
- CSS_string is any optional CSS styling to be applied to the rotating container
Examples
{{rotate| text }}
text
That example demonstrates how rotated text can overlap content around it. Care should be taken to ensure enough empty space for the rotated text.
{{rotate|text}}
This example should not overlap, due to the extra newlines:
text
Rotating text may also cause the text to extend out of the standard wiki page layout; this should generally be avoided.
{{rotate | text | deg = 180 | style = font-size:25px; }}
text
Complex content may also be rotated:
<div style="height:250px;"> :::{{rotate | [[Image:jt_screwpump.png|thumb|A rotated [[screw pump]]]] | deg=27 }} </div>