Jump to content

Module:Lang/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 16:46, 6 November 2017 (create;). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.