Module:languages/data/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "{{documentation subpage}} 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: <syntaxhighlight> ["cod"] = {name = "My language", code = "cod", link = "Appendix:World/My_language", proto = false}, </syntaxhighlight> ; <code>name</code> : The name of the language ; <code>code</code> : Th...")
(No difference)

Revision as of 13:17, 8 August 2023

Edit-copy green.svg Documentation for Module:languages/data. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

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.