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

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(→‎Usage: don't transclude {{error}} on documentation page)
imported>Wbm1058
(→‎Usage: update documentation to reflect actual template behavior)
Line 6: Line 6:
 
* {{tlx|ISO 15924 code|215}} → {{ISO 15924 code|215}}
 
* {{tlx|ISO 15924 code|215}} → {{ISO 15924 code|215}}
 
* {{tlx|ISO 15924 code|Latn}} → {{ISO 15924 code|Latn}}
 
* {{tlx|ISO 15924 code|Latn}} → {{ISO 15924 code|Latn}}
* {{tlx|ISO 15924 code|Latin}} &rarr; <span class="error">Error using {{tlx|ISO 15924 code}}: input Latin not recognised</span>
+
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 a ''blank'' (no text). It can be set different:
+
* {{tlx|ISO 15924 code|Latin}} &rarr; <span class="error">Error using {{tlx|ISO 15924 code}}: input Latin not recognized</span>
 +
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=}}
  
 
{{ISO 15924 templates/doc}}
 
{{ISO 15924 templates/doc}}

Revision as of 15:30, 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