Template:ISO 15924 code
From HandWiki
Returns the ISO 15924 four-letter code corresponding to the input, either a three-digit numeric or four-letter code.
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)