Module:Lang/doc: Difference between revisions

Content deleted Content added
m ce;
fixed
Line 3:
{{Lua|Module:Arguments|Module:No globals|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Language/name/data|Module:Lang/tag from name|Module:Unicode data|Module:Yesno}}
 
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 was developed to consolidate processing for {{tlx|Lang}}, the {{cl|Lang-x_templatesx templates|{{tld|lang-??}}}} (most), and {{tlx|Transl}} templates into a single source and to use a clearly defined data set extracted from international standards. It provides error checking and reporting to ensure that the html rendered is correct for browsers and screen readers.
 
Other templates that get language name support from this module are:
Line 27:
** [[Module:Lang/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
** [[Module:Lang/ISO 639 synonyms]] – maps three character ISO 639-2, -2T, -3 codes to two character ISO 639-1 codes – from [https://www.loc.gov/standards/iso639-2/php/English_list.php Codes for the Representation of Names of Languages]
** [[Module:Lang/nametag tofrom tagname]] – reversed language tag-and-name data so that the language name is the key and the language tag is the value
 
== Testcases ==