Template:Ruby

From MediaWiki
Revision as of 03:59, 29 March 2022 by Saix (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Description

[edit]

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

[edit]

Parameters

[edit]

Required

[edit]

This template requires two unnamed parameters:

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

Optional

[edit]
  • css or style - The inline css styling to apply.
  • large - If provided, the text is displayed in a larger font.

Code

[edit]
{{ruby|'''STARS'''|スターズ}}

Examples

[edit]

STARS (スターズ)

Technical notes

[edit]

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