Template:ja-kanji

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

In entries for kanji (Japanese characters), this template generates a headword, shows the grade of the kanji (see w:Kyōiku kanji § List by grade), 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.

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 ===Kanji=== header:

{{ja-kanji|rs= |grade= |shin= |kyu= }}

E.g. for :

{{ja-kanji|rs=宀03}}

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

Parameters

English Wikipedia has an article on:
Wikipedia
English Wikipedia has an article on:
Wikipedia
English Wikipedia has an article on:
Wikipedia
English Wikipedia has an article on:
Wikipedia
  • |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 :

{{ja-kanji|rs=心06|kyu=恆}}

But for :

{{ja-kanji|rs=心06|shin=恒}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for ja-kanji


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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Sort keyrs

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

Example
心06
Linesuggested
Grade of the kanjigrade

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
Stringoptional
Kyūjitai formkyu

Kyūjitai (traditional) form of the given shinjitai Kanji

Example
Pageoptional
Shinjitai formshin

Shinjitai (simplified) form of the given kyūjitai Kanji

Example
Pageoptional