Template:Vertical text: Difference between revisions
Template page
More actions
Created page with "<templatestyles src="Template:Vertical text/styles.css" /><span class="ts-vertical-text" style="{{{style|}}}">{{{1|<noinclude>This Is Vertical Text.</noinclude>}}}</span><noinclude>{{doc}}</noinclude>" |
(No difference)
|
Latest revision as of 07:26, 23 February 2025
This Is Vertical Text.
This template uses TemplateStyles: |
Usage
{{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
Markup | Output |
---|---|
{{Vertical text|Asia}}
|
Asia |
{{Vertical text|style=font-size:90%;|Asia}}
|
Asia |
{{Vertical text|style=font-size:70%;color:green;|Asia}}
|
Asia |