Module:languages/data: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "export.languages = { -- Proto-Laenkean ["lnk-pro"] = {name = "Proto-Laenkean", code = "lnk-pro", link = ":Category:Proto-Laenkean roots", proto = true}, -- Balavic ["bal"] = {name = "Balavic", code = "bal", link = ":Category:Balavic lemmas", proto = false}, -- Kilitic ["kil"] = {name = "Kilitic", code = "kil", link = ":Category:Kilitic lemmas", proto = false}, -- Laefevian ["lfv-pro"] = {name = "Proto-Laefevic", code = "lfv-pro", link = ":Category:Proto-Laefevic...")
 
No edit summary
Line 1: Line 1:
export.languages = {
return {
-- Proto-Laenkean
-- Proto-Laenkean
["lnk-pro"] = {name = "Proto-Laenkean", code = "lnk-pro", link = ":Category:Proto-Laenkean roots", proto = true},
["lnk-pro"] = {name = "Proto-Laenkean", code = "lnk-pro", link = ":Category:Proto-Laenkean roots", proto = true},

Revision as of 07:22, 6 August 2023

This module houses data about the Laenkean languages. Be careful when editing! You must keep to Lua's format or it could break a lot of things.

To add a language, just place a new line along with the others of the following format:

["cod"] = {name = "My language", code = "cod", link = "Appendix:World/My_language", proto = false},
name
The name of the language
code
The language's code. This should be three letters and representative of the language's name. Middle, Old and Proto-languages should have -m, -o or -pro respectively tacked onto the end of their three-letter code. If you have multiple forms of a language, e.g Old Language and modern Language, the first three letter code should be the same with differing endings. For example, lng-o and lng.
link
This should be the Laenktionary page you want to be linked to when your language name appears as a link. Often this will be a world encyclopedia page about your language, though if you don't have one you can consider setting it to a link to your language's lemma category. Remember that category links need to start with a colon, e.g :Category:My language lemmas.
proto
This is a true or false value. It should be set to true if your language is a proto-language (i.e reconstructed), and false if not. This determines whether an asterisk will appear next to terms in the language, and whether words in the language will have regular links or links via e.g. Appendix:Proto-Language.

return {
	-- Proto-Laenkean
	["lnk-pro"] = {name = "Proto-Laenkean", code = "lnk-pro", link = ":Category:Proto-Laenkean roots", proto = true},
	-- Balavic
	["bal"] = {name = "Balavic", code = "bal", link = ":Category:Balavic lemmas", proto = false},
	-- Kilitic
	["kil"] = {name = "Kilitic", code = "kil", link = ":Category:Kilitic lemmas", proto = false},
	-- Laefevian
	["lfv-pro"] = {name = "Proto-Laefevic", code = "lfv-pro", link = ":Category:Proto-Laefevic lemmas", proto = true},
	["lfv-o"] = {name = "Old Laefevian", code = "lfv-o", link = ":Category:Old Laefevian lemmas", proto = false},
	["lfv-m"] = {name = "Middle Laefevian", code = "lfv-m", link = ":Category:Middle Laefevian lemmas", proto = false},
	["lfv"] = {name = "Laefevian", code = "lfv", link = ":Category:Laefevian lemmas", proto = false},
	-- Radestrian
	["rad-pro"] = {name = "Proto-Radic", code = "rad-pro", link = ":Category:Proto-Radic lemmas", proto = true},
	["rad-o"] = {name = "Old Radestrian", code = "rad-o", link = ":Category:Old Radestrian lemmas", proto = false},
	["rad-m"] = {name = "Middle Radestrian", code = "rad-m", link = ":Category:Middle Radestrian lemmas", proto = false},
	["rad"] = {name = "Radestrian", code = "rad", link = ":Category:Radestrian lemmas", proto = false},
	-- Riyan
	["ryn-o"] = {name = "Old Riyan", code = "ryn-o", link = ":Category:Old Riyan lemmas", proto = false},
	["ryn-m"] = {name = "Middle Riyan", code = "ryn-m", link = ":Category:Middle Riyan lemmas", proto = false},
	["ryn"] = {name = "Riyan", code = "ryn", link = ":Category:Riyan lemmas", proto = false}
}