FANDOM


(fullwidth parentheses)
(Infobox updated using the portable infobox migration tool)
 
Line 1: Line 1:
{{ #if: {{{2<includeonly>|</includeonly>}}}
+
{{#invoke:Ruby|ruby}}<noinclude>
| <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]]
 
}}{{ #if: {{{1<includeonly>|</includeonly>}}} || [[Category:Pages with an unnecessary ((Ruby)) transclusion]]
 
}}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:((Ruby)) transclusions with too many parameters]] }}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:18, April 26, 2019

[edit] [purge] Template-info.svg Template documentation

{{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 Edit

{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ

Results in (きょく) (しん) (おう) ロキ

Non-Japanese text must specify the language using an IETF language tag (commonly-used ones are "en" for English, "ko" for Korean, and "zh" for Chinese) via the "lang" parameter:
{{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌

Results in BF (블랙페더) -탱구바람 히렌 (compare with how it looks without the "lang" parameter: BF (블랙페더) -탱구바람 히렌)

When used in the name or lore parameters in the card table templates, this template may create output that results in a visibly broken page layout. In such cases, {{Hide Factbox}} should be added to the top of the card page; this will hide the SMW factbox and add the page to a tracking category.

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 Edit

*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.