Template:Vertical

From RepRap
Revision as of 16:02, 10 June 2013 by Traumflug (talk | contribs) (Created page with '<includeonly> <div style="width: {{{1}}}; margin-top: {{{2}}}; -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-tr…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template rotates text by -90 deg. This is, for example, useful for table headers, where the header is much wider than the actual contents.

Usage

{{ {{PAGENAME}} | width | height | text }}

Parameters

1
Width of the (visible or invisible) text box. To deal with different font size it's better to use em instead of px or mm.
2
Extra height of the (visible or invisible) text box. To deal with different font size it's better to use em instead of px or mm. Thich height is added to the height of the unrotated text box, so some experimenting might be neccessary.
3
Actual text to be rotated.

Example with table

{| class="wikitable"
! Text !! {{Vertical | 2em | 5em vertical }} !! horizontal
|-
| Text || X  || not vertical
|}

results in:

Text
{{{3}}}
! horizontal
Text X not vertical

Example with plain text

Plain Ttext with partially {{Vertical | 2em | 1em | vertical}} text.

results in:

Plain Ttext with partially

vertical
text.