Jump to content

Module:Lang/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 17:03, 19 November 2017 by Trappist the monk (talk | changes) (ce)

This is the documentation page for Module:Lang

This module exists primarily to provide correct html markup for non-English language text where that text is used in the English Wikipedia. It has a secondary purpose of providing correct visual rendering for this non-English text. The module consolidates processing for {{lang}} and the many {{lang-??}} templates into a single source and uses a clearly defined data set extracted from international standards.

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 supplementary 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 does not require 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.

Articles that have errors are placed in:

Category:lang and lang-xx template errors (mainspace only)

MOS on foreign words:

Wikipedia:Manual of Style/Text formatting#Foreign terms