Module:Lang/doc: Difference between revisions

Content deleted Content added
m "HTML"
 
(17 intermediate revisions by 10 users not shown)
Line 1:
{{High-use|no-percent=yes}}
{{Language templates}}
{{Lua|Module:Arguments|Module:No globalsLang/configuration|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Lang/tag from name|Module:Unicode data|Module:Yesno}}
{{High-use}}
{{Lua|Module:Arguments|Module:No globals|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Lang/tag from name|Module:Unicode data|Module:Yesno}}
 
This module exists primarily to provide correct htmlHTML 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|Langlang}}, the {{cltlx|Lang-x templates|{{tld|lang-??langx}}}} (most), and {{tlx|Transltransliteration}} 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 htmlHTML rendered is correct for browsers and screen readers.
 
Other templates that get language name support from this module are:
* {{tlx|Nativenative name}}
 
==Data set==
The data set is specified in [[Module:Lang/data]] and its included data modules:
* language tag-and-name data
** [[Module:LanguageLang/data/iana languages]] – from IANA [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry language-subtag-registry file]
* language script data
** [[Module:LanguageLang/data/iana scripts]] – from IANA language-subtag-registry file
* language region data
** [[Module:LanguageLang/data/iana regions]] – from IANA language-subtag-registry file
* language variant data
** [[Module:LanguageLang/data/iana variants]] – from IANA language-subtag-registry file
* suppressed-script data
** [[Module:LanguageLang/data/iana suppressed scripts]] – from IANA language-subtag-registry file
 
The data set also includes supplementary data modules:
Line 49:
==Tracking categories==
* {{Category link with count|Lang and lang-xx template errors}}
* {{Category link with count|TranslTransliteration template errors}}
* {{Category link with count|Lang and lang-xx code promoted to ISO 639-1}}
* {{Category link with count|Lang and lang-xx using deprecated ISO 639-1 codes}}
 
==See also==
Line 61:
[[Category:Language-related modules]]
[[Category:Modules that check for strip markers]]
 
}}</includeonly><noinclude>
[[Category:Module documentation pages]]
</noinclude>