Template:Ruby

From MediaWiki
Revision as of 01:51, 29 March 2022 by Tigerpaw28 (talk | contribs) (Continuing documentation adjustments, possible functional fix)
Jump to navigationJump to search


Description

Used for properly rendering Japanese furiganakatakana or hiragana written above kanji or foreign text that is used to indicate the proper pronunciation in Japanese phonology.

Usage

Parameters

Required

This template requires two unnamed parameters:

  1. - The kanji or foreign text to display.
  2. - The katakana or hiragana to display above.

Optional

  • css or style - The inline css styling to apply to the whole template.
  • large - If provided, the text is displayed in a larger font.
  • rtc - Used for specifying multiple top texts via complex Ruby markup. This parameter should be formatted as a series of tags.
  • rtccss or rtcstyle -


Code

{{ruby|'''STARS'''|スターズ}}

Examples

STARS (スターズ, Starsstairsstares)

Technical notes

The code in this template has been borrowed from the template of the same name on Wikipedia. It uses XHTML Ruby complex formatting tags to display the text.