Jump to content

Module:ISO 639/doc

From Wikisource

Some general language code functions:

language_name

[edit]

Gets the English language name for a code (ISO 639-1, -2 or -3).

  • en → English
  • enm → Middle English
  • ang → Old English
  • fr → French
  • el → Greek
  • grc → Ancient Greek

Usage:

local language_name = require('Module:ISO 639')
language_name(code)

ISO_639_name

[edit]

Wraps language_name for {{ISO 639 name}} and provides error messages. Errors are tracked in Category:ISO 639 name template errors.

Usage:

local ISO_639_name = require('Module:ISO 639')._ISO_639_name
ISO_639_name({code})
ISO_639_name({code = code})
{{#invoke:ISO 639|ISO_639_name|code}}