Template:Ruby

From Ultrapedia

Revision as of 13:00, 8 May 2024 by Szczypak64 (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

Usage

Ruby characters are small, annotative glosses that can be placed above or to the right of a Chinese character when writing languages with logographic characters such as Chinese or Japanese to show the pronunciation. Typically called just ruby, such annotations are used as pronunciation guides for characters that are likely to be unfamiliar to the reader.

<kbd>{{|Ruby|Base|top}}</kbd> → Base (top)

Examples:

Haruki Natsukawa: {{Ruby|夏川|ナツカワ}} {{Ruby|遥輝|ハルキ}}夏川 (ナツカワ) 遥輝 (ハルキ)
Kengo Manaka: {{Ruby|真中|マナカ}} {{Ruby|剣悟|ケンゴ}}真中 (マナカ) 剣悟 (ケンゴ)

Browser support

If you see Base (top), then all is good! Your browser supports Ruby.

But if you see Base (top), then too bad, my friend, your browser does not support Ruby.

TemplateData

<templatedata> { "params": { "1": { "label": "Base", "description": "Text in Kana or Chinese characters to be annotated", "example": "真中剣悟", "type": "line", "required": true }, "2": { "label": "Annotation", "description": "Hiragana, romanization or other transcription; shown above the Base text", "example": "マナカ ケンゴ", "type": "line", "required": true }, "style": { "label": "CSS styling", "type": "string", "aliases": [ "css" ] } }, "description": "Shows a Chinese, Kanji or other phrase with Ruby text above it" } </templatedata>

Personal tools