Jump to content

Template:Ruby line/doc

From Calamity Wiki
Revision as of 06:52, 17 December 2025 by imported>Grufo (Undid revision 1325496113 by Gonnym (talk) Why should it not be substituted? I worked hard to produce a clean HTML when the template is substituted—If there are issues, please use the talk page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

See also: Ruby character.

Usage

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