Template:Vrl
Jump to navigation
Jump to search
This template uses block elements, e.g. See H:DIVSPAN for details. |
Used to properly display vertical right-to-left paragraphs, using writing-mode: vertical-rl
.
Usage
[edit]- Parameters
- 1: content to be displayed vertically right-to-left
- style (optional): CSS styles
- center (optional): center the text (horizontally, within the surrounding horizontal LTR context)
- title (optional): functionally equivalent to horizontal RTL (see Horizontal and vertical writing in East Asian scripts#Right-to-left horizontal writing)
Example
[edit]{{vrl|Some content to<br/>be displayed}}
Some content to
be displayed
be displayed
{{vrl|關關雎鳩,<br>在河之洲。}}
關關雎鳩,
在河之洲。
在河之洲。
{{vrl|center=1|關關雎鳩,<br>在河之洲。}}
關關雎鳩,
在河之洲。
在河之洲。
{{vrl|center=1|title=1|光緒元年鐫}}
光緒元年鐫
Note
[edit]Does not work well with {{center}}; center must be additionally specified.
{{c| {{vrl|title=1|關關雎鳩}} Very long text. Lorem ipsum dolor sit amet Shorter text. {{vrl|關關雎鳩}} }}
關關雎鳩
Very long text. Lorem ipsum dolor sit amet
Shorter text.
關關雎鳩
{{c| {{vrl|center=1|title=1|關關雎鳩}} Very long text. Lorem ipsum dolor sit amet Shorter text. {{vrl|center=1|關關雎鳩}} }}
關關雎鳩
Very long text. Lorem ipsum dolor sit amet
Shorter text.
關關雎鳩
See also
[edit]- {{vertical text}} - for vertical text where the characters are upright (like some older Chinese text)
- {{vlr}} - for "left-to-right" equivalent