Template:ISO 15924 code
外观
Error using {{ISO 15924 code}}
: input "" not recognized
返回模板定义的ISO 15924 alpha-4 代码。输入的代码值可以是3位数字或如Aaaa的4位字母。
目前的定义代码参见iso15924/codelists (esp [1],2021-01-25发布),其中正好列出了208个ISO 15924 alpha-4代码(一组Qaaa和Qabx记作两个)。enwiki的模板增加了一行(变为209),以允许Qaaa-Qabx作为50个代码的范围,正如ISO所期望的那样。
用法
[编辑]{{ISO 15924 code|215}}
→ Latn{{ISO 15924 code|Latn}}
→ Latn
Default output, in case the input is not found in the list, is an {{error}} message:
{{ISO 15924 code|Latin}}
→ Error using{{ISO 15924 code}}
: input Latin not recognized{{ISO 15924 code}}
→ Error using{{ISO 15924 code}}
: input not recognized
The default message can be changed or removed by using the parameter default:
{{ISO 15924 code|Latin|default=找不到输入}}
→ 找不到输入{{ISO 15924 code|Latin|default=}}
→ (空值)
模板数据
[编辑]无描述。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
alpha4 | alpha4 | 无描述 | 未知 | 可选 |
default | default | 无描述 | 未知 | 可选 |
ISO 15924相关模板的基本信息
[编辑]概览
[编辑]项目 | 模板 | /子页面 | 内容 | 示例 | 发布者 | 用法 | 备注 | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
代码(ISO) | {{ISO 15924 code}} | /subp | ID | Arab | ISO 15924 | Everywhere | Alpha-4, enwiki central ISO script id list | ||||
别名(Unicode) | {{ISO 15924 alias}} | /subp | ID | Arabic | Unicode | ||||||
条目名称(中文维基百科) | {{ISO 15924/wp-article}} | /subp | ID | [[阿拉伯字母]] | enwiki | ||||||
QID(维基数据) | {{ISO 15924/qid}} | /subp | ID | Q790681 | Wikidata | ||||||
Number; range 000–999 | {{ISO 15924 number}} | /subp | ID | 234 | ISO 15924 | rarely | ISO number not used as ID in enwiki; see Code | ||||
Scripts (sub)merged into main scripts
|
{{ISO 15924 alias/unicode-merged-into-script}} | /subp | Merged scripts | Latf → Latn | Unicode | Script descriptions, re U+ | In mainspace: 10× hardcoded (e.g.); 2× Qxxx depr | ||||
Name | {{ISO 15924 name}} | /subp | data | Deseret (Mormon) | ISO 15924 | ||||||
Unicode chapter | {{ISO 15924/unicode-chapter}} | /subp | data | Template:ISO 15924/unicode-chapter | Unicode | pdf does not open at .n subchapter | |||||
Script example
character |
{{ISO 15924/script-example-character}} | /subp | data | Template:ISO 15924/script-example-character | enwiki | User boxes | |||||
In Mainspace | |||||||||||
Overview
|
{{ISO 15924 script codes and related Unicode data}} | /subp | list | enwiki | ISO 15924 | Mainspace: ISO 15924, Script (Unicode), Unicode character property | |||||
Blocks ⇄ Scripts | {{Unicode blocks}} | /subp | list | enwiki | some script articles | Mainspace; related | |||||
graphs | {{ISO 15924/unicode-script-illustration}} | /subp | fonts&files | Mainspace, Scripts in Unicode | |||||||
Overviews | |||||||||||
4 IDs:
|
{{ISO 15924/overview-4id}} | /subp | 4 ID's, related | Wikidata | check consistency | ||||||
Properties | {{ISO 15924/overview-4id/properties}} | /subp | data | dir | Wikidata | doc, more WD props | |||||
description | {{ISO 15924/overview-4id-relations}} | /subp | overview | enwiki | 4 ID's: ISO-U+-WD-enwiki | ||||||
Overview: templates | {{ISO 15924/overview-templates}} | /subp | list | Wikipedia | |||||||
WP-category | {{ISO 15924/wp-category}} | /subp | data | Category:Arabic script | enwiki | Not checked for mainspace | watered down concept for minor scripts | ||||
Block names | {{Unicode blocks/overview}} | /subp | en: pages | Greek and Cyrillic | Unicode | Checking; {{Unicode blocks}}
|
Category:Unicode blocks(0) | ||||
Charts | {{Unicode blocks/overview}} | /subp | en: templates | Unicode | Mainly by Block | Category:Unicode charts(1) | |||||
Also (doc, userbox, technical, ...) | |||||||||||
Documentation | {{ISO 15924 templates/doc}} | /subp | prime documentation | Latin script in Unicode (~) | Reused in multiple templates | ||||||
Unicode Latn links | {{ISO 15924/overview-Latn in Unicode}} | /subp | Unicode | Full overview (aim) | |||||||
Redirect | {{R from ISO 15924 code}} | /subp | template | enwiki | Redirects | ||||||
userbox | {{User iso15924}} | /subp | Userboxes | ||||||||
Related Changes | {{Recent changes in Unicode}} | /subp | pages Unicode, ISO 15924 WP:RELC | Related Changes | enwiki | WikiProject | 900+700 P x T | ||||
Unicode versions | {{Unicode version}} | /subp | Version number | 截至Unicode版本 13.0 | enwiki | (new Sep2022) | |||||
Wikidata properties | |||||||||||
Directionality | 本頁不存在此屬性: P1406 | P1406 | {{Infobox}}, ... | ||||||||
Unicode ranges | 本頁不存在此屬性: P5949 | P5949 | {{Infobox}}, ... | ||||||||
ISO English name | 本頁不存在此屬性: P2561 | P2561 | Crosscheck only | ||||||||
Modules | |||||||||||
Data module | module:Unicode data | /subp | § Functions overview | ||||||||
HTML named entities | module:Numcr2namecr | /subp | |||||||||
|
ISO 更新
[编辑]- The ISO 15924 list of script codes is updated regularly, usually at least once a year. The current list is complete 截至2023年9月12日[update], and defines 223 codes (code, number, script name).
- 截至24 September 2023年[update], this template contains 271 ISO 15924 script codes. All are paired in both forms Xxxx and 123 (Alpha-4 and numerical). This 271 includes 50 distinct Qxxx codes. Some ISO-defined codes may have no ISO name, and/or may not be Unicode-defined.
参考资料
[编辑]- ISO 15924. Unicode Consortium.
- ISO 15924 Code lists. Unicode Consortium.
- ISO 15924 code changes. Unicode Consortium. 2021-12-03.
- Unicode TR24 Script property. Unicode Consortium. 2022-04-29.