Module:Lang/doc: Difference between revisions

From The Goon Show Depository
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}}
{{High-use|no-percent=yes}}
{{Language templates}}
{{Language templates}}
{{Lua|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Lang/tag from name|Module:Unicode data|Module:Yesno|Module:Arguments}}
{{Lua|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Lang/tag from name|Module:Unicode data|Module:Yesno|Module:Arguments}}
Line 11: Line 11:
The data set is specified in [[Module:Lang/data]] and its included data modules:
The data set is specified in [[Module:Lang/data]] and its included data modules:
* language tag-and-name data
* language tag-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:Lang/data/iana languages]] – from IANA [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry language-subtag-registry file]
* language script data
* language script data
** [[Module:Language/data/iana scripts]] – from IANA language-subtag-registry file
** [[Module:Lang/data/iana scripts]] – from IANA language-subtag-registry file
* language region data
* language region data
** [[Module:Language/data/iana regions]] – from IANA language-subtag-registry file
** [[Module:Lang/data/iana regions]] – from IANA language-subtag-registry file
* language variant data
* language variant data
** [[Module:Language/data/iana variants]] – from IANA language-subtag-registry file
** [[Module:Lang/data/iana variants]] – from IANA language-subtag-registry file
* suppressed-script data
* suppressed-script data
** [[Module:Language/data/iana suppressed scripts]] – from IANA language-subtag-registry file
** [[Module:Lang/data/iana suppressed scripts]] – from IANA language-subtag-registry file


The data set also includes supplementary data modules:
The data set also includes supplementary data modules:
Line 49: Line 49:
==Tracking categories==
==Tracking categories==
* {{Category link with count|Lang and lang-xx template errors}}
* {{Category link with count|Lang and lang-xx template errors}}
* {{Category link with count|Transl template errors}}
* {{Category link with count|Transliteration template errors}}
* {{Category link with count|Lang and lang-xx code promoted to ISO 639-1}}
* {{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 codes}}
* {{Category link with count|Lang and lang-xx using deprecated ISO 639 codes}}
Line 61: Line 61:
[[Category:Language-related modules]]
[[Category:Language-related modules]]
[[Category:Modules that check for strip markers]]
[[Category:Modules that check for strip markers]]
}}</includeonly>
}}</includeonly>

Latest revision as of 12:27, 13 July 2024

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 {{Lang}}, the Lua error in Module:Template_link_general at line 144: attempt to concatenate local 'titlePart' (a nil value). (most), and {{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:

Data set

The data set is specified in Module:Lang/data and its included data modules:

The data set also includes supplementary data modules:

Testcases

Tracking categories

See also

MoS on foreign words: