Module:families/data/documentation

This module contains definitions for all language family codes on Wiktionary. The entries are listed by their family code, which is usually an ISO-639 code, but there are also some exceptional codes. These are listed on Families; that page also explains how to create new exceptional codes.

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.

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

Optional values

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


 * A table of family varieties that are subsumed under the family. This should not include those varieties for which separate family 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. This facility is more commonly used for individual languages than families, but the facility is also provided for families. See Template:language extradata documentation for an example.
 * A table of family varieties that are subsumed under the family. This should not include those varieties for which separate family 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. This facility is more commonly used for individual languages than families, but the facility is also provided for families. See Template:language extradata documentation for an example.


 * (deprecated)
 * A table of all non-canonical names that this family is known by, including both synonyms and varieties. This should not be used in new families, and existing families should have the entries in this list moved into either  or.


 * The language code for the proto-language of the family; that is, the common ancestor of all languages in the family. If this is not specified, Module:families will attempt to create the proto-language code by adding  to the family code &mdash; for instance,   (Indo-European languages) &rarr;   (Proto-Indo-European language) &mdash; and then use Module:languages to check if the code is valid.
 * The language code for the proto-language of the family; that is, the common ancestor of all languages in the family. If this is not specified, Module:families will attempt to create the proto-language code by adding  to the family code &mdash; for instance,   (Indo-European languages) &rarr;   (Proto-Indo-European language) &mdash; and then use Module:languages to check if the code is valid.


 * The superfamily that the language family belongs to, if any.
 * The superfamily that the language family belongs to, if any.


 * The number in the Wikidata item id for the language family.
 * The number in the Wikidata item id for the language family.