Template:Vertical
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.