Difference between revisions of "Module:jbo-etym/doc"

From Public Domain Knowledge Bank
Jump to: navigation, search
 
Line 1: Line 1:
This is the documentation for [[:Module:Jbo-etym]]
+
This is the documentation for [[:Module:J_jbo-etym]]
  
 
This module jbo-etym requires  
 
This module jbo-etym requires  

Latest revision as of 13:58, 14 May 2018

This is the documentation for Module:J_jbo-etym

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.