Template:Ruby

{{{1}}} ({{{2}}})

Documentation icon Template documentation[view] [edit] [history] [purge]

Lua error in package.lua at line 80: module 'Module:Uses TemplateStyles/config' not found.

Usage

Lua error in Module:Unicode_data at line 293: attempt to index local 'data_module' (a boolean value). 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 or rubi, such annotations are used as pronunciation guides for characters that are likely to be unfamiliar to the reader.

{{Ruby|Base|top}}Base (top)

The first parameter is the base (the lower part) and the second is the Ruby text (the smaller part on top or in parentheses).

  • |large=yes enlarges the characters by 250% for use in examples

Examples:

Markup Renders asLua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.Lua error: expandTemplate: template "Markup/row" does not exist.

Browser support

The manner in which the Ruby characters are displayed is dependent upon the browser. For browser support, see Ruby annotation at Can I use.

For example: Base (top)

If you see Template:Overset, then your browser supports Ruby.

If you see Base (top), then your browser does not support Ruby.

See also



TemplateData

This is the TemplateData documentation for the template used by the new VisualEditor.

Ruby

<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 }, "large": { "label": "Large?", "description": "If 'yes', renders text large", "example": "yes", "type": "string" }, "style": { "label": "CSS styling", "type": "string" } }, "description": "Shows a Chinese, Kanji or other phrase with Ruby text above it" } </templatedata>