Difference between revisions of "Template:Ruby"

From Moegirlpedia
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
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>
+
<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>
<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
[[Category:StyleTemplate]]
+
[[Category:Formatting templates]]
[[Category:LanguageTemplate]]
+
[[Category:Language templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:59, 2 February 2021

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

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}}Basetop

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

  • Parameterlarge=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: Basetop

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