Difference between revisions of "Template:Ruby/doc"

From Yugipedia
Jump to: navigation, search
(no longer true)
(rm Wikia link)
 
Line 21: Line 21:
 
* [[wikipedia:Template:Ruby-zh-b|Template:Ruby-zh-b]] on Wikipedia
 
* [[wikipedia:Template:Ruby-zh-b|Template:Ruby-zh-b]] on Wikipedia
 
* [[wikipedia:Template:Ruby-zh-p|Template:Ruby-zh-p]] on Wikipedia
 
* [[wikipedia:Template:Ruby-zh-p|Template:Ruby-zh-p]] on Wikipedia
* [[w:c:wlb:Template:Ruby|Template:Ruby]] on the Wikia Language Brigade Wiki
 
  
 
<includeonly>
 
<includeonly>

Latest revision as of 05:20, 4 August 2018

{{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블랙페더-탱구바람 히렌)

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]