Template:Annotate partition/sandbox
Appearance
| This is the template sandbox page for Template:Annotate partition (diff). See also the companion subpage for test cases. |
| This template uses TemplateStyles: |
This template is used to insert two-rows-text into a line. This might be useful for some East-Asia language practice.
Usage
[edit]{{Annotate partition | First-row-text. | Second-row-text. }}
Text will show like this. First-row-text. Second-row-text. And continue in one line.
But please note that the copy-text would become like this:
Text will show like this. First-row-text. Second-row-text. And continue in one line.
For partially superscripted or subscripted text, {{gap}} may be used:
{{annotate partition|First row.|{{gap}}}} This. {{annotate partition|{{gap}}|Second.}}
Shows like this. First row. This. Second. And continue in one line.
Three or more rows can be done with {{larger}}:
{{annotate partition|{{larger|{{annotate partition|First row.|{{gap|3em}}Second.}}}}|Third row.}}
Shows like this. First row.Second.Third row. Continues.
- Parameters
There are also some useful parameters:
- size: font-size, default
0.8em - align: text-align, default
left - valign: vertical-align, default
middle - weight: font-weight, default
inherit
- Example
Example
{{lang block|ja|唯本年{{Annotate partition|size = 2em|align = center|valign = top|weight = bold|昭和|十年}}一月より六月至る迄、月にー囘、ー時間、併せて六囘六時間。}}
唯本年昭和十年一月より六月至る迄、月にー囘、ー時間、併せて六囘六時間。
See also
[edit]- {{Ruby}} for ruby characters. Another similar annotations form and most commonly used as pronunciation guides for characters.
- {{Over}} for fractions.
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Annotate partition
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Content | required |
| 2 | 2 | no description | Content | required |
| size | size | no description | Line | optional |
| weight | weight | no description | Line | optional |
| text-align | text-align align | no description | Line | optional |
| vertical-align | vertical-align valign | no description | Line | optional |