Open main menu

Module:languages/data3/u

This module contains definitions and metadata for three-letter language codes starting with "u". 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

Module:data consistency check shows no relevant errors.

Required values

Every entry in the table must contain the following indexed fields:

1
The "canonical" name of the language. This is the name that is used in Wiktionary entries and category names.
2
The Wikidata item id (Q number) for the language. Set to nil if not known/present. This replaces the older wikipedia_article property, which can still be used to link to specific sections or language editions.

Optional values

3
The code for the family that the language belongs to. See Wiktionary:Families.

The properties entry_name and sort_key are used for text substitution; they replace or remove certain characters or sets of characters. They both work similarly, and are optional. They can both be tables, and sort_key can be the name of a module that takes an entry name and generates a sortkey (which is used to sort the entry on category pages).

if sort_key is the name of a module, the module must contain a sortkey-generating function that is named makeSortKey. This function must take the arguments text, lang, sc, where text is the page name (or other text in the language), lang is the language code (not the language object), and sc is the script code (not the script object). The returned value should always be a string, or there will be a module error in the Language:makeSortKey() function.

If either one is a table, it must contain two tables inside it: one named from and one named to. These two tables are organised pairwise: each element in from is a pattern to identify which characters in the term to replace, while the corresponding element in to defines what to replace them with.

If the replacement is not present or if it is false or nil, it defaults to an empty replacement, meaning that the matching characters are removed altogether. This means that the from list can be longer than the to list, and an empty replacement will be assumed for any elements in from that have no counterpart in to.

The tables can contain literal characters, or the patterns (a type of regular expressions) that are used by the standard Scribunto mw.ustring.gsub function. See the Scribunto reference manual for more information.

At the top of the module, there is a list of combining characters with names. These are provided for convenience and readability, as combining characters generally do not display properly inside the module code (although they do not affect the actual operation of the module).

entry_name
Defines replacements to create the entry name from the displayed form of a term. This can be used to remove certain diacritical marks according to the customs or standard practice of the language. For example, it is used to remove accent marks from Russian words (ру́сскийрусский), or macrons from Latin or Old English words (ōsos), as these are not used in the normal written form of these languages. This is used by makeEntryName in Module:languages.
sort_key
Defines replacements to create a category sort key from the page name. The purpose is to remove any characters that are ignored in sorting, and to replace similar characters with identical ones if the sorting rules for that language do not distinguish them. For example, in German, the characters "ä" and "a" are considered equivalent for sorting, and are both treated as "a". The page name is converted to lowercase before applying the replacements, so you should not add uppercase letters to the "from" lists. This is used by makeSortKey in Module:languages.

These are other optional values:

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.
type
The type of language (which affects how it is handled on Wiktionary). Possible values are:
  • regular - This value is the default, so it doesn't need to be specified. It indicates that the is attested according to WT:CFI and therefore permitted in the main namespace. There may also be reconstructed terms for the language, which are placed in the Reconstruction namespace and must be prefixed with * to indicate a reconstruction.
  • reconstructed - This language is not attested according to CFI, and therefore is allowed only in the Reconstruction namespace. All terms in this language are reconstructed, and must be prefixed with *.
  • appendix-constructed - This language is attested but does not meet the additional requirements set out for constructed languages (WT:CFI#Constructed languages). Its entries must therefore be in the Appendix namespace, but they are not reconstructed and therefore should not have * prefixed in links.
scripts
A list of script codes, see Wiktionary:Scripts. These represent all the scripts (writing systems) that this language uses in the real world, as well as the ones that Wiktionary uses. The scripts that are used most often on Wiktionary should be first in the list, as this will speed up script detection.
Many templates and modules detect the script of text in a particular language using the findBestScript function in Module:scripts. This function goes down the list of scripts and counts how many characters in the text belong to each script. If all the characters belong to one script, that script will be returned; otherwise, the script with the most characters will be returned. Thus, script detection will be faster if the most frequently used scripts are first in the list.
translit_module
The name of a module that is used to generate transliterations of terms, without the Module: prefix. This module must export a function named tr that is defined as follows:
tr(text, lang, sc)
The three parameters are the text to be transliterated, the language code, and the script code. The function can ignore the language and script codes, but they are provided for cases when a language has more than one script, or when a single function is used to transliterate multiple languages sharing the same script.
ancestors
A table listing the language codes of the direct ancestors of this language. For example, the ancestor of English is listed as enm (Middle English); ang (Old English, the ancestor of Middle English), gem-pro (Proto-Germanic, the ancestor of Old English), and ine-pro (Proto-Indo-European, the ancestor of Proto-Germanic) are not listed.
For most languages, only one ancestor code should be given, but multiple ancestors can be listed for pidgins, creoles and mixed languages.
The ancestor language table should not be included if the language's direct ancestor is the proto-language of the family to which the language belongs. In such a case, if the family code has been provided, Module:languages will automatically add the proto-language as the language's ancestor. For example, Proto-Germanic (gem-pro) belongs to the Indo-European (ine) family, and its direct ancestor is Proto-Indo-European (ine-pro). Because Proto-Indo-European is the proto-language of the Indo-European languages, Proto-Germanic does not need an ancestors table; Proto-Indo-European will be automatically returned as its ancestor by the getAncestors function.
wikimedia_codes
A table listing the Wikimedia language codes that this language maps to. This is used to translate Wiktionary codes to Wikimedia codes, which are usually the same but there are a few languages where it is different. The language codes must be valid Wikimedia codes (as determined by the wiki software), and if they are not defined in one of the language data modules, they must be defined in Module:wikimedia languages/data.
wikipedia_article
The name of the Wikipedia article for the language. Should normally only be supplied if the Wikidata id cannot be used.

local u = mw.ustring.char

-- UTF-8 encoded strings for some commonly used diacritics
local GRAVE     = u(0x0300)
local ACUTE     = u(0x0301)
local CIRC      = u(0x0302)
local TILDE     = u(0x0303)
local MACRON    = u(0x0304)
local BREVE     = u(0x0306)
local DOTABOVE  = u(0x0307)
local DIAER     = u(0x0308)
local CARON     = u(0x030C)
local DGRAVE    = u(0x030F)
local INVBREVE  = u(0x0311)
local DOTBELOW  = u(0x0323)
local RINGBELOW = u(0x0325)
local CEDILLA   = u(0x0327)

local Latn = {"Latn"}

local m = {}

m["uam"] = {
	"Uamué",
	"Q3441418",
}

m["uan"] = {
	"Kuan",
	"Q6441085",
}

m["uar"] = {
	"Tairuma",
	"Q7676386",
	"ngf",
}

m["uba"] = {
	"Ubang",
	"Q3914467",
	"nic-ben",
	scripts = Latn,
}

m["ubi"] = {
	"Ubi",
	"Q56264",
}

m["ubl"] = {
	"Buhi'non Bikol",
	"Q18664494",
	"phi",
}

m["ubr"] = {
	"Ubir",
	"Q3547642",
	"poz-ocw",
	scripts = Latn,
}

m["ubu"] = {
	"Umbu-Ungu",
	"Q12953245",
	"ngf",
}

m["uby"] = {
	"Ubykh",
	"Q36931",
	"cau-nwc",
	scripts = {"Latn", "Cyrl"},
}

m["uda"] = {
	"Uda",
	"Q11011951",
	"nic-lcr",
}

m["ude"] = {
	"Udihe",
	"Q13235",
	"tuw",
	otherNames = {"Udege", "Udekhe", "Udeghe"},
	scripts = {"Cyrl"},
}

m["udg"] = {
	"Muduga",
	"Q16886762",
	"dra",
}

m["udi"] = {
	"Udi",
	"Q36867",
	"cau-nec",
	scripts = {"Cyrl", "Latn", "Armn", "Geor"},
	ancestors = {"xag"},
	translit_module = "translit-redirect",
	override_translit = true,
}

m["udj"] = {
	"Ujir",
	"Q14916906",
}

m["udl"] = {
	"Uldeme",
	"Q3515078",
	"cdc-cbm",
}

m["udm"] = {
	"Udmurt",
	"Q13238",
	"urj-prm",
	scripts = {"Cyrl"},
	translit_module = "udm-translit",
	override_translit = true,
}

m["udu"] = {
	"Uduk",
	"Q3182573",
}

m["ues"] = {
	"Kioko",
	"Q18343036",
}

m["ufi"] = {
	"Ufim",
	"Q7877531",
	"ngf-fin",
	scripts = Latn,
}

m["uga"] = {
	"Ugaritic",
	"Q36928",
	"sem-nwe",
	scripts = {"Ugar"},
	translit_module = "uga-translit",
}

m["ugb"] = {
	"Kuku-Ugbanh",
	"Q10549854",
}

m["uge"] = {
	"Ughele",
	"Q966303",
	"poz-ocw",
}

m["ugn"] = {
	"Ugandan Sign Language",
	"Q7877677",
	"sgn",
}

m["ugo"] = {
	"Gong",
	"Q3448919",
	"tbq-lob",
	otherNames = {"Ugong"},
	scripts = {"Thai"},
	sort_key = {
		from = {"[%pๆ]", "[็-๎]", "([เแโใไ])([ก-ฮ])"},
		to   = {"", "", "%2%1"}},
}

m["ugy"] = {
	"Uruguayan Sign Language",
	"Q7901470",
	"sgn",
}

m["uha"] = {
	"Uhami",
	"Q3913328",
	"alv-edo",
	scripts = Latn,
}

m["uhn"] = {
	"Damal",
	"Q4748974",
}

m["uis"] = {
	"Uisai",
	"Q7878123",
	"paa-sbo",
}

m["uiv"] = {
	"Iyive",
	"Q11128658",
	"nic-tvc",
	scripts = Latn,
}

m["uji"] = {
	"Tanjijili",
	"Q3914939",
	"nic-pls",
}

m["uka"] = {
	"Kaburi",
	"Q6344482",
}

m["ukg"] = {
	"Ukuriguma",
	"Q7878623",
	"ngf-mad",
}

m["ukh"] = {
	"Ukhwejo",
	"Q36623",
	"bnt-bek",
}

m["ukk"] = {
	"Muak Sa-aak",
	nil,
	"mkh-pal",
	otherNames = {"Muak"},
}

m["ukl"] = {
	"Ukrainian Sign Language",
	"Q10322106",
	"sgn",
}

m["ukp"] = {
	"Ukpe-Bayobiri",
	"Q3914470",
	"nic-ben",
	scripts = Latn,
}

m["ukq"] = {
	"Ukwa",
	"Q7878635",
	"nic-ief",
}

m["uks"] = {
	"Kaapor Sign Language",
	"Q3322101",
	"sgn",
}

m["uku"] = {
	"Ukue",
	"Q3913387",
	"alv-edo",
	scripts = Latn,
}

m["ukw"] = {
	"Ukwuani-Aboh-Ndoni",
	"Q36636",
	"alv",
	scripts = Latn,
}

m["uky"] = {
	"Kuuk Yak",
	"Q6448719",
	"aus-psw",
	scripts = Latn,
}

m["ula"] = {
	"Fungwa",
	"Q5509187",
	"nic-shi",
	otherNames = {"Ula", "Ura"},
}

m["ulb"] = {
	"Ulukwumi",
	"Q36722",
}

m["ulc"] = {
	"Ulch",
	"Q13239",
	"tuw",
	scripts = {"Cyrl", "Latn"},
}

m["ule"] = {
	"Lule",
	"Q12635889",
	scripts = Latn,
}

m["ulf"] = {
	"Afra",
	"Q4477735",
	"paa-pau",
}

m["uli"] = {
	"Ulithian",
	"Q36842",
	"poz-mic",
}

m["ulk"] = {
	"Meriam",
	"Q788174",
	"ngf",
	scripts = Latn,
}

m["ull"] = {
	"Ullatan",
	"Q8761579",
	"dra",
}

m["ulm"] = {
	"Ulumanda'",
	"Q3501892",
}

m["uln"] = {
	"Unserdeutsch",
	"Q13244",
	"crp",
	otherNames = {"Rabaul Creole German"},
	scripts = Latn,
	ancestors = {"de"},
}

m["ulu"] = {
	"Uma' Lung",
	"Q3548186",
	"poz-swa",
}

m["ulw"] = {
	"Ulwa",
	"Q2405552",
}

m["uma"] = {
	"Umatilla",
	"Q12953952",
	"nai-shp",
	scripts = Latn,
}

m["umb"] = {
	"Umbundu",
	"Q36983",
	"bnt",
	otherNames = {"South Mbundu"},
	scripts = Latn,
}

m["umc"] = {
	"Marrucinian",
	"Q36110",
	"itc",
	scripts = {"Latn", "Ital"},
}

m["umd"] = {
	"Umbindhamu",
	"Q7881346",
	"aus-pmn",
}

m["umg"] = {
	"Umbuygamu",
	"Q3915677",
	"aus-pmn",
}

m["umi"] = {
	"Ukit",
	"Q7878321",
}

m["umm"] = {
	"Umon",
	"Q3915448",
	"nic-ucn",
	scripts = Latn,
}

m["umn"] = {
	"Makyan Naga",
	"Q6740516",
	"sit-kch",
}

m["umo"] = {
	"Umotína",
	"Q7881740",
}

m["ump"] = {
	"Umpila",
	"Q12953954",
}

m["umr"] = {
	"Umbugarla",
	"Q2980392",
}

m["ums"] = {
	"Pendau",
	"Q7162371",
}

m["umu"] = {
	"Munsee",
	"Q56547",
	"del",
	scripts = Latn,
	entry_name = {
		from = {"Á", "Ă", "É", "Í", "Ó", "Ú", "Ŭ", "á", "á", "ă", "é", "í", "ó", "ú", "ŭ"},
		to   = {"A", "A", "E", "I", "O", "U", "U", "a", "á", "a", "e", "i", "o", "u", "u"}} ,
}

m["una"] = {
	"North Watut",
	"Q15887898",
	"poz-ocw",
	scripts = Latn,
}

m["und"] = {
	"Undetermined",
	nil,
	"qfa-not",
	scripts = {"Zyyy"},
}

m["une"] = {
	"Uneme",
	"Q3913357",
	"alv-edo",
	scripts = Latn,
}

m["ung"] = {
	"Ngarinyin",
	"Q1284885",
	"aus-wor",
	otherNames = {"Ungarinjin"},
	scripts = Latn,
}

m["unk"] = {
	"Enawené-Nawé",
	"Q3307184",
	"awd",
	scripts = Latn,
}

m["unm"] = {
	"Unami",
	"Q3549180",
	"del",
	scripts = Latn,
	entry_name = {
		from = {"À", "Ä", "È", "Ë", "Ì", "Ò", "Ù", "à", "ä", "è", "ë", "ì", "ò", "ù"},
		to   = {"A", "A", "E", "E", "I", "O", "U", "a", "a", "e", "e", "i", "o", "u"}} ,
}

m["unn"] = {
	"Kurnai",
	nil,
	"aus-pam",
	otherNames = {"Gunai", "Gaanay", "Ganai", "Gunnai'", "Kurnay", "Bidhawal", "Birrdhawal", "Muk-thang", "Nulit", "Thangquai"},
	scripts = Latn,
}

m["unr"] = {
	"Mundari",
	"Q3327828",
	"mun",
	scripts = {"Deva"},
	translit_module = "hi-translit", -- for now
}

m["unu"] = {
	"Unubahe",
	"Q7897776",
}

m["unx"] = {
	"Munda",
	"Q36264959",
	"mun",
	scripts = Latn,
}

m["unz"] = {
	"Unde Kaili",
	"Q12953596",
	"poz-kal",
	otherNames = {"Banava", "Ndepuu", "West Kaili", "Lole", "Ganti"},
	scripts = Latn,
}

m["uok"] = {
	"Uokha",
	"Q3441216",
	"alv-edo",
	scripts = Latn,
}

m["upi"] = {
	"Umeda",
	"Q7881465",
	"paa-brd",
}

m["upv"] = {
	"Uripiv-Wala-Rano-Atchin",
	"Q13249",
	"poz-vnc",
	scripts = Latn,
}

m["ura"] = {
	"Urarina",
	"Q1579560",
}

m["urb"] = {
	"Urubú-Kaapor",
	"Q13893353",
	"tup-gua",
	otherNames = {"Ka'apor", "Kaaporté"},
	scripts = Latn,
}

m["urc"] = {
	"Urningangg",
	"Q10710522",
}

m["ure"] = {
	"Uru",
	"Q2992892",
}

m["urf"] = {
	"Uradhi",
	"Q3915680",
	"aus-pam",
	scripts = Latn,
}

m["urg"] = {
	"Urigina",
	"Q7900603",
	"ngf",
	scripts = Latn,
}

m["urh"] = {
	"Urhobo",
	"Q36663",
	"alv-edo",
	scripts = Latn,
}

m["uri"] = {
	"Urim",
	"Q7900609",
	"qfa-tor",
	scripts = Latn,
}

m["urk"] = {
	"Urak Lawoi'",
	"Q7899573",
	"poz-mly",
	scripts = {"Thai"},
	otherNames = {"Urak Lawoi", "Orak Lawoi'", "Orak Lawoi", "Lawta", "Chao Tha Le", "Chao Nam", "Lawoi"},
	sort_key = {
		from = {"[%pๆ]", "[็-๎]", "([เแโใไ])([ก-ฮ])"},
		to   = {"", "", "%2%1"}},
}

m["url"] = {
	"Urali",
	"Q7899602",
	"dra",
	scripts = {"Knda"},
}

m["urm"] = {
	"Urapmin",
	"Q7899769",
}

m["urn"] = {
	"Uruangnirin",
	"Q7901389",
	"poz-cet",
	scripts = Latn,
}

m["uro"] = {
	"Ura (New Guinea)",
	"Q3121049",
	"paa-bng",
	otherNames = {"Ura (Papua New Guinea)"},
	scripts = Latn,
}

m["urp"] = {
	"Uru-Pa-In",
	"Q7901376",
	"tup-gua",
	scripts = Latn,
}

m["urr"] = {
	"Lehalurup",
	"Q3272124",
}

m["urt"] = {
	"Urat",
	"Q3502084",
	"qfa-tor",
	scripts = Latn,
}

m["uru"] = {
	"Urumi",
	"Q7901530",
	"tup",
	scripts = Latn,
}

m["urv"] = {
	"Uruava",
	"Q36875",
	"poz-ocw",
	scripts = Latn,
}

m["urw"] = {
	"Sop",
	"Q7562808",
	"ngf-mad",
	otherNames = {"Sob", "Sopu", "Usino", "Usina", "Usion"}, -- Usi- names are not used by speakers
	scripts = Latn,
}

m["urx"] = {
	"Urimo",
	"Q7900611",
	"qfa-tor",
	scripts = Latn,
}

m["ury"] = {
	"Orya",
	"Q7105295",
	"paa-tkw",
	scripts = Latn,
}

m["urz"] = {
	"Uru-Eu-Wau-Wau",
	"Q10266012",
	"tup-gua",
	scripts = Latn,
}

m["usa"] = {
	"Usarufa",
	"Q7901714",
	"paa-kag",
	scripts = Latn,
}

m["ush"] = {
	"Ushojo",
	"Q3540446",
}

m["usi"] = {
	"Usui",
	"Q12644231",
}

m["usk"] = {
	"Usaghade",
	"Q3914048",
	"nic-lcr",
	scripts = Latn,
}

m["usp"] = {
	"Uspanteco",
	"Q36728",
	"myn",
	scripts = Latn,
}

m["uss"] = {
	"Saare",
	nil,
	"nic-knn",
	otherNames = {"us-Saare", "Hun-Saare", "Duka"},
	scripts = Latn,
}

m["usu"] = {
	"Uya",
	"Q7904082",
}

m["uta"] = {
	"Otank",
	"Q3913990",
	"nic-tvc",
	scripts = Latn,
}

m["ute"] = {
	"Ute",
	"Q13260",
	"azc-num",
	otherNames = {"Southern Paiute", "Colorado River Numic", "Chemehuevi"},
	scripts = Latn,
}

m["uth"] = {
	"Hun",
	nil,
	"nic-knn",
	otherNames = {"ut-Hun", "Hun-Saare", "Duka"},
	scripts = Latn,
}

m["utp"] = {
	"Aba",
	"Q2841465",
	"poz-oce",
	otherNames = {"Amba", "Nebao", "Nembao"},
	scripts = Latn,
}

m["utr"] = {
	"Etulo",
	"Q35262",
	"alv-von",
	scripts = Latn,
}

m["utu"] = {
	"Utu",
	"Q7903469",
	"ngf-mad",
}

m["uum"] = {
	"Urum",
	"Q13257",
	"trk-kcu",
	scripts = {"Cyrl"},
}

m["uun"] = {
	"Kulon-Pazeh",
	"Q36435",
	"map",
	otherNames = {"Pazeh", "Pazih", "Kulun", "Kulon"},
	scripts = Latn,
}

m["uur"] = {
	"Ura (Vanuatu)",
	"Q7899531",
	"poz-oce",
	scripts = Latn,
}

m["uuu"] = {
	"U",
	"Q953082",
	"mkh-pal",
	otherNames = {"P'uman"},
}

m["uve"] = {
	"West Uvean",
	"Q36837",
	"poz-pnp",
	otherNames = {"Uvean", "Faga Ouvéa", "Fagauvea"},
	scripts = Latn,
}

m["uvh"] = {
	"Uri",
	"Q7900540",
	"ngf-fin",
	scripts = Latn,
}

m["uvl"] = {
	"Lote",
	"Q3259972",
	"poz-ocw",
	scripts = Latn,
}

m["uwa"] = {
	"Kuku-Uwanh",
	"Q3915687",
}

m["uya"] = {
	"Doko-Uyanga",
	"Q7904095",
	"nic-ucr",
	scripts = Latn,
}

return m