Help:Ruby characters

From Yugipedia
Revision as of 06:09, 6 May 2011 by Dinoguy1000 (talk | contribs) (Adding ruby text: {{Ruby}} is preferred to <ruby/> now)
Jump to: navigation, search

Ruby characters are small reading aids that are placed on top of some characters.

On the Yu-Gi-Oh! wiki, this is used to add furigana characters on top of some Japanese characters. This is done using a set of tags, known as "ruby".

Display

When rendered correctly, the furigana should appear on top of the kanji. If a browser does not support ruby tags, the furigana will appear after the kanji in a set of parenthesis.

Supported Unsupported
てい
帝(てい)

Supported browsers

Some browsers such as Internet Explorer and Google Chrome render this correctly. Other browsers may just see a set of brackets with characters. Firefox does not have out-of-the-box support for XHTML Ruby, but the XHTML Ruby support add-on can be downloaded and works on all Firefox versions from 2.0 to 3.7a1pre. Another add-on that works on Firefox(version 3.6 to 4.0.*) is HTML Ruby.

Adding ruby text

It is preferred that the template {{Ruby}} is used to add ruby text to pages.

For example, {{Ruby|帝|てい}} produces てい. More generally, {{Ruby|Bottom text|Top text}} produces Bottom textTop text.

Rarely, more control may be required over the text than {{Ruby}} can provide; in these cases, the following syntax is used: <ruby><rb>Bottom text</rb><rp>(</rp><rt>Top text</rt><rp>)</rp></ruby> (in general, though, hardcoding the ruby text in this way is deprecated and usually should be replaced with the template).

For example, <ruby><rb>帝</rb><rp>(</rp><rt>てい</rt><rp>)</rp></ruby> produces (てい).