Pergi ke kandungan

Modul:families/data/doc

Daripada Wikikamus

Ini ialah laman pendokumenan untuk Modul: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.

Errors

[sunting]

The following errors were detected by Module:data consistency check:

  • Gbaya (gba) has the invalid family code "alv-gba".
  • Gbaya-Bossangoa (gbp) has the invalid family code "alv-gbw".
  • Gbaya-Bozoum (gbq) has the invalid family code "alv-gbw".
  • Gbanu (gbv) has the invalid family code "alv-gbf".
  • Gelao Hijau (giq) has the invalid family code "qfa-gel".
  • Gelao Merah (gir) has the invalid family code "qfa-gel".
  • Mulao (giu) has the invalid family code "qfa-gel".
  • Gelao Putih (giw) has the invalid family code "qfa-gel".
  • Gbaya-Mbodomo (gmm) has the invalid family code "alv-gbf".
  • Qau (gqu) has the invalid family code "qfa-gel".
  • Gbaya Barat Daya (gso) has the invalid family code "alv-gbs".
  • Gbaya Barat Laut (gya) has the invalid family code "alv-gbw".
  • Iranun (ilm) has a canonical name that is not unique; it is also used by the code ill.
  • The translit field in the data table for Minaean (inm) specifies the module Modul:Sarb-translit, which does not exist.
  • Salako (knx) has its canonical name ("Salako") repeated in the table of otherNames.
  • The translit field in the data table for Kui (India) (kxu) specifies the module Modul:kxv-translit, which does not exist.
  • The translit field in the data table for Kuvi (kxv) specifies the module Modul:kxv-translit, which does not exist.
  • Ye'kwana (mch) has its canonical name ("Ye'kwana") repeated in the table of otherNames.
  • Mah Meri (mhe) has its canonical name ("Mah Meri") repeated in the table of aliases.
  • Chin Mara (mrh) has its canonical name ("Chin Mara") repeated in the table of otherNames.
  • Manza (mzv) has the invalid family code "alv-gbf".
  • The sort_key field in the data table for Middle Irish (mga) specifies the module Modul:mga-sortkey, which does not exist.
  • The sort_key field in the data table for Mari Barat (mrj) specifies the module Modul:mrj-sortkey, which does not exist.
  • The sort_key field in the data table for Moksha (mdf) specifies the module Modul:mdf-sortkey, which does not exist.
  • The translit field in the data table for Mozarabic (mxi) specifies the module Modul:mxi-translit, which does not exist.
  • The translit field in the data table for Manda (India) (mha) specifies the module Modul:kxv-translit, which does not exist.
  • Äiwoo (nfl) has its canonical name ("Äiwoo") repeated in the table of otherNames.
  • The sort_key field in the data table for Nivkh (niv) specifies the module Modul:niv-sortkey, which does not exist.
  • The sort_key field in the data table for Nupe (nup) specifies the module Modul:nup-sortkey, which does not exist.
  • Rejang (rej) has the invalid family code "poz-sus".
  • Rajbanshi (rjs) lists the invalid language code "inc-mgd" as its ancestor.
  • Kamta (rkt) lists the invalid language code "inc-ork" as its ancestor.
  • Lomavren (rmi) lists the invalid language code "psu" as its ancestor.
  • Domari (rmt) lists the invalid language code "psu" as its ancestor.
  • Romani (rom) lists the invalid language code "psu" as its ancestor.
  • Kriol (rop) has its canonical name ("Kriol") repeated in the table of otherNames.
  • Rusyn (rue) has its canonical name ("Rusyn") repeated in the table of aliases.
  • The sort_key field in the data table for Rusyn (rue) specifies the module Modul:rue-sortkey, which does not exist.
  • The sort_key field in the data table for Udmurt (udm) specifies the module Modul:udm-sortkey, which does not exist.
  • The sort_key field in the data table for Ulch (ulc) specifies the module Modul:ulc-sortkey, which does not exist.
  • The sort_key field in the data table for Ubykh (uby) specifies the module Modul:uby-sortkey, which does not exist.
  • The translit field in the data table for Ubykh (uby) specifies the module Modul:uby-translit, which does not exist.
  • Ura (Papua New Guinea) (uro) has its canonical name ("Ura (Papua New Guinea)") repeated in the table of otherNames.
  • The code oos has the invalid parent code "xln".
  • Western Panjabi (pnb) has a canonical name that is not unique; it is also used by the code pnb.
  • The code pnb is not unique; it is also defined in Modul:languages/data/3/p.
  • Proto-Ketic (qfa-yke-pro) has the invalid family code "qfa-yke".
  • Proto-Kottic (qfa-yko-pro) has the invalid family code "qfa-yko".
  • Proto-Pumpokolic (qfa-ypm-pro) has the invalid family code "qfa-ypm".
  • Proto-Arinic (qfa-yrn-pro) has the invalid family code "qfa-yrn".
  • The code zhx-dan has the invalid parent code "zhx" (a family code).
  • The code zhx-zho has the invalid parent code "zhx" (a family code).
  • The code zls-chs-ru has the invalid parent code "zls-chs".
  • The code zls-chs-uk has the invalid parent code "zls-chs".
  • ero, the code for the canonical name Horpa, is wrong; it should be ero.
  • gba, the code for the canonical name Gbaya, is wrong; it should be gba.
  • gio, the code for the canonical name Gelao, is wrong; it should be gio.
  • raj, the code for the canonical name Rajasthan, is wrong; it should be raj.
  • ero, the code for the canonical name Horpa, is wrong; it should be ero.
  • gba, the code for the canonical name Gbaya, is wrong; it should be gba.
  • gio, the code for the canonical name Gelao, is wrong; it should be gio.
  • raj, the code for the canonical name Rajasthan, is wrong; it should be raj.

Required values

[sunting]

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

[sunting]
aliases
A list of aliases/synonyms for the family, other than the canonical name.
varieties
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.
otherNames (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 aliases or varieties.
protoLanguage
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 -pro to the family code for instance, ine (Indo-European languages) ine-pro (Proto-Indo-European language) and then use Module:languages to check if the code is valid.
family
The superfamily that the language family belongs to, if any.
wikidata_item
The number in the Wikidata item id for the language family.