<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://isekai.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ALang%2Fdoc</id>
	<title>Module:Lang/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://isekai.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ALang%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://isekai.wiki/index.php?title=Module:Lang/doc&amp;action=history"/>
	<updated>2026-05-16T01:32:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://isekai.wiki/index.php?title=Module:Lang/doc&amp;diff=6481&amp;oldid=prev</id>
		<title>FaeriMagic: Created page with &quot;{{Lua|Module:Arguments|Module:Lang/configuration|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 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}}, {{tlx|langx}},...&quot;</title>
		<link rel="alternate" type="text/html" href="https://isekai.wiki/index.php?title=Module:Lang/doc&amp;diff=6481&amp;oldid=prev"/>
		<updated>2025-07-31T18:21:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Lua|Module:Arguments|Module:Lang/configuration|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 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}}, {{tlx|langx}},...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Lua|Module:Arguments|Module:Lang/configuration|Module:Lang/data|Module:Lang/ISO 639 synonyms|Module:Lang/tag from name|Module:Unicode data|Module:Yesno}}&lt;br /&gt;
&lt;br /&gt;
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}}, {{tlx|langx}}, and {{tlx|transliteration}} 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.&lt;br /&gt;
&lt;br /&gt;
Other templates that get language name support from this module are:&lt;br /&gt;
* {{tlx|native name}}&lt;br /&gt;
&lt;br /&gt;
==Data set==&lt;br /&gt;
The data set is specified in [[Module:Lang/data]] and its included data modules:&lt;br /&gt;
* language tag-and-name data&lt;br /&gt;
** [[Module:Lang/data/iana languages]] – from IANA [https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry language-subtag-registry file]&lt;br /&gt;
* language script data&lt;br /&gt;
** [[Module:Lang/data/iana scripts]] – from IANA language-subtag-registry file&lt;br /&gt;
* language region data&lt;br /&gt;
** [[Module:Lang/data/iana regions]] – from IANA language-subtag-registry file&lt;br /&gt;
* language variant data&lt;br /&gt;
** [[Module:Lang/data/iana variants]] – from IANA language-subtag-registry file&lt;br /&gt;
* suppressed-script data&lt;br /&gt;
** [[Module:Lang/data/iana suppressed scripts]] – from IANA language-subtag-registry file&lt;br /&gt;
&lt;br /&gt;
The data set also includes supplementary data modules:&lt;br /&gt;
* override and other non-standard data&lt;br /&gt;
** [[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]&lt;br /&gt;
** [[Module:Lang/tag from name]] – reversed language tag-and-name data so that the language name is the key and the language tag is the value&lt;br /&gt;
&lt;br /&gt;
== Testcases ==&lt;br /&gt;
* [[Module:Lang/testcases]] ([[Module talk:Lang/testcases|run]])&lt;br /&gt;
* category_from_tag()&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-1 category from tag]] ([[Module talk:Lang/testcases/ISO 639-1 category from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-1 category from tag]] (A–H) ([[Module talk:Lang/testcases/ISO 639-3-1 category from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-2 category from tag]] (I–N) ([[Module talk:Lang/testcases/ISO 639-3-2 category from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-3 category from tag]] (O–Z) ([[Module talk:Lang/testcases/ISO 639-3-3 category from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639 deprecated and override category from tag]] ([[Module talk:Lang/testcases/ISO 639 deprecated and override category from tag|run]])&lt;br /&gt;
* name_from_tag()&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-1 name from tag]] ([[Module talk:Lang/testcases/ISO 639-1 name from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-1 name from tag]] (A–H) ([[Module talk:Lang/testcases/ISO 639-3-1 name from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-2 name from tag]] (I–N) ([[Module talk:Lang/testcases/ISO 639-3-2 name from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-3 name from tag]] (O–Z) ([[Module talk:Lang/testcases/ISO 639-3-3 name from tag|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639 deprecated and override name from tag]] ([[Module talk:Lang/testcases/ISO 639 deprecated and override name from tag|run]])&lt;br /&gt;
* tag_from_name()&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-1 tag from name]] ([[Module talk:Lang/testcases/ISO 639-1 tag from name|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-1 tag from name]] (A–H) ([[Module talk:Lang/testcases/ISO 639-3-1 tag from name|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-2 tag from name]] (I–N) ([[Module talk:Lang/testcases/ISO 639-3-2 tag from name|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639-3-3 tag from name]] (O–Z) ([[Module talk:Lang/testcases/ISO 639-3-3 tag from name|run]])&lt;br /&gt;
** [[Module:Lang/testcases/ISO 639 deprecated and override tag from name]] ([[Module talk:Lang/testcases/ISO 639 deprecated and override tag from name|run]])&lt;br /&gt;
&lt;br /&gt;
==Tracking categories==&lt;br /&gt;
* {{Category link with count|Lang and lang-xx template errors}}&lt;br /&gt;
* {{Category link with count|Transliteration template errors}}&lt;br /&gt;
* {{Category link with count|Lang and lang-xx code promoted to ISO 639-1}}&lt;br /&gt;
* {{Category link with count|Lang and lang-xx using deprecated ISO 639 codes}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
MoS on foreign words:&lt;br /&gt;
* {{Section link|Wikipedia:Manual of Style/Text formatting#Foreign terms}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Language-related modules]]&lt;br /&gt;
[[Category:Modules that check for strip markers]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FaeriMagic</name></author>
	</entry>
</feed>