Module:Lang/doc: Difference between revisions

Content deleted Content added
No edit summary
m ce
Line 1:
This module isexists intendedprimarily to consolidateprovide 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 {{tlx|lang}} and the many {{tld|lang-??}} template processingtemplates into a single source and to useuses 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:
:*[[Module:Language/data/iana languages]] – from IANA [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry language-subtag-registry file]
:*[[Module:Language/data/ISO 639-3]] – from [http://www-01.sil.org/iso639-3/download.asp 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 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 <code>override</code> table can hold that language information.
 
The module eliminatesdoes thenot need forrequire the myriad {{tld|ISO 639 name ??}} templates, {{tlx|Language with name}}, {{tlx|Language with name and transliteration}}, and {{tlx|transl}}. It provides error checking and reporting to ensure that the html rendered is correct for browsers and screen readers.
 
ArticleArticles withthat have errors detected by this module are placed in:
:{{cl|lang and lang-xx template errors}} (mainspace only)
 
MOS on foreign words: