Template:ISO 15924 code
Jump to navigation
Jump to search
Returns the ISO 15924 alpha-4 code defining the script. Input can be a three-digit numeric or four-letter code Aaaa.
Definitions present: iso15924/codelists (esp [1], published 2021-01-25) lists exactly 208 alpha-4 id's, including Qaaa and Qabx, counting two. This enwiki template adds one line (into 209 then), to allow Qaaa–Qabx as a range of 50 codes, as intended by ISO.
Contents
Usage
{{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=Input not found}}
→ Input not found{{ISO 15924 code|Latin|default=}}
→ (empty string)
General information on ISO 15924 templates
Overview and Updates
Overview of ISO 15924 templates
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Item | In template | /subs | Content | Example | Usage in page | Publisher | Note | ||||
Code | {{ISO 15924 code}} | /subs | ID | Arab | Everywhere | ISO 15924 | |||||
Number | {{ISO 15924 number}} | /subs | ID | 234 | ISO 15924 | ||||||
Name | {{ISO 15924 name}} | /subs | data | Deseret (Mormon) | ISO 15924 | ||||||
Alias | {{ISO 15924 alias}} | /subs | ID | Arabic | Unicode | ||||||
WP-article | {{ISO 15924/wp-article}} | /subs | ID | Arabic script | enwiki | ||||||
Unicode chapter | {{ISO 15924/unicode-chapter}} | /subs | data | Template:Str rightc.pdf Ch 18.1 | Unicode | Operational | |||||
Wikidata QID | {{ISO 15924/qid}} | /subs | ID | Q790681 | Wikidata | ||||||
In Mainspace | |||||||||||
Overview (ISO-U-enwiki) | {{ISO 15924 script codes and related Unicode data}} | /subs | list | ISO 15924 | enwiki | Mainspace: ISO 15924, Script (Unicode), Unicode character property | |||||
Blocks <-> Scripts | {{Unicode blocks}} | /subs | list | some script articles | enwiki | Mainspace, related | |||||
graphs | {{ISO 15924/unicode-script-illustration}} | /subs | fonts&files | Mainspace, Scripts in Unicode | |||||||
Overviews | |||||||||||
4 ID's: ISO-U-WD-enwiki | {{ISO 15924/overview-4id}} | /subs | ID | check consistency | Wikidata | ||||||
Wikidata props | {{ISO 15924/overview-4id/properties}} | /subs | data | dir | doc, more WD props | Wikidata | |||||
descriotion | {{ISO 15924/overview-4id-relations}} | /subs | overview | enwiki | 4 ID's: ISO-U-WD-enwiki | ||||||
Overview: templates | {{ISO 15924/overview-templates}} | /subs | list | Wikipedia | |||||||
WP-category | {{ISO 15924/wp-category}} | /subs | data | Category:Arabic script | Not checked for mainspace | enwiki | watered down concept for minor scripts | ||||
Script example
character |
{{ISO 15924/script-example-character}} | /subs | data-m | ع | User boxes; not checked for mainspace | enwiki | could use more scripts exampled | ||||
Also (userbox, technical, ...) | |||||||||||
Test, quick check | {{ISO 15924/list}} | /subs | list, test | test only | |||||||
Overview | {{ISO 15924/overview}} | /subs | list-m | unused | enwiki | Deprecated | |||||
navbox templates | {{ISO 15924 templates}} | /subs | navbox | enwiki | navbox for Template space only | ||||||
Redirect | {{R from ISO 15924 code}} | /subs | template | Redirects | enwiki | ||||||
blank Code list | {{ISO 15924/code-list}} | /subs | todo | enwiki | Latest ISO codes | ||||||
See also | |||||||||||
Script direction | {{[[Template:|]]}} | /subs | data | DEPR | {{ISO 15924 direction}} | ||||||
Navbox, all Xxxx codes | {{[[Template:|]]}} | /subs | list | DEPR | enwiki | {{ISO 15924/footer}}
| |||||
Special:PrefixIndex/Template:ISO_15924 | |||||||||||
|
ISO updates
The ISO 15924 list of script codes is updated regularly, usually at least once a year. The current list is complete as of 25 January 2021[update], and defines 208 codes (code, number, script name).
- Note: when resolving red links or wrong links, edit
{{ISO 15924/wp-name}}
or{{ISO 15924/wp-category}}
. That is where the connection between ISO code and Wikipedia names is made.
Sources
See also
- {{Script}}
References
- ↑ https://www.unicode.org/iso15924/iso15924-codes.html
- ↑ https://www.unicode.org/iso15924/iso15924-text.html (downloadable flat textfile)
The above documentation is transcluded from Template:ISO 15924 code/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |