Difference between revisions of "Module:Lang/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Gonnym
(doc update)
blackwiki>Gonnym
(→‎Data set: add testcases)
Line 28: Line 28:
 
** [[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
 +
 +
== Testcases ==
 +
* [[Module:ISO 639 name/testcases]] ([[Module talk:ISO 639 name/testcases|run]])
 +
* category_from_tag()
 +
** [[Module:Lang/testcases/ISO 639-1 category name]] ([[Module talk:Lang/testcases/ISO 639-1 category name|run]])
 +
** [[Module:Lang/testcases/ISO 639-2 category name]] ([[Module talk:Lang/testcases/ISO 639-2 category name|run]])
 +
** [[Module:Lang/testcases/ISO 639-3-1 category name]] (A-H) ([[Module talk:Lang/testcases/ISO 639-3-1 category name|run]])
 +
** [[Module:Lang/testcases/ISO 639-3-2 category from tag]] (I-N) ([[Module talk:Lang/testcases/ISO 639-3-2 category from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-3-3 category from tag]] (O-Z) ([[Module talk:Lang/testcases/ISO 639-3-3 category from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-5 category from tag]] ([[Module talk:Lang/testcases/ISO 639-5 category from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639 deprecated category from tag]] ([[Module talk:Lang/testcases/ISO 639 deprecated category from tag|run]])
 +
* name_from_tag()
 +
** [[Module:Lang/testcases/ISO 639-1 name from tag]] ([[Module talk:Lang/testcases/ISO 639-1 name from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-2 name from tag]] ([[Module talk:Lang/testcases/ISO 639-2 name from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-3-1 name from tag]] (A-H) ([[Module talk:Lang/testcases/ISO 639-3-1 name from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-3-2 name from tag]] (I-N) ([[Module talk:Lang/testcases/ISO 639-3-2 name from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-3-3 name from tag]] (O-Z) ([[Module talk:Lang/testcases/ISO 639-3-3 name from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639-5 name from tag]] ([[Module talk:Lang/testcases/ISO 639-5 name from tag|run]])
 +
** [[Module:Lang/testcases/ISO 639 deprecated name from tag]] ([[Module talk:Lang/testcases/ISO 639 deprecated name from tag|run]])
  
 
==Error messages and categorization==
 
==Error messages and categorization==

Revision as of 08:20, 21 September 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:

Testcases

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".