Module:Swadesh/documentation

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

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

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

Data format[edit]

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] = {{term = "I"}}
m[2] = {{term = "you"}}

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

term
The term in the specified language.
alt
The text to display, if not the same as the term to link to.
tr
The transliteration. If none is provided, one is automatically generated when appropriate.
ts
The transcription.
id
The sense ID (provided by {{senseid}} or {{etymid}}).
ipa
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.
notes
A short note displayed after the entry (or as an asterisk with a tooltip on Swadesh list tables with multiple languages).
nolink
Pass true to disable the link to the term.

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

See the submodule links below for more examples.

Language-specific submodules[edit]