Template:Writing-mode
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template is a shortcut for adding writing mode property using CSS. It generates the CSS for various browsers.
Usage
Insert this template within a style tag of any block-style element:
{{writing-mode | [directionality]}}
The following value making the text vertically, but the direction of columns is different:
- v, v1, tbrl: apply right-to-left direction to colums
- v2, tblr: apply left-to-right direction to colums
The h value making the text horizontally, maybe it also produce "Tate-chū-yoko" effect within vertical text:
The following value making the text just rotate to 90° in different direction:
- s1: clockwise
- s2: counter-clockwise
Example
<div style="{{writing-mode|v1}}">Lorem ipsum...</div>will produce:
<div style="{{writing-mode|v2}}">Lorem ipsum...</div>will produce: