Module:jbo-etym/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Module:jbo-etym. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

This module jbo-etym requires

  • the "Module:languages" and uses the getByCode function to get the Canonical name for the language.
  • the "Module:links" and uses the full_link function to
    • form strings if '_t' is passed as the last argument.
    • form strings if "_s" is passed as an argument
    • form strings if "_tr" is passed as an argument

The Module jbo-etym is called by the template jbo-etym The module is given an argument which is indexed by one of six strings, which are the six(6) strings used to identify the language that are in the etymology of the Lojban word for this page. These languages are: "zh" (Chinese) "en" (English) "hi" () "es" (Spanish) "ru" (Russian) "ar" (Arabic).

Initially the function export.show retrieves its arguments from the stack from the call to Template:jbo-etym (using frame:getParent().args ) and passes each table element to the function "append" with the language name associated with that argument.

The function append creates a string with the proper format to show the list of languages, and which string in those languages contributed to this lojban entity.