Jump to content

Module:Lang/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 16:46, 6 November 2017 by Trappist the monk (talk | changes) (create;)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Lang

This module is intended to consolidate {{lang}} and {{lang-??}} template processing into a single source and to use a clearly defined data set.

The data set is specified in Module:Language/name/data and its included data modules:

language code-and-name data
language script data
language region data
language variant data

The data set includes a data module, Module:Lang/data, specifically intended to hold override data and other non-standard data. For example, when IANA disagrees with ISO 639-3 or when the standard language name is cumbersome or contains information not suitable for use in article space, the override table can hold that language information.

The module eliminates the need for the myriad {{ISO 639 name ??}} templates, {{Language with name}}, {{Language with name and transliteration}}, and {{transl}}. It provides error checking and reporting to ensure that the html rendered is correct for browsers and screen readers.