模組:Hani-sortkey/doc
这是Module:Hani-sortkey的文档页面
This module will sort text in the 漢字.
The module should preferably not be called directly from templates or other modules.
To use it from a template, use {{sortkey}}
.
Within a module, use Module:languages#Language:makeSortKey.
For testcases, see Module:Hani-sortkey/doc/testcases.
Functions
makeSortKey(text, lang, sc)
- Generates a sortkey for a given piece of
text
written in the script specified by the codesc
, and language specified by the codelang
. - When the sort fails, returns
nil
.
產生如下所示內容的示範函數位於Module:Hani-sortkey/templates中。模組的修改可以在Module:Hani-sortkey/sandbox中進行測試。單一字元的排序鍵是從178個資料模組之一檢索的。Module:Hani-sortkey/data為這些模組建立文件。
顯示排序鍵[编辑]
- PS/2接口 (
PS/2工44酉39
) - gas爐/gas炉 (
gas山39
) - γ粒子 (
γ己39工40
) - 濕𣲷𣲷/湿𣲷𣲷 (
工38幺-1幺-1
) - 得個……字 (
己43見38……丿38
) - 命裡有時終須有,命裡無時莫強求 (
广157水38口39工47幺54皿38口39,广157水38廴36工47弓65己40工42
) - 赛车 (
水39廾76
)
- 鿪 (
己39
)
表意文字描述序列[编辑]
- ⿰亻革 (
⿰虫38疒39
) - ⿰亻革家語/⿰亻革家语 (
⿰虫38疒39工39弋75
) - ⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心麵/⿺辶⿳穴⿲月⿱⿲幺言幺⿲长马长刂心⿺辶⿳穴⿲月⿱⿲幺言幺⿲长马长刂心面 (
⿺火38⿳手38⿲己39⿱⿲工47工45工47⿲瓦39矛38瓦39工41巾00⿺火38⿳手38⿲己39⿱⿲工47工45工47⿲瓦39矛38瓦39工41巾00工43
)