跳转到内容

Template:Ja-kanji

維基詞典,自由的多語言詞典

本模板用於日語漢字條目,可生成詞頭、顯示漢字所屬年級(參見w:Kyōiku kanji § List by grade),並展示使用該漢字的詞語分類浮動框。其通過調用Module:ja中的kanji函數來生成詞頭和年級連結。

使用方法

如需表格形式請參見Template:ja-kanjitab

本模板適用於單個漢字,用於顯示所屬年級並將字元歸入相應分類。需在===漢字===標題後使用:

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

例如: {{ja-kanji|rs=宀03}}

本模板會自動將條目歸入Category:日語漢字及其對應年級分類,這些分類按部首/筆畫排序。

參數說明

  • |rs= 提供排序鍵,格式為「部首+2位筆畫數」。若未提供,將自動從Module:Hani-sortkey獲取。
中文維基百科有一篇條目關於:
Wikipedia
中文維基百科有一篇條目關於:
Wikipedia
中文維基百科有一篇條目關於:
Wikipedia
中文維基百科有一篇條目關於:
Wikipedia
  • |grade= 通常自動判定,但可手動覆寫為:
    • 1(小學1年級)
    • 2(2年級)
    • 3(3年級)
    • 4(4年級)
    • 5(5年級)
    • 6(6年級)
    • 7c(中學)
    • 8n(人名用漢字)
    • 9uc(表外字)
    • 僅作為部首存在的漢字需手動指定0r

若漢字存在新字體舊字體形式,可參照詞頭模板的鏈接方式:

  • |shin= 鏈接至當前漢字的新字體
  • |kyu= 鏈接至當前漢字的舊字體

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

則應標記為: {{ja-kanji|rs=心06|shin=恒}}


模板數據

這是用於新版可视化编辑器和其他工具的模板數據說明文件。

來自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.

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
分類鍵rs

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

示例值
心06
单行文本推荐
漢字等級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.

示例值
n
字符串可选
舊字體kyu

日文漢字新字體對應的舊字體(傳統)字體

示例值
页面名称可选
新字體shin

日文漢字舊字體對應的新字體

示例值
页面名称可选