Jump to content

Template:ja-kanjitab

From Wiktionary, the free dictionary

This template shows a table of kanji in a Japanese term.

Usage

This can be used in two ways:

  1. The conventional kanji-only mode, which only links to the kanji in the term. This template knows what kanji are in the term by itself, so one need only enter {{ja-kanjitab}} with no parameters.
  2. The newer readings mode, which links to kanji, shows their readings, and adds readings categories.

In either case, use the template {{ja-kanjitab}} at the top of the Etymology section. This creates a table floated at the right margin.

For example, the entry 外来語 would include the following:

===Etymology===
{{ja-kanjitab}}

or

===Etymology===
{{ja-kanjitab|がい|らい|ご|yomi=on}}

Note: if there is no other etymology text, do not use the ===Etymology=== header; (which would create an apparently blank section) the {{ja-kanjitab}} template follows the ==Japanese== header.

Parameters

This template expects the reading for each character as separate unnamed parameters. For example:

(げん)() (genki){{ja-kanjitab|げん|き|...}}
(とー)(ちょー) (tōchō){{ryu-kanjitab|とー|ちょー|...}}

A number can follow a reading if it corresponds to multiple characters (and cannot be split between them), as in:

今日(きょう) (kyō){{ja-kanjitab|きょう2|...}}
(しろ)海豚(いるか) (shiroiruka){{ja-kanjitab|しろ|いるか2|...}}

For words that exhibit sound changes such as (れん)(だく) (rendaku, sequential voicing) or (そく)(おん)便(びん) (sokuonbin, gemination onbin), use the modern readings before those changes, that is, the readings of the individual kanji as they appear on the pages of the respective kanji, which are not necessarily the actual way they manifest in the particular word. For example:

(とき)(どき) (tokidoki){{ja-kanjitab|とき|とき|...}}
(はっ)(ぴょう) (happyō){{ja-kanjitab|はつ|ひょう|...}}

If the actual readings do differ, they should be specified with the parameters |kN=, described below.

Historical readings, such as きやう (kyau) and くゐやう (kwyau) for are outside the scope of this template and should not be included.

Additional parameters

  • |kN= (optional): The altered readings, for when a sound change affects a reading given as an unnamed parameter.
    (とき)(どき) (tokidoki){{ja-kanjitab|とき|とき|...|k2=どき}}
    (はっ)(ぴょう) (happyō){{ja-kanjitab|はつ|ひょう|...|k1=はっ|k2=ぴょう}}
    The numbering corresponds to the unnamed parameters, not necessarily which kanji, so:
    稲荷(いなり)寿()() (inarizushi){{ja-kanjitab|いなり2|す|し|...|k2=ず}}
    (the 寿 is the third character, but corresponds to the second unnamed parameter, because the first one takes up two characters)
    大和(やまとぅ)(ちゅ) (yamatunchu){{ryu-kanjitab|やまとぅ2|っちゅ|...|k2=ちゅ}}
    If these are specified, they are used in place of the unnamed parameters to create the sortkey when |sort= is omitted.
  • |oN= (optional): Omitted (おく)()() (okurigana, okurigana).
    The readings used in "read as" categories are conservative and stick with the "core" readings that are as general as possible. For example:
    (たち)() (tachiiri){{ja-kanjitab|た|い|...|o1=ち}}
    (note that the explicit okurigana り is irrelevant to the kanji representation and does not appear)
    (いり)(ぐち) (iriguchi){{ja-kanjitab|い|くち|...|o1=り|k2=ぐち}}
    As with |kN=, the numbering corresponds to the unnamed parameters, not necessarily which kanji.
  • |sort= (optional): Kana string for sorting.
    This should only be used when there are kana that are not covered by kanji, for example in terms with leading honorific (o), verbs, or terms with irregular readings. Enter the kana as-is (no need for quotes on the end as for |hidx= in other templates). This kana string can be any mix of hiragana or katakana. It is turned into the proper sortkey automatically by Module:Jpan-sortkey.
  • |alt= (optional): Alternative spellings of the term, separated by commas.
    Needed if you want to redirect with {{ja-see}}.
    Labels can be added with the following syntax:
    altform1:label1_1 label1_2,altform2:label2_1 label2_2
    The recognized labels are identical to those used in {{label}}, and will be processed as such. They will also appear on the {{ja-see}} redirect. For example, see かけあし (kakeashi), which has a kanjitab containing |alt=...,駈歩:equestrianism,..., and (かけ)(あし) (kakeashi)'s {{ja-see}} then displays text like "an alternative spelling (equestrianism)"; similarly ミル (miru) has |alt=釺:Brazil obsolete and (ミリ) (miri)'s {{ja-see}} shows "an alternative spelling (Brazil, obsolete)".
  • |clearright= (optional): Prohibits multiple kanjitabs from occupying the same line.

Categorization

On the back end, this template adds categories that group entries by the readings of their kanji, of the form "Japanese terms spelled with (kanji) read as (reading)".

For example, (はっ)(ぴょう) (happyō) has Category:Japanese terms spelled with 発 read as はつ and Category:Japanese terms spelled with 表 read as ひょう; 民国(みんくく) (minkuku) has Category:Okinawan terms spelled with 民 read as みん and Category:Okinawan terms spelled with 国 read as くく.

These categories in turn belong in two parent categories: one of the form "Japanese terms spelled with (kanji)", (the same category link generated by the Japanese kanji headword line template), and the other of the form "Japanese terms spelled with kanji read as (reading)". Use {{auto cat}} (with the appropriate reading types specified as numbered parameters) to generate the readings subcategories. See the documentation of {{auto cat}} for more information.

See also