Difference between revisions of "Template:Ruby"
Dinoguy1000 (talk | contribs) (update tracking category names) |
Dinoguy1000 (talk | contribs) (track any (unlikely) cases where {{{1}}} is empty) |
||
Line 2: | Line 2: | ||
| <ruby class="rubytext ruby-{{{lang|ja}}}" lang="{{{lang|ja}}}"><rb>{{{1}}}</rb><rp>(</rp><rt>{{{2}}}</rt><rp>)</rp></ruby> | | <ruby class="rubytext ruby-{{{lang|ja}}}" lang="{{{lang|ja}}}"><rb>{{{1}}}</rb><rp>(</rp><rt>{{{2}}}</rt><rp>)</rp></ruby> | ||
| {{{1}}}[[Category:Pages with an unnecessary ((Ruby)) transclusion]] | | {{{1}}}[[Category:Pages with an unnecessary ((Ruby)) transclusion]] | ||
+ | }}{{ #if: {{{1<includeonly>|</includeonly>}}} || [[Category:Pages with an unnecessary ((Ruby)) transclusion]] | ||
}}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:((Ruby)) transclusions with too many parameters]] }}<noinclude> | }}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:((Ruby)) transclusions with too many parameters]] }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 07:17, 28 March 2016
{{Ruby}} is a markup template used to add Ruby annotations to Japanese, Korean, and Chinese text, without requiring verbose markup to be manually added to pages.
Usage
{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ
Results in
{{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌
Results in
Ruby markup is styled with CSS in MediaWiki:Common.css allowing it to appear properly in Mozilla Firefox, which doesn't natively support the markup.
See also
- {{Ruby/detect}}
- {{Ruby/split}}
- Template:Ruby-ja on Wikipedia
- Template:Ruby-zh-b on Wikipedia
- Template:Ruby-zh-p on Wikipedia