Difference between revisions of "Help:Ruby characters"
(→Adding ruby text: reword first sentence to read better) |
(→Display: "parenthesis" is singular, "parentheses" is plural) |
||
Line 4: | Line 4: | ||
==Display== | ==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 | + | 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 parentheses. |
{| style="border-collapse: collapse;" border="1" cellpadding="5" | {| style="border-collapse: collapse;" border="1" cellpadding="5" |
Revision as of 23:50, 10 May 2011
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 parentheses.
Supported | Unsupported | Test | ||||
---|---|---|---|---|---|---|
|
|
|
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
{{Ruby}} is the preferred method to add ruby text to pages.
For example, {{Ruby|帝|てい}}
produces {{Ruby|Bottom text|Top text}}
produces
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