قالب:Ruby
{{{1}}}
| هذا القالب يستخدم أنماط القوالب: |
Usage
Ruby characters (ルビ, Rubi) 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.
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=yesenlarges the characters by 250% for use in examples
Examples:
| Markup | Renders as |
|---|---|
{{Ruby|全|すべ}}て
|
全て |
{{Ruby|媽|mā}}
|
媽 |
{{Ruby|large=yes|媽|mā}}
|
媽 |
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
If you see , then your browser supports Ruby.
If you see Base (top), then your browser does not support Ruby.
See also
- {{ruby line}} for easier annotation of multiple series of characters
- {{ruby-zh-p}} for Hanyu Pinyin
- {{ruby-zh-b}} for Bopomofo
- {{ruby-ja}} for Japanese
- {{Linked Ruby}} for easier wikilinks to Ruby annotations
- {{overset}} for oversetting characters for math and similar uses
TemplateData
See the monthly error report for this template.
TemplateData for Ruby
Shows a Chinese, Kanji or other phrase with Ruby text above it
| وسيط | وصف | نوع | حالة | |
|---|---|---|---|---|
| Base | 1 | Text in Kana or Chinese characters to be annotated
| سطر | مطلوب |
| Annotation | 2 | Hiragana, romanization or other transcription; shown above the Base text
| سطر | مطلوب |
| Large? | large | If 'yes', renders text large
| نص | اختياري |
| CSS styling | style css | دون وصف | نص | اختياري |
| The above documentation is transcluded from قالب:Ruby/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |