Template:ISO 15924 code
From HandWiki
Revision as of 00:42, 28 January 2021 by imported>Drmccreedy (2021-01-25 update of ISO 15924)
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)