Jump to content

Module:User:Erutuon/show data/documentation

From Wiktionary, the free dictionary
Documentation for Module:User:Erutuon/show data. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

Displays the data for the code of a language, language family, or etymology language from the appropriate data module. Used in User:Erutuon/scripts/showLanguageData.js.

{{#invoke:User:Erutuon/show_data|main|code1|code2|...}}

m["en"] = {
	"English",
	1860,
	"gmw-ang",
	"Latn, Brai, Shaw, Dsrt", -- entries in Shaw or Dsrt might require prior discussion
	wikimedia_codes = "en, simple",
	ancestors = "en-ear",
	sort_key = {
		Latn = {
			-- Many of these are needed for sorting language names.
			remove_diacritics = "'\"%-%.,%s·ʻʼ" .. c.diacritics,
			-- These are found in entry names.
			from = {"æ", "🅱", "[¢©ᴄ]", "[ðđ]", "[əǝ]", "[ħʜ]", "ɨ", "ł", "[ŋɲ]", "[øɔ]", "œ", "ꝓ", "ß", "ʋ"},
			to = {"ae", "b", "c", "d", "e", "h", "i", "l", "n", "o", "oe", "p", "ss", "v"}
		},
	},
	standardChars = {
		Latn = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz",
		Brai = c.braille,
		c.punc
	},
}

m["enm"] = {
	"Middle English",
	36395,
	"gmw-ang",
	"Latn",
	entry_name = {remove_diacritics = c.acute .. c.macron .. c.dotabove},
}

m["ang"] = {
	"Old English",
	42365,
	"gmw-ang",
	"Latn, Runr",
	translit = {
		Runr = "Runr-translit"
	},
	entry_name = {
		Latn = {
			remove_diacritics = c.acute .. c.macron .. c.dotabove,
			from = {"Ƿ", "ƿ"},
			to = {"W", "w"}
		},
	},
	sort_key = {
		Latn = {
			remove_diacritics = c.acute .. c.macron .. c.dotabove,
			from = {"æ", "ð", "þ", "ƿ"},
			to = {"ae", "t" .. p[1], "t" .. p[2], "w" .. p[1]}
		},
	},
	standardChars = {
		Latn = "AaÆæBbCcDdEeFfGgHhIiLlMmNnOoŒœPpRrSsTtUuWwXxYyÐðÞþ",
		c.punc,
	},
}