Difference between revisions of "Template:ISO 15924 code/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(→‎Usage: update documentation to reflect actual template behavior)
imported>Wbm1058
(→‎Usage: Usage examples: no parameter and empty string)
Line 8: Line 8:
 
Default output, in case the input is not found in the list, is an {{tl|error}} message:
 
Default output, in case the input is not found in the list, is an {{tl|error}} message:
 
* {{tlx|ISO 15924 code|Latin}} &rarr; <span class="error">Error using {{tlx|ISO 15924 code}}: input Latin not recognized</span>
 
* {{tlx|ISO 15924 code|Latin}} &rarr; <span class="error">Error using {{tlx|ISO 15924 code}}: input Latin not recognized</span>
 +
* {{tlx|ISO 15924 code}} &rarr; <span class="error">Error using {{tlx|ISO 15924 code}}: input not recognized</span>
 
The default message can be changed or removed by using the parameter ''default'':
 
The default message can be changed or removed by using the parameter ''default'':
 
* {{tlx|ISO 15924 code|Latin|default{{=}}Input not found}} &rarr; {{ISO 15924 code|Latin|default=Input not found}}
 
* {{tlx|ISO 15924 code|Latin|default{{=}}Input not found}} &rarr; {{ISO 15924 code|Latin|default=Input not found}}
* {{tlx|ISO 15924 code|Latin|default{{=}}}} &rarr; {{ISO 15924 code|Latin|default=}}
+
* {{tlx|ISO 15924 code|Latin|default{{=}}}} &rarr; {{ISO 15924 code|Latin|default=}} (empty string)
  
 
{{ISO 15924 templates/doc}}
 
{{ISO 15924 templates/doc}}

Revision as of 20:22, 19 March 2013

Returns the ISO 15924 four-letter code corresponding to the input, either a three-digit numeric or four-letter code.

Usage

Default output, in case the input is not found in the list, is an {{error}} message:

The default message can be changed or removed by using the parameter default:


General information on ISO 15924 templates

Overview and Updates

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, 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