Difference between revisions of "Template:Ruby"
m (Changed to Category:Formatting templates & Category:Language templates) |
|||
Line 1: | Line 1: | ||
<includeonly><ruby {{#if:{{{class|}}}|class="{{{class|}}}"}} {{#if:{{{id|}}}|id="{{{id|}}}"}} {{#if:{{{style|{{{css|}}}}}}|style="{{{style|{{{css|}}}}}}"}}><rb {{#if:{{{rbclass|}}}|class="{{{rbclass|}}}"}} {{#if:{{{rbid|}}}|id="{{{rbid|}}}"}} {{#if:{{{rbsize|}}}|style="font-size:{{{rbsize|}}}"}}>{{#if:{{{3|}}}|{{lang|{{{3}}}|{{{1}}}}}|{{{1}}}}}</rb><rp>(</rp><rt {{#if:{{{rtclass|}}}|class="{{{rtclass|}}}"}} {{#if:{{{rtid|}}}|id="{{{rtid|}}}"}} style="font-size:{{{rtsize|0.75em}}}">{{#if:{{{4|}}}|{{lang|{{{4}}}|{{{2}}}}}|{{#if:{{{3|}}}|{{lang|{{{3}}}|{{{2}}}}}|{{{2}}}}}}}</rt><rp>)</rp></ruby></includeonly><noinclude> | <includeonly><ruby {{#if:{{{class|}}}|class="{{{class|}}}"}} {{#if:{{{id|}}}|id="{{{id|}}}"}} {{#if:{{{style|{{{css|}}}}}}|style="{{{style|{{{css|}}}}}}"}}><rb {{#if:{{{rbclass|}}}|class="{{{rbclass|}}}"}} {{#if:{{{rbid|}}}|id="{{{rbid|}}}"}} {{#if:{{{rbsize|}}}|style="font-size:{{{rbsize|}}}"}}>{{#if:{{{3|}}}|{{lang|{{{3}}}|{{{1}}}}}|{{{1}}}}}</rb><rp>(</rp><rt {{#if:{{{rtclass|}}}|class="{{{rtclass|}}}"}} {{#if:{{{rtid|}}}|id="{{{rtid|}}}"}} style="font-size:{{{rtsize|0.75em}}}">{{#if:{{{4|}}}|{{lang|{{{4}}}|{{{2}}}}}|{{#if:{{{3|}}}|{{lang|{{{3}}}|{{{2}}}}}|{{{2}}}}}}}</rt><rp>)</rp></ruby></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
− | [[Category: | + | [[Category:Formatting templates]] |
− | [[Category: | + | [[Category:Language templates]] |
</noinclude> | </noinclude> |
Latest revision as of 13:59, 2 February 2021
This page was copied from wikipedia.
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 or rubi, such annotations are used as pronunciation guides for characters that are likely to be unfamiliar to the reader.
{{Ruby|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).
- Parameter
large=yes
enlarges 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:
If you see" Base(top)", then your browser does not support Ruby.