Template:Vertical

From RepRap
Revision as of 16:05, 10 June 2013 by Traumflug (talk | contribs) (Example with table)
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
vertical
horizontal
Text X not vertical

Example with plain text

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

results in:

Plain text with partially

vertical
text.