Template:Rubi: Difference between revisions
ReinDevildom (talk | contribs) Created page with "<includeonly>{{#invoke:Rubi|main}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>" |
ReinDevildom (talk | contribs) m ReinDevildom moved page T:Rubi to Template:Rubi without leaving a redirect |
||
(No difference)
| |||
Latest revision as of 16:59, 29 August 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template is used to input ruby text, which helps form furigana (振仮名) in Japanese and Pinyin reading guide 米哈游 in Chinese.
More information can be found here.
Syntax
Pairs of text will form a "base" and "explanation" set. If there is an odd pair left out, it will be displayed as "base" text (without an "explanation" tag).
There are three named Parameters:
- rpStart — the beginning denotation of the "explanation" tag (defaults to an open parenthesis)
- rpEnd — the ending denotation of the "explanation" tag (defaults to an close parenthesis)
- large — setting this value to any non-blank value will make the "base" text 250% bigger (fixed value), and the "explanation" text smaller (fixed value)
- center — setting this value to any non-blank value will make the center the ruby text instead of space it out along the base text.
Syntax
{{Rubi|日本語|にほんご}} yields:
日本語
{{Rubi|米哈游|mǐ hā yóu}} yields:
米哈游
{{Rubi|HT|HyperText|M|Markup|L|Language|large = 1}} yields:
HTML
{{Rubi|Very long base text that goes on and on|Short ruby|center = 1}} yields:
Very long base text that goes on and on
This template is used to input ruby text, which helps form furigana in Japanese and Pinyin reading guide in Chinese. Please see the documentation page for a full explanation of the parameters.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Base Text 1 | 1 | no description | String | required |
| Explanation Text 1 | 2 | no description | String | suggested |
| Base Text 2 | 3 | no description | String | optional |
| Explanation Text 1 | 4 | no description | String | optional |
| rpStart | rpStart | the beginning denotation of the "explanation" tag (defaults to an open parenthesis)
| String | optional |
| rpEnd | rpEnd | the ending denotation of the "explanation" tag (defaults to an close parenthesis)
| String | optional |
| large | large | setting this value to any non-blank value will make the "base" text 250% bigger (fixed value), and the "explanation" text smaller (fixed value) | Boolean | optional |
| center | center | setting this value to any non-blank value will make the center the ruby text instead of space it out along the base text | Boolean | optional |