Template:Language extradata documentation

From The Languages of David J. Peterson
Revision as of 09:54, 13 September 2023 by Juelos (talk | contribs) (Created page with "{{language data search}} This module contains definitions and metadata for {{#switch:{{#titleparts:{{PAGENAME}}|1|3}}|2='''two-letter language codes'''|3='''three-letter langu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module contains definitions and metadata for language codes. See Wiktionary:Languages for more information.

This module must not be used directly in other modules or templates. The data should be accessed through Module:languages.

Errors

The following errors were detected by Module:data consistency check: Lua error in package.lua at line 80: module 'Module:languages/data/3/i/extra' not found.

Values

All values are optional.

aliases
A list of aliases/synonyms for the language, other than the canonical name.
varieties
A table of language varieties that are subsumed under the language. This should not in general include those language varieties for which separate etymology language codes have been assigned (e.g. Late Latin, Vulgar Latin and Medieval Latin for Latin; Auvergnat, Gascon, Lengadocian, Limousin, Provençal and Vivaro-Alpine for Occitan). 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, Azerbaijani lists the following under varieties:
	{"North Azerbaijani", "South Azerbaijani",
		{"Afshar", "Afshari", "Afshar Azerbaijani", "Afchar"},
		{"Qashqa'i", "Qashqai", "Kashkay"},
		"Sonqor"
	}

Here, the Afshar variety has three aliases specified (Afshari, Afshar Azerbaijani, and Afchar) while the Qashqa'i variety has two aliases specified (Qashqai and Kashkay), and the Songor, North Azerbaijani and South Azerbaijani varieties have no aliases listed. Note that, as here, varieties at different levels of specificity can be given in the same list.

In some cases varieties should instead be added to Module:etymology languages/data, with the language as the parent value, so that they can be referred to in etymologies.

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