Template:fi-dial

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Displays Finnish dialectal data, including dialectal forms and synonyms if specified in data.

By default, it will try to load dialectal data from Module:fi-dialects/data/word/<WORD>, where <WORD> is the page title. Dialectal data should be classified under the standard Finnish term, if one exists. To this end, an alternative for <WORD> can be supplied as the first parameter. In addition, a second parameter may be specified to add an extra qualifier, such as {{fi-dial|WORD|SENSE}} loading data from Module:fi-dialects/data/word/WORD (SENSE).

To see an example of a dialectal data module set up correctly, see Module:fi-dialects/data/word/huivi and Module:fi-dialects/data/word/ilta.

Alternatively, instead of using dialectal data, a list of parishes (see Module:fi-dialects/data/parish) can be supplied with the |p= parameter, separated by commas. In this case, synonyms will not be shown, but only a list and a link to a map of dialects in which the word is used. For example, {{fi-dial|p=Vermlanti}} for a word only attested in the Värmland dialects. References/sources can be added with the |ref= parameter; see Module:fi-dialects/data/source for a list of valid values. |t= can be used to add a gloss.

The dialectal classification is based on that of the Suomen murteiden sanakirja (Dictionary of Finnish Dialects) (by Kotimaisten kielten keskus), the content of which is available under the CC BY 4.0 license.

Dialectal data modules

[edit]

Dialectal data modules should return a table. The fields of the table depend on whether the module is for a word, or a dialectal feature.

For words:

  • semantic:
    • If true, the table is a semantic table, providing meanings or senses for a term, when the senses differ by dialect.
    • If false or not provided, the table contains terms for a given sense, or variants of a term or word.
  • syns: The table of synonyms or meanings, with a term (a string) or list of terms (a table) given for each parish (see Module:fi-dialects/data/parish), using either the canonical name or an alias; for a list of supported special codes, see specials under Module:fi-dialects/template/common.
    • It's generally a good idea to give synonyms for special codes on separate lines, rather than lumping them in with the parishes proper.
  • source: A source or a table containing a list of sources; see Module:fi-dialects/data/source for the list of supported sources.
  • gloss: The gloss for the reference term. For semantic maps, the meaning in the standard language should be provided, if one exists.
  • usage: Adds an additional usage qualifier for the reference term.
  • nolink: If true, disables links to terms on the map. Always true for semantic maps.
  • links: If specified, provides custom link targets for specific forms.
  • labels: If specified, provides custom text for specific forms or senses for semantic maps.
  • qualifiers: If specified, provides qualifiers for specific forms or senses for maps.

For features:

  • data: The table of values, with a term (a string) or list of terms (a table) given for each parish (see Module:fi-dialects/data/parish), using either the canonical name or an alias; for a list of supported special codes, see specials under Module:fi-dialects/template/common.
    • It's generally a good idea to give synonyms for special codes on separate lines, rather than lumping them in with the parishes proper.
  • source: A source or a table containing a list of sources; see Module:fi-dialects/data/source for the list of supported sources
  • title: The title for the given feature; displayed on the map.
  • labels: If specified, provides custom text for certain senses for semantic maps.
  • label_order: If specified, overrides the order of labels displayed on the map.
  • qualifiers: If specified, provides qualifiers for specific forms or senses for maps.

See also

[edit]