Module:Lang/doc
![]() | This is a documentation subpage for Module:Lang. It may contain usage information, categories and other content that is not part of the original module page. |
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
- Module:Language/data/iana languages – from IANA language-subtag-registry file
- Module:Language/data/ISO 639-3 – from sil.org UTF-8 Complete Code Tables Set
- Module:Language/data/wp languages – sourcing for the data in this module is unknown
- language script data
- Module:Language/data/iana scripts – from IANA language-subtag-registry file
- language region data
- Module:Language/data/iana regions – from IANA language-subtag-registry file
- language variant data
- Module:Language/data/iana variants – from IANA language-subtag-registry file
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.