Module:families/data/doc

E Victionario

This is the documentation page for Module:families/data

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 Wiktionary:Families; that page also explains how to create new exceptional codes.

This module must not be imported using require. Instead, it is imported like this:

local families = mw.loadData("Module:families")

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:

canonicalName
The "canonical" name of the family. This is the name that is used in Wiktionary entries and category names.

Optional values[+/-]

otherNames
A table of all the names that this family is known by, other than the canonical name. The list should include not only synonyms for the family, but also names that refer to families that are subsumed under the same grouping without being treated as a separate branch.
protoLanguage
The language code for the proto-language of the family; that is, the common ancestor of all languages in the family. By default, this is formed by adding -pro to the code of the family; specifying this value overrides the default.
family
The superfamily that the language family belongs to, if any.