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獲取。
|grade=通常自動判定,但可手動覆寫為:- 1(小學1年級)
- 2(2年級)
- 3(3年級)
- 4(4年級)
- 5(5年級)
- 6(6年級)
- 7或c(中學)
- 8或n(人名用漢字)
- 9或uc(表外字)
- 僅作為部首存在的漢字需手動指定0或r
|shin=鏈接至當前漢字的新字體|kyu=鏈接至當前漢字的舊字體
例如恒: {{ja-kanji|rs=心06|kyu=恆}}
而恆則應標記為: {{ja-kanji|rs=心06|shin=恒}}
模板數據
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.
| 单行文本 | 推荐 |
| 漢字等級 | 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.
| 字符串 | 可选 |
| 舊字體 | kyu | 日文漢字新字體對應的舊字體(傳統)字體
| 页面名称 | 可选 |
| 新字體 | shin | 日文漢字舊字體對應的新字體
| 页面名称 | 可选 |
