Module:scripts/data/documentation

This module contains definitions and metadata for all script codes on Wiktionary. See Scripts for more information.

This module must not be imported using. Instead, it is imported like this: This ensures that the data is only loaded once per page, rather than once for every module invocation like normal.

To access this data from templates, use Module:script utilities.

See Module:data consistency check to check for errors in this data module.

Required values
Every entry in the table must contain the following properties:
 * The "canonical" name of the script. This is the name that is used in Wiktionary entries and category names.
 * The "canonical" name of the script. This is the name that is used in Wiktionary entries and category names.

Optional values

 * A list of aliases/synonyms for the script, other than the canonical name.
 * A list of aliases/synonyms for the script, other than the canonical name.


 * A table of script varieties that are subsumed under the script. This should not in general include those varieties for which separate script codes have been assigned. If a given variety has several names, they can all be listed by including a sublist in the overall list, where the first element is the canonical name that you want the variety to be known by, and the remainder are aliases. For example, the Arabic script entry lists the following under varieties: Here, the Nastaliq variety has an alias "Nastaleeq" specified, while the Jawi variety has no aliases listed. Note that, as here (where Jawi is a particular Arabic script for writing the Malay language while Nastaliq is a calligraphic hand commonly used to write Kashmiri and Urdu), varieties at different levels of specificity can be given in the same list.
 * (deprecated)
 * A table of all non-canonical names that this scripts is known by, including both synonyms and varieties. This should not be used in new scripts, and existing scripts should have the entries in this list moved into either  or.
 * A table of all non-canonical names that this scripts is known by, including both synonyms and varieties. This should not be used in new scripts, and existing scripts should have the entries in this list moved into either  or.


 * A Lua character class that matches on any character that belongs to this script. The character classes are the same as those in Lua search/replace patterns, but without the surrounding  (these are implicitly added). They also resemble those found in regular expressions.
 * In its simplest form, the character class can just be a list of all the characters in the script (for example, ). But it's easier to describe using character ranges, especially when the script contains many dozens or even hundreds of different characters. Character ranges are given with only the first and last character, and separated by a hyphen  . The set then implicitly includes all characters whose Unicode codepoints are in between the two given characters (for example,  ). This character set is used for automatic script recognition (see   in Module:scripts) if a language has this script's code in its   table.
 * In its simplest form, the character class can just be a list of all the characters in the script (for example, ). But it's easier to describe using character ranges, especially when the script contains many dozens or even hundreds of different characters. Character ranges are given with only the first and last character, and separated by a hyphen  . The set then implicitly includes all characters whose Unicode codepoints are in between the two given characters (for example,  ). This character set is used for automatic script recognition (see   in Module:scripts) if a language has this script's code in its   table.


 * Used by Module:character info. If lua, prevents from adding a   category, such as Category:Latin script characters.
 * Used by Module:character info. If lua, prevents from adding a   category, such as Category:Latin script characters.


 * Describes the text direction. The default value is lua (horizontal left-to-right), so this can be omitted. Horizontal right-to-left scripts should have lua, while vertical scripts should have lua (vertical left-to-right) or lua (vertical right-to-left).
 * Describes the text direction. The default value is lua (horizontal left-to-right), so this can be omitted. Horizontal right-to-left scripts should have lua, while vertical scripts should have lua (vertical left-to-right) or lua (vertical right-to-left).


 * The categories of writing system to which the script belongs. See Module:writing_systems/data for a list of supported values. At the moment, this is only used by Module:category_tree/poscatboiler/data/scripts. The system will only be displayed if there is only one category. See Category:Latin script for an example.
 * The categories of writing system to which the script belongs. See Module:writing_systems/data for a list of supported values. At the moment, this is only used by Module:category_tree/poscatboiler/data/scripts. The system will only be displayed if there is only one category. See Category:Latin script for an example.