Template:ja-accent-standard/documentation

Documentation for Template:ja-accent-standard. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Usage edit

Usage: {{ja-accent-standard|accent=accent type number|mora1|mora2|mora3...}}

accent type number: the accented mora, counting from left. 0 if no accented mora, i.e. heiban (平板型). So if the second mora is accented, this is 2. Note that small "っ", and "ー" (as in カード) count as one mora, whereas other small "ゅ", "ょ" etc, do not. Instead they're part of the proceeding mora. E.g. "せっしょく" consists of 4 morae: せ|っ|しょ|く.

Examples edit

{{ja-accent-standard|accent=0|し|め|い}}

This gives: めい [0]

{{ja-accent-standard|accent=1|あ|う}}

This gives: [1]

{{ja-accent-standard|accent=3|こ|と|ば}}

This gives: [3]

{{ja-accent-standard|accent=2|に|ほ|ん}}

This gives: [2]

Limits edit

Currently only supports up to 10 morae and accent 0 to 4. Feel free to update template if necessary.

See also edit