Template:Vertical text/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Vertical text. It may contain usage information, categories and other content that is not part of the original template page. |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage
[edit source]{{Vertical text|text}} where text (as unnamed parameter 1) is the string to be displayed vertically.
An optional named parameter style may be used to specify additional CSS style attributes (e.g. font-size, color, etc).
Note: These style attributes should be terminated with a semicolon and not enclosed in quotes (see examples below).
If you want to display vertical text in a link, you need to write it as {{Vertical text|[[Link|Text]]}}, not as [[Link|{{Vertical text|Text}}]]. This is a technical restriction (T200704) of TemplateStyles extension.
Examples
[edit source]| Markup | Output |
|---|---|
{{Vertical text|Asia}}
|
Asia |
{{Vertical text|style=font-size:90%;|Asia}}
|
Asia |
{{Vertical text|style=font-size:70%;color:green;|Asia}}
|
Asia |
See also
[edit source]