Module:languages/documentation

Hello, you have come here looking for the meaning of the word Module:languages/documentation. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:languages/documentation, but we will also tell you about its etymology, its characteristics and you will know how to say Module:languages/documentation in singular and plural. Everything you need to know about the word Module:languages/documentation you have here. The definition of the word Module:languages/documentation will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:languages/documentation, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module is used to retrieve and manage the languages that can have Wiktionary entries, and the information associated with them. See Wiktionary:Languages for more information.

For the languages and language varieties that may be used in etymologies, see Module:etymology languages. For language families, which sometimes also appear in etymologies, see Module:families.

This module provides access to other modules. To access the information from within a template, see Module:languages/templates.

The information itself is stored in the various data modules that are subpages of this module. These modules should not be used directly by any other module, the data should only be accessed through the functions provided by this module.

Data submodules:

Extra data submodules (for less frequently used data):

Finding and retrieving languages

The module exports a number of functions that are used to find languages.

(The generated documentation is located at the module page.)

Language objects

A Language object is returned from one of the functions above. It is a Lua representation of a language and the data associated with it. It has a number of methods that can be called on it, using the : syntax. For example:

local m_languages = require("Module:languages")
local lang = m_languages.getByCode("fr")
local name = lang:getCanonicalName()
-- "name" will now be "French"

(The generated documentation is located at the module page.)

Error function

See Module:languages/error.

Subpages

See also