มอดูล:families/data/documentation
< มอดูล:families | data
นี่คือหน้าเอกสารการใช้งานสำหรับ มอดูล: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 แก้ไข
The following errors were detected by Module:data consistency check:
Module:languages/data/2
- ภาษาอินุกติตุต (
iu
) hasoverride_translit
set, but no transliteration module - ภาษานอร์เวย์แบบบุ๊กมอล (
nb
) has ภาษาเดนมาร์ก (da
) set as an ancestor, but is not in the กลุ่มภาษาสแกนดิเนเวียนตะวันออก (gmq-eas
). - ภาษานอร์เวย์แบบบุ๊กมอล (
nb
) has ภาษานอร์เวย์กลาง (gmq-mno
) set as an ancestor, but is not in the กลุ่มภาษาสแกนดิเนเวียนตะวันตก (gmq-wes
).
Module:languages/data/3/h
- ภาษาฮินดูสตานีแบบแคริบเบียน (
hns
) has ภาษาโภชปุระ (bho
) set as an ancestor, but is not in the กลุ่มภาษาอินโด-อารยันตะวันออก (inc-eas
). - ภาษาฮินดูสตานีแบบแคริบเบียน (
hns
) has ภาษาอวัธ (awa
) set as an ancestor, but is not in the กลุ่มภาษาฮินดีตะวันออก (inc-hie
).
Module:languages/data/3/s
- ภาษาสันถาลี (
sat
) hasoverride_translit
set, but no transliteration module
Module:etymology languages/data
- The data key
alias_codes
for ??? (lng
) is invalid. - ภาษามคธ (
pra-mag
) has a canonical name that is not unique; it is also used by the codemag
. - The data key
preprocess_links
for ??? (th-new
) is invalid.
Module:families/data
- กลุ่มภาษาอินโด-อารยันเก่า (
inc-old
) has no child families or languages. - กลุ่มภาษาปรากริติก (
pra
) has no child families or languages.
Module:etymology languages/code to canonical name
goh-lng
, the code for the canonical name Lombardic, is wrong; it should belng
.
Module:families/canonical names
- The code
ira-mid
and the canonical name อิเรเนียนกลาง should be removed; they are not found in Module:families/data. - The code
ira-old
and the canonical name อิเรเนียนเก่า should be removed; they are not found in Module:families/data.
Module:families/code to canonical name
- The code
ira-mid
and the canonical name อิเรเนียนกลาง should be removed; they are not found in Module:families/data. - The code
ira-old
and the canonical name อิเรเนียนเก่า should be removed; they are not found in Module:families/data.
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 แก้ไข
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
orvarieties
. 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.