Module:Swadesh/documentation

This module is responsible for automating the display of Swadesh lists.

See for how to use this module on Swadesh list pages.

Data format
The data submodules should return a table of words indexed by their index on the 207-word Swadesh list. Indexes may be left out at will. The values should be a list of terms (explained below).

For example: m[1] = m[2] =

A term is a table with the following keys (all of which are technically optional, but at least either  or   must be provided in practice:
 * The term in the specified language.
 * The term in the specified language.


 * The text to display, if not the same as the term to link to.
 * The text to display, if not the same as the term to link to.


 * The transliteration. If none is provided, one is automatically generated when appropriate.
 * The transliteration. If none is provided, one is automatically generated when appropriate.


 * The transcription.
 * The transcription.


 * The sense ID (provided by or ).
 * The sense ID (provided by or ).


 * The IPA transcription of the word. Only displayed if the table contains only the specified language. Not displayed by default for reconstructed languages even if specified.
 * The IPA transcription of the word. Only displayed if the table contains only the specified language. Not displayed by default for reconstructed languages even if specified.


 * A short note displayed after the entry (or as an asterisk with a tooltip on Swadesh list tables with multiple languages).
 * A short note displayed after the entry (or as an asterisk with a tooltip on Swadesh list tables with multiple languages).


 * Pass  to disable the link to the term.
 * Pass  to disable the link to the term.

In addition, the returned table may also have a key  that contains the name of that language in that language.

See the submodule links below for more examples.