Template:ISO 15924 code
Returns the ISO 15924 four-letter code corresponding to the input, either a three-digit numeric, name of the script, or four-letter code.
Usage
edit{{ISO 15924 code|215}}
→ Latn{{ISO 15924 code|Latn}}
→ Latn{{ISO 15924 code|Latin}}
→ Latn
Default output, in case the input is not found in the list, is a blank (no text). It can be set different:
{{ISO 15924 code|foo|default=Input not found}}
→ Input not found
See also
edit- w:ISO 15924
- Template:ISO 15924 name - returns the name of the script when presented with a number or code (calls on this template)
- Template:ISO 15924 - returns either the name or the code (calls on this template)