Template:Vlr/doc
Appearance
This is a documentation subpage for Template:Vlr. It contains usage information, categories and other content that is not part of the original template page. |
This template uses block elements, e.g. See H:DIVSPAN for details. |
Used to properly display vertical left-to-right paragraphs, using writing-mode: vertical-lr
.
Usage
[edit]- Parameters
- 1: content to be displayed vertically left-to-right
- style (optional): CSS styles
- center (optional): center the text (horizontally, within the surrounding horizontal LTR context)
- title (optional): functionally equivalent to horizontal LTR
Example
[edit]{{vlr|Some content to<br/>be displayed}}
Some content to
be displayed
be displayed
{{vlr|關關雎鳩,<br>在河之洲。}}
關關雎鳩,
在河之洲。
在河之洲。
{{vlr|center=1|關關雎鳩,<br>在河之洲。}}
關關雎鳩,
在河之洲。
在河之洲。
{{vlr|center=1|title=1|光緒元年鐫}}
光緒元年鐫
Note
[edit]Does not work well with {{center}}; center must be additionally specified.
{{c| {{vlr|title=1|關關雎鳩}} Very long text. Lorem ipsum dolor sit amet Shorter text. {{vlr|關關雎鳩}} }}
關關雎鳩
Very long text. Lorem ipsum dolor sit amet
Shorter text.
關關雎鳩
{{c| {{vlr|center=1|title=1|關關雎鳩}} Very long text. Lorem ipsum dolor sit amet Shorter text. {{vlr|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)
- {{vrl}} - for "right-to-left" equivalent