• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Ruby line

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template may be substituted.
This template uses Lua:
  • Module:Params (sandbox)
  • Module:String (sandbox)

This template is similar to {{Ruby}}, with the difference that it allows to annotate series of characters easily.

See also: Ruby character.

Usage

edit

Use the colon (:) to separate the text from its annotation (use : if you want the colon not to be treated as a metacharacter). To change general features (e.g. font size, color, etc.) wrap the template into a custom container.

By default annotated members will be separated by a space; use the |sep=... parameter to specify alternative separators (use |sep= to remove the separator).

Manuscript:

<span style="font-size: 2em;">Lorem ipsum {{Ruby line
	| 鬼: き
	| 門: もん
	| の
	| 方: ほう
	| 角: がく
	| を
	| 凝: ぎょう
	| 視: し
	| する
}}</span>

Effect:

Lorem ipsum 鬼 (き) 門 (もん) の 方 (ほう) 角 (がく) を 凝 (ぎょう) 視 (し) する

Manuscript:

<span style="font-size: 2em;">Lorem ipsum {{Ruby line | sep =
	| 鬼: き
	| 門: もん
	| の
	| 方: ほう
	| 角: がく
	| を
	| 凝: ぎょう
	| 視: し
	| する
}}</span>

Effect:

Lorem ipsum 鬼 (き)門 (もん)の方 (ほう)角 (がく)を凝 (ぎょう)視 (し)する

Manuscript:

<span style="font-size: 2em;">Lorem ipsum {{Ruby line
	| Shall: ʃal
	| I: əɪ
	| compare: kəmpɛː˞
	| thee: ðɪ
	| to: tə̹
	| a: ə
	| summer's: sɤmə˞z
	| day?: dɛː
}}</span>

Effect:

Lorem ipsum Shall (ʃal) I (əɪ) compare (kəmpɛː˞) thee (ðɪ) to (tə̹) a (ə) summer's (sɤmə˞z) day? (dɛː)

See also

edit
  • {{Ruby}}
  • HTML Standard § The ruby element
The above documentation is transcluded from Template:Ruby line/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Ruby_line&oldid=1287067183"
Last edited on 23 April 2025, at 19:49

Languages

    • Latina
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 23 April 2025, at 19:49 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop