Template:ja-kanji/documentation

In entries for kanji (Japanese characters), this template generates a headword, shows the grade of the kanji (see ), and shows a floating box with the category of terms that use the kanji. It uses the lua function in Module:ja to generate the headword and the grade link.

Usage
See Template:ja-kanjitab if you are looking for the table.

Use this template for single kanji, to show the grade and add the character to the appropriate category. Use the following after the  header:

E.g. for 安:

This template also categorizes the entry in Category:Japanese kanji, and the appropriate grade, which are sorted by radical/stroke.

Parameters

 * rs Provides the sort key, radical + 2 digit stroke. If not provided, the sortkey will automatically be retrieved from Module:Hani-sortkey.


 * grade Determined automatically, but may be overridden with 1 (grade 1), 2 (grade 2), 3 (grade 3), 4 (grade 4), 5 (grade 5), 6 (grade 6), 7 or c (secondary school), 8 or n (jinmeiyō), 9 or uc (hyōgaiji). In the case of kanji that exist only as radicals, the value 0 or r must be manually specified.

If a kanji has either a shinjitai or kyūjitai form, you may link to it in the same way as the headword templates as follows:
 * shin Links to the shinjitai form of the current kanji.
 * kyu Links to the kyūjitai form of the current kanji.

For example, for :

But for :

TemplateData
{	"params": { "rs": { "label": "Sort key", "description": "Provides the sort key, radical + 2 digit stroke. If not provided, the sortkey will automatically be retrieved from Module:Hani-sortkey.", "example": "心06", "type": "line", "suggested": true },		"grade": { "type": "string", "label": "Grade of the kanji", "description": "Determined automatically, but may be overridden with 1 (grade 1), 2 (grade 2), 3 (grade 3), 4 (grade 4), 5 (grade 5), 6 (grade 6), 7 or c (secondary school), 8 or n (jinmeiyō), 9 or uc (hyōgaiji). In the case of kanji that exist only as radicals, the value 0 or r must be manually specified.", "example": "n" },		"kyu": { "example": "恆", "type": "wiki-page-name", "label": "Kyūjitai form", "description": "Kyūjitai (traditional) form of the given shinjitai Kanji" },		"shin": { "example": "恒", "type": "wiki-page-name", "label": "Shinjitai form", "description": "Shinjitai (simplified) form of the given kyūjitai Kanji" }	},	"description": "Marks an entry as Kanji; Japanese words using Chinese characters. This template generates a headword, shows the grade of the kanji, and shows a floating box with the category of terms that use the kanji. It uses the kanji function in Module:ja to generate the headword and the grade link.", "format": "inline" }