Difference between revisions of "Module:Lang/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Gonnym
(added {{Lua}})
blackwiki>Gonnym
(doc update)
Line 3: Line 3:
 
{{Lua|Module:Arguments|Module:No globals|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Language/name/data|Module:Lang/name to tag|Module:Unicode data|Module:Yesno}}
 
{{Lua|Module:Arguments|Module:No globals|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Language/name/data|Module:Lang/name to tag|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_templates|{{tld|lang-??}}}} (most), and {{tlx|transl}} templates into a single source and to use a clearly defined data set extracted from international standards.
+
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_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.
 
 
The module does not require 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.
 
  
 
Other templates that get language name support from this module are:
 
Other templates that get language name support from this module are:
:{{tlx|native name}}
+
* {{tlx|Native name}}
  
 
==Data set==
 
==Data set==
 
The data set is specified in [[Module:Language/name/data]] and its included data modules:
 
The data set is specified in [[Module:Language/name/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: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/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
+
** [[Module:Language/data/wp languages]] – sourcing for the data in this module is unknown
:;language script data
+
* language script data
::[[Module:Language/data/iana scripts]] – from IANA language-subtag-registry file
+
** [[Module:Language/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:Language/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:Language/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:Language/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:
:;override and other non-standard data
+
* override and other non-standard data
::[[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/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/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/name to tag]] – reversed language tag-and-name data so that the language name is the key and the language tag is the value
+
** [[Module:Lang/name to tag]] – reversed language tag-and-name data so that the language name is the key and the language tag is the value
  
 
==Error messages and categorization==
 
==Error messages and categorization==
 
Mainspace articles that have errors are placed in appropriate error categories:
 
Mainspace articles that have errors are placed in appropriate error categories:
:{{cl|lang and lang-xx template errors}}
+
* {{Category link with count|lang and lang-xx template errors}}
:{{cl|transl template errors}}
+
* {{Category link with count|transl template errors}}
  
 
Maintenance categories:
 
Maintenance categories:
:{{cl|Lang and lang-xx code promoted to ISO 639-1}}
+
* {{Category link with count|Lang and lang-xx code promoted to ISO 639-1}}
  
 
==See also==
 
==See also==
MOS on foreign words:
+
MoS on foreign words:
:{{slink|Wikipedia:Manual of Style/Text formatting#Foreign terms}}
+
* {{Section link|Wikipedia:Manual of Style/Text formatting#Foreign terms}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 18:15, 31 August 2020

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 {{lang-??}} (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:Language/name/data and its included data modules:

The data set also includes supplementary data modules:

Error messages and categorization

Mainspace articles that have errors are placed in appropriate error categories:

Maintenance categories:

See also

MoS on foreign words:

  • Script error: No such module "Section link".