வார்ப்புரு:Lang/doc
The purpose of this template is to indicate that a span of text belongs to a particular language. It often makes no visible changes to the text but can prompt [[உலாவி]] to use a more appropriate font or screen readers to use a particular kind of pronunciation and so on. See {{section link||Rationale}} for more information.
 
 == Syntax and usage ==
 
 {{in5}}{{tlx|lang|{{var|language tag}}|{{var|text}}}}
 
 The {{var|language tag}} should consist of an [[ஐ.எசு.ஓ 639]] language code (click [[ஐ.எசு.ஓ 639-1 குறியீடுகள் பட்டியல்|'''here''']] for list of most codes).  The template also supports properly formatted [[IETF language tag]]s using subtags that identify the language's script, region, and/or variant. The ISO 639 language code is a two- or three-letter abbreviation, in lowercase, of the language's name. French, for example, has the code &lt;code&gt;fr&lt;/code&gt;:
 
 * &lt;code&gt;&lt;nowiki&gt;She said: &quot;{{lang|fr|Je suis française.}}&quot;&lt;/nowiki&gt;&lt;/code&gt; → She said: &quot;{{lang|fr|Je suis française.}}&quot;
 
 Because all languages represented by two-letter codes in [[ஐ.எசு.ஓ 639-1]] can also be represented by their three-letter equivalents in [[ஐ.எசு.ஓ 639-2]] and above, it is recommended to use the shortest language tag possible that sufficiently describes the target language.&lt;ref&gt;[https://www.w3.org/International/articles/language-tags/index.en &quot;Language tags in HTML and XML&quot;] at [[உலகளாவிய வலைச் சேர்த்தியம்]]&lt;/ref&gt; So while French could be represented by ISO 639-2's &lt;code&gt;fra&lt;/code&gt; code, use the ISO 639-1 code &lt;code&gt;fr&lt;/code&gt; instead. Likewise, script, region, and variant information should be included only when they provide a necessary distinction. For an up-to-date list of available language, script, region, and variant codes, please refer to the [[Internet Assigned Numbers Authority|IANA]]'s [http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry language subtag registry].
 
 By default, this template will place articles into the relevant subcategory of {{category link|Articles containing non-English-language text}}. To suppress this – e.g. when using {{tlf|lang}} within a [[Help:Link#Wikilinks|wikilink]] or the ''title'' parameter of a citation – add the parameter {{para|cat|no}}.
 
 === Formatting ===
 ==== Automatic italics ====
 {{tld|lang}} automatically applies italic styling &lt;span style=&quot;font-weight: normal;&quot;&gt;when the text in &lt;code&gt;&lt;nowiki&gt;{{{2}}}&lt;/nowiki&gt;&lt;/code&gt; is written entirely in the &lt;code&gt;Latn&lt;/code&gt; script (the Latin alphabet and its extensions), either when that is the default encoding for the language or when it is triggered by a &lt;code&gt;{{var|xx}}-Latn&lt;/code&gt; language code{{colon}}&lt;/span&gt;
 * &lt;code&gt;&lt;nowiki&gt;{{lang|fr|Je suis française.}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fr|Je suis française.}}
 * &lt;code&gt;&lt;nowiki&gt;''{{lang|fr|Je suis française.}}''&lt;/nowiki&gt;&lt;/code&gt; → ''{{lang|fr|Je suis française.}}'' – external markup is ignored
 * &lt;code&gt;&lt;nowiki&gt;{{lang|he-Latn|la'az}} ({{lang|he|לעז}})&lt;/nowiki&gt;&lt;/code&gt; → {{lang|he-Latn|la'az}} ({{lang|he|לעז}})
 * &lt;code&gt;&lt;nowiki&gt;''{{lang|he-Latn|la'az}}''&lt;/nowiki&gt; ({{!mxt|&lt;nowiki&gt;''{{lang|he|לעז}}''&lt;/nowiki&gt;}})&lt;/code&gt; → ''{{lang|he-Latn|la'az}}'' ({{!mxt|''{{lang|he|לעז}}''}}) – external markup is ignored around the &lt;code&gt;he-Latn&lt;/code&gt; text, but will incorrectly italicize the Hebrew-character material.
 
 When &lt;code&gt;Latn&lt;/code&gt; script should not be italicized, there are multiple approaches{{colon}}
 {{para|italic|no}} &lt;span style=&quot;font-weight: normal;&quot;&gt;– renders &lt;code&gt;&lt;nowiki&gt;{{{2}}}&lt;/nowiki&gt;&lt;/code&gt; in upright font; italic markup around the template is ignored; italic markup inside the template causes an error message{{colon}}&lt;/span&gt;
 * &lt;code&gt;&lt;nowiki&gt;{{lang|fr|Je suis française.|italic=no}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fr|Je suis française.|italic=no}}
 * &lt;code&gt;&lt;nowiki&gt;''{{lang|fr|Je suis française.|italic=no}}''&lt;/nowiki&gt;&lt;/code&gt; → ''{{lang|fr|Je suis française.|italic=no}}''
 * &lt;code&gt;&lt;nowiki&gt;''{{lang|fr|Je suis ''française''.|italic=no}}''&lt;/nowiki&gt;&lt;/code&gt; → ''{{lang|fr|Je suis ''française''.|italic=no|cat=no}}'' – italic markup in conflict with {{para|italic|no}}
 
 {{para|italic|unset}} &lt;span style=&quot;font-weight: normal;&quot;&gt;– disables template-provided styling; &lt;code&gt;&lt;nowiki&gt;{{{2}}}&lt;/nowiki&gt;&lt;/code&gt; is styled according to external or internal wiki markup{{colon}}&lt;/span&gt;
 * &lt;code&gt;&lt;nowiki&gt;{{lang|fr|Je suis française.|italic=unset}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fr|Je suis française.|italic=unset}}
 * &lt;code&gt;&lt;nowiki&gt;''{{lang|fr|Je suis française.|italic=unset}}''&lt;/nowiki&gt;&lt;/code&gt; → ''{{lang|fr|Je suis française.|italic=unset}}''
 * &lt;code&gt;&lt;nowiki&gt;{{lang|fr|''Je suis'' English.|italic=unset}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fr|''Je suis'' English.|italic=unset}}
 
 {{tlx|noitalic}} &lt;span style=&quot;font-weight: normal;&quot;&gt;can also be used{{colon}}&lt;/span&gt;
 * &lt;code&gt;&lt;nowiki&gt;{{lang|fr|Je suis {{noitalic|English}}.}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fr|Je suis {{noitalic|English}}.}}
 {{hatnote|{{crossreference|See table &quot;[[#italic parameter|lang {{!}}italic{{=}} parameter operation]]&quot;.}}}}
 
 ==== Language-specific templates ====
 There are language-specific versions of this template, such as {{tl|lang-fr}} and {{tl|lang-ru}}, which are intended to be used the first time a language appears in an article. These templates will print the language's name and, when appropriate, italicize their content:
 
 * &lt;code&gt;&lt;nowiki&gt;A '''kremlin''' ({{lang-ru|кремль}}, 'castle') is a major fortified central complex ...&lt;/nowiki&gt;&lt;/code&gt; → A '''kremlin''' ({{lang-ru|кремль}}, 'castle') is a major fortified central complex ...
 
 While {{tnull|lang-{{var|xx}}}} templates output text in italics for languages with Latin-based scripts, if plain text is required, such as for proper names, {{para|italic|no}} or {{tlx|noitalic}} may be used:
 
 * &lt;code&gt;&lt;nowiki&gt;the border town of Ventimiglia ({{lang-fr|Vintimille}})&lt;/nowiki&gt;&lt;/code&gt; → the border town of Ventimiglia ({{lang-fr|Vintimille}})
 * &lt;code&gt;&lt;nowiki&gt;the border town of Ventimiglia ({{lang-fr|italic=no|Vintimille}})&lt;/nowiki&gt;&lt;/code&gt; → the border town of Ventimiglia ({{lang-fr|italic=no|Vintimille}})
 * &lt;code&gt;&lt;nowiki&gt;the border town of Ventimiglia ({{lang-fr|{{noitalic|Vintimille}}}})&lt;/nowiki&gt;&lt;/code&gt; → the border town of Ventimiglia ({{lang-fr|{{noitalic|Vintimille}}}})
 
 When formatting foreign-language text to match style guidelines, it is best to exclude the styling markup from the template, so that any extraneous markup which is not from the foreign language does not receive incorrect metadata for that language. This includes: English-language quotation marks around titles of works in languages that use other quotation character glyphs; italicization of titles in languages which do not use that convention; and emphasis that is not found (in one style or another) in the original foreign text; among other cases. If in doubt, put such markup outside the template when possible.
 
 {{See also|Wikipedia:Manual of Style/Text formatting#Foreign terms}}
 
 === Right-to-left languages ===
 
 To embed a string of right-to-left text (such as [[அரபு மொழி]] or [[எபிரேயம்|Hebrew]]) within the usual left-to-right context, {{para|rtl|yes}} should be added to correctly communicate writing direction. To markup a whole paragraph of right-to-left text, {{tl|rtl-para}} should be used instead.
 
 Any of these approaches will wrap the text in a container with the &lt;code&gt;dir=&quot;rtl&quot;&lt;/code&gt; attribute. In order to ensure correct rendering in browsers that do not fully support [[HTML5]] [[bidirectional text|bidirectional isolation]], a [[left-to-right mark]] is also added to the end of the text (see the [http://www.w3.org/International/articles/inline-bidi-markup W3C] for details).
 
 Note that text direction does not need to be specified when using the {{tnull|lang-{{var|xx}}}} templates, as this is implied by the template's language.
 
 == Parameters ==
 {{#lst:Template:Lang-x/doc/parameters|lang_parameters}}
 ===the function selector parameter===
 {{tlx|lang}} uses the Lua function &lt;code&gt;lang()&lt;/code&gt; [[Module:Lang]].  That module also supports all of the {{tnull|lang-??}} templates using the Lua functions &lt;code&gt;lang_xx_inherit()&lt;/code&gt; and &lt;code&gt;lang_xx_italic()&lt;/code&gt;.  The module has other functions that may be useful.  The function selector parameter {{para|fn}} tells module:lang which function to execute.  The available functions are:
 *&lt;code&gt;is_ietf_tag&lt;/code&gt; – returns &lt;code&gt;true&lt;/code&gt; if the provided [[IETF language tag]] is valid; nil else
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=is_ietf_tag|nv}}&lt;/nowiki&gt;&lt;/code&gt; →{{lang|fn=is_ietf_tag|nv}}←
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=is_ietf_tag|xx}}&lt;/nowiki&gt;&lt;/code&gt; →{{lang|fn=is_ietf_tag|xx}}←
 *&lt;code&gt;is_lang_name&lt;/code&gt; – returns &lt;code&gt;true&lt;/code&gt; if the provided language name is valid; nil else
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=is_lang_name|navajo}}&lt;/nowiki&gt;&lt;/code&gt; →{{lang|fn=is_lang_name|navajo}}←
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=is_lang_name|xxxxx}}&lt;/nowiki&gt;&lt;/code&gt; →{{lang|fn=is_lang_name|xxxxx}}←
 *&lt;code&gt;lang&lt;/code&gt; – the function that renders {{tlx|lang}}; listed here for completeness, this particular usage is more-or-less pointless
 *&lt;code&gt;lang_xx_inherit&lt;/code&gt; – the function that renders {{tnull|lang-??}} template where the text is not italicized; can be used when a {{tnull|lang-??}} template, for example {{tlx|lang-aao}}, does not exist for a particular language: 
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=lang_xx_inherit|code=aao|Algerian Saharan Arabic text}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fn=lang_xx_inherit|code=aao|Algerian Saharan Arabic text}}
 *&lt;code&gt;lang_xx_italic&lt;/code&gt; – the function that renders {{tnull|lang-??}} template where the text is italicized; can be used when a {{tnull|lang-??}} template, for example {{tlx|lang-svc}}, does not exist for a particular language: 
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=lang_xx_italic|code=svc|Vincentian Creole English text}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fn=lang_xx_italic|code=svc|Vincentian Creole English text}}
 *&lt;code&gt;name_from_tag&lt;/code&gt; – returns the language name associated with the provided IETF language tag:
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=name_from_tag|apa}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fn=name_from_tag|apa}}
 *&lt;code&gt;tag_from_name&lt;/code&gt; – returns the ISO 639 language code (sometimes IETF language tag) associated with the provided language name:
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=tag_from_name|havasupai}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fn=tag_from_name|havasupai}}
 *&lt;code&gt;transl&lt;/code&gt; – the function that renders {{tlx|transl}}; listed here for completeness, this particular usage is more-or-less pointless
 **&lt;code&gt;&lt;nowiki&gt;{{lang|fn=transl|ar|DIN|al-Ḫawārizmī}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|fn=transl|ar|DIN|al-Ḫawārizmī}}
 
 == Indicating writing script ==
 
 If necessary, an [[List of ISO 15924 codes|ISO 15924]] script code can be appended to a language code to indicate the use of a specific script. For instance, [[தாஜிக் மொழி|Tajik]] (&lt;code&gt;tg&lt;/code&gt;) is a language which can be found written in [[Arabic script|Arabic]] (&lt;code&gt;Arab&lt;/code&gt;), [[இலத்தீன் எழுத்துகள்|Latin]] (&lt;code&gt;Latn&lt;/code&gt;), and [[சிரில்லிக் எழுத்துக்கள்|Cyrillic]] (&lt;code&gt;Cyrl&lt;/code&gt;) scripts, making it necessary to always specify which script is in use. In such a case, taking care to preserve the script code's capitalization, we could end up with the following code (language tags in bold):
 
 * &lt;code&gt;&lt;nowiki&gt;Tajik ({{lang|&lt;/nowiki&gt;'''tg-Arab'''&lt;nowiki&gt;|تاجیکی}}, ''{{lang|&lt;/nowiki&gt;'''tg-Latn'''&lt;nowiki&gt;|toçikī}}'', {{lang|&lt;/nowiki&gt;'''tg-Cyrl'''&lt;nowiki&gt;|тоҷикӣ}})&lt;/nowiki&gt;&lt;/code&gt;
 : Tajik ({{lang|tg-Arab|تاجیکی}}, ''{{lang|tg-Latn|toçikī}}'', {{lang|tg-Cyrl|тоҷикӣ}})
 
 Many languages, however, are so commonly written in one particular script that specifying the script is unnecessary. Russian, for instance, is almost exclusively written in Cyrillic, so there is no need to specify &lt;code&gt;ru-Cyrl&lt;/code&gt;, just as &lt;code&gt;en-Latn&lt;/code&gt; would be unnecessary for English. The [http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry subtag registry] contains up-to-date information on which languages have common script codes that should be &quot;suppressed&quot;.
 
 === Transliteration ===
 
 To mark a language which has been [[எழுத்துப்பெயர்ப்பு|transliterated]] from one script into another, append the new script's code to the code of the original language. So if transliterating from Russian Cyrillic to a Latin script, the language tag on the transliteration would be &lt;code&gt;ru-Latn&lt;/code&gt;. If the transliteration scheme is known, and listed as a &quot;variant&quot; in the [http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry subtag registry], it can be appended after any script and region codes. For example, Chinese transliterated into a Latin script using the [[பின்யின்]] system would be &lt;code&gt;zh-Latn-pinyin&lt;/code&gt;. As a convenience for transliterating to Latin scripts, and to work around browser styling issues with some language and script combinations, {{tl|transl}} may be used in place of {{tlf|lang}}:
 
 * &lt;code&gt;&lt;nowiki&gt;Moscow ({{lang|ru|Москва}}, {{transl|ru|Moskva}})&lt;/nowiki&gt;&lt;/code&gt; → Moscow ({{lang|ru|Москва}}, {{transl|ru|Moskva}})
 
 To specify a transliteration scheme, such as the [[ISO 9|ISO transliteration standard for Cyrillic]], use {{tlc|transl|ru|ISO|Moskva}}.
 
 === Undetermined language ===
 
 The {{tlf|lang}} template is not only used to specify the language of foreign words, but can also be used to specify a single symbol or character in a script, unrelated to any specific language. Many times the character or symbol is used in several languages, but when the article refers to the [[வரிவடிவம்]] itself, the [[ஐ.எசு.ஓ 639-2]] language code &lt;code&gt;und&lt;/code&gt;, for Undetermined language, should be used:
 
 * &lt;code&gt;&lt;nowiki&gt;The {{lang|und-Hani|字}} Han character has 6 strokes.&lt;/nowiki&gt;&lt;/code&gt;
 : The {{lang|und-Hani|字}} Han character has 6 strokes.
 
 Han characters are used in Chinese, Japanese, sometimes Korean, and formerly Vietnamese, and in this case the character is not used for any specific language. Note that the script code used is &lt;code&gt;Hani&lt;/code&gt;, which specifies generic Han characters (Hanzi, Kanji, Hanja).
 
 Compare {{tl|script}} usage:
 
 * &lt;code&gt;&lt;nowiki&gt;The {{script|Hani|字}} Han character has 6 strokes.&lt;/nowiki&gt;&lt;/code&gt;
 : The {{script|Hani|字}} Han character has 6 strokes.
 
 === Languages with no code ===
 
 Use the code &quot;mis&quot; (Miscellaneous) for any language not listed in ISO-639.
 
 == Indicating regional variant ==
 
 When it is necessary to indicate region-specific language, an [[ஐ.எசு.ஓ 3166-1 ஆல்ஃபா-2]] country code, or [[UN M49]] region code, should be added to the language tag, taking care to preserve capitalization. For example, Portuguese (&lt;code&gt;pt&lt;/code&gt;) as used in Brazil (&lt;code&gt;BR&lt;/code&gt;) could be represented as &lt;code&gt;pt-BR&lt;/code&gt;, and Spanish as used in Latin America as &lt;code&gt;es-419&lt;/code&gt;.
 
 Additionally, language, script, and region codes can all appear in the same tag. For instance, the code &lt;code&gt;zh-Hant-TW&lt;/code&gt; should be used for Chinese text written with [[Traditional Chinese characters|Traditional Han characters]], containing words or expressions specific to [[தைவான்]]:
 
 * &lt;code&gt;&lt;nowiki&gt;Taiwan ({{lang|zh-Hant-TW|臺灣}}, {{transl|zh|Táiwān}})&lt;/nowiki&gt;&lt;/code&gt;
 : Taiwan ({{lang|zh-Hant-TW|臺灣}}, {{transl|zh|Táiwān}})
 
 == Private-use language tags ==
 This template supports various private-use [[IETF language tag]]s.  Private-use tags contain the &lt;code&gt;-x-&lt;/code&gt; singleton and are used by the template to identify languages that are different, for one reason or another, from the base language identified by the ISO 639 language tag.
 {{#invoke:Lang/documentor tool|private_tags}}
 
 == Links ==
 
 If the {{tl|lang}} template will have to be combined with links one might be tempted to move the {{tl|lang}} template into the link so that it would only frame the link's text label, not the syntax elements of the links or other stylistic elements of some types of links. However, this does not work. The {{tl|lang}} will have to wrap the entire link, regardless if it is an internal or external link, or a link provided through a {{tl|ill}} interwiki link template:
 
 Works:
 * &lt;code&gt;&lt;nowiki&gt;{{lang|en|[[Book of hours]]}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|en|[[Book of hours]]}}
 * &lt;code&gt;&lt;nowiki&gt;{{lang|de|[[Book of hours|Stundenbuch]]}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|de|[[Book of hours|Stundenbuch]]}}
 * &lt;code&gt;&lt;nowiki&gt;{{lang|he-LA|{{ill|Machsor Lipsiae|de}}}}&lt;/nowiki&gt;&lt;/code&gt; → {{lang|he-LA|{{ill|Machsor Lipsiae|de}}}}
 
 Does not work:
 * &lt;code&gt;&lt;nowiki&gt;[[{{lang|en|Book of hours}}]]&lt;/nowiki&gt;&lt;/code&gt; → [[{{lang|en|Book of hours}}]] (never works)
 * &lt;code&gt;&lt;nowiki&gt;[[Book of hours|{{lang|de|Stundenbuch}}]]&lt;/nowiki&gt;&lt;/code&gt; → [[Book of hours|{{lang|de|Stundenbuch}}]] (does not work in article space, works on talk and some other types of pages)
 * &lt;code&gt;&lt;nowiki&gt;{{ill|Machsor Lipsiae|de|lt={{lang|he-LA|Machsor Lipsiae}}}}&lt;/nowiki&gt;&lt;/code&gt; → {{ill|Machsor Lipsiae|de|lt={{lang|he-LA|Machsor Lipsiae}}}} (does not work in article space, works on talk and some other types of pages)
 
 An alternative is to use the {{para|language}}, {{para|italic}} and {{para|direction}} parameters of the {{tl|ill}} template:
 
 * &lt;code&gt;&lt;nowiki&gt;{{ill|link=Machsor Lipsiae|prefix=de|language=he-LA}}&lt;/nowiki&gt;&lt;/code&gt; → {{ill|link=Machsor Lipsiae|prefix=de|language=he-LA}}
 
 == Rationale ==
 
 {{section link|Wikipedia:Manual of Style/Text formatting|Foreign terms}} requires the use of {{tl|lang}} instead of manual &lt;nowiki&gt;''italics''&lt;/nowiki&gt;. This is preferred for the following reasons:
 
 * [[உலகளாவிய வலை|Web]] [[உலாவி|browsers]] can use the information in such [[பகுப்பு:பன்மொழி துணை வார்ப்புருக்கள்|multilingual support templates]] to choose an appropriate font.
 ** This is great for [[CJK characters|CJK]] where a character can be given its language-specific shape but will fall back to another form if no appropriate font is found or if the preferred font lacks that character, for example because the language does not make use of that character: see {{section link|Han unification|Examples of language-dependent glyphs}} and [[User:Wikipeditor/CJK|these comparison tables with a screenshot]].
 * For [[web accessibility|accessibility]] – [[screen reader]]s need language info to speak text in the correct language – and to satisfy [[Wikipedia:Accessibility#Text|Wikipedia accessibility guidelines]].&lt;ref&gt;{{cite web|url=https://developer.yahoo.com/blogs/ydn/yahoo-search-results-now-natural-language-support-7318.html|title=Yahoo! search results now with natural language support|date=13 Mar 2008|first= Chris |last= Heilmann|work=[[யாகூ!]] Blog|accessdate=28 Feb 2015|archiveurl=https://web.archive.org/web/20090125024422/http://developer.yahoo.net/blog/archives/2008/03/yahoo_search_re.html|archivedate=25 Jan 2009|url-status=dead}}&lt;/ref&gt;
 * For [[சொல் திருத்தி]]s and grammar checkers, to match the text to the dictionary and syntax of the correct language.
 * To help browsers choose appropriate [[மேற்கோட்குறி]]s,&lt;ref name=&quot;qa-lang-why&quot;&gt;{{cite web|url=http://www.w3.org/International/questions/qa-lang-why|title=Why use the language attribute?|date=18 November 2014|first= Richard |last= Ishida | publisher=World Wide Web Consortium | issue=Previously by Deborah Cawkwell, BBC World Service|accessdate=1 Mar 2015}}&lt;/ref&gt; and make decisions about [[இடைக்கோடு இடல்|hyphenation]],&lt;ref name=&quot;qa-lang-why&quot;/&gt; [[orthographic ligature|ligature]]s,&lt;ref&gt;{{cite web|url=http://www.w3.org/TR/css3-fonts/#font-variant-ligatures-prop|title=6.4 Ligatures: the font-variant-ligatures property|work=CSS Fonts Module Level 3 W3C Candidate Recommendation 3 October 2013}}&lt;/ref&gt; and spacing.&lt;ref name=&quot;qa-lang-why&quot;/&gt;
 * Users can apply styles to languages in their [[style sheet (web development)|style sheet]]s (useful for editors).
 * [[வலை தேடு பொறி|Search engine]]s can use this information when [[search engine indexing|indexing]] text.
 * Facilitates better data-scraping, parsing and re-use.
 * Useful for application developers who re-publish Wikipedia (also see {{section link|Wikipedia:Manual of Style/Accessibility|Other languages}}).
 * Useful for research or compiling statistics about language use in Wikipedia.
 
 == Applying styles ==
 
 Registered users can apply custom [[விழுத்தொடர் பாணித் தாள்கள்|CSS]] styles to articles by placing style declarations in their user style sheet. The user style sheet can be created at [[Special:Mypage/common.css]]. For more information, see [[Help:User style]]. The following examples should work in most [[List of web browsers|modern browsers]].
 
 To apply a specific font to all text marked as Russian of any script or region:
 
 &lt;syntaxhighlight lang=&quot;css&quot;&gt;
 [lang|=ru] { font-family: fonteskaya; }
 /*   or   */
 :lang(ru) { font-family: fonteskaya; }
 &lt;/syntaxhighlight&gt;
 
 To apply a specific font to text marked simply as Russian:
 
 &lt;syntaxhighlight lang=&quot;css&quot;&gt;
 [lang=ru] { font-family: fonteskaya; }
 &lt;/syntaxhighlight&gt;
 
 To apply a color to all text marked with any language:
 
 &lt;syntaxhighlight lang=&quot;css&quot;&gt;
 [lang] { color: green; }
 &lt;/syntaxhighlight&gt;
 
 If a font name contains characters besides basic Latin letters or hyphens, it is a good idea to enclose it in quotation marks because some such characters have special meanings (the most common case needing quotation marks is a multi-word font name with space characters). Quotation marks are also required for font families containing generic-family keywords ('inherit', 'serif', 'sans-serif', 'monospace', 'fantasy', and 'cursive'). See the [http://www.w3.org/TR/CSS21/fonts.html#font-family-prop W3C] for more details.
 
 You can combine this with font imports in your user stylesheet, for example, to show all German text in [[Fraktur]] and all Urdu in [[Noto fonts|Noto]] [[நஸ்தலீகு வரிவடிவம்|Nastaliq]] Urdu Regular:
 
 &lt;syntaxhighlight lang=&quot;css&quot;&gt;
 @import url(https://fonts.googleapis.com/css?family=UnifrakturMaguntia);
 @import url(http://fonts.googleapis.com/earlyaccess/notonastaliqurdudraft.css);
 
 :lang(de) {
    font-family: UnifrakturMaguntia;
    font-style: normal;
    font-weight: normal;
 }
 
 :lang(ur) {
     font-family: &quot;Noto Nastaliq Urdu Regular&quot;, &quot;Noto Nastaliq Urdu&quot;;
 }
 
 &lt;/syntaxhighlight&gt;
 
 then the following wikitext will look like the image below:
 
 &lt;pre&gt;
 Victor jagt zwölf Boxkämpfer quer über den Sylter Deich
 
 {{lang|de-Latf|Victor jagt zwölf Boxkämpfer quer über den Sylter Deich}}
 
 ٹھنڈ میں، ایک قحط زدہ گاؤں سے گزرتے وقت ایک چڑچڑے، بااثر و فارغ شخص کو بعض جل پری نما اژدہے نظر آئے۔
 
 {{lang|ur|ٹھنڈ میں، ایک قحط زدہ گاؤں سے گزرتے وقت ایک چڑچڑے، بااثر و فارغ شخص کو بعض جل پری نما اژدہے نظر آئے۔}}
 &lt;/pre&gt;
 
 {{Wide image|Pangrams in DE and UR in Arial, UnifrakturMaguntia and Noto Nastaliq Urdu.png|1000px}}
 
 == Tracking categories ==
 * {{Category link with count|Lang and lang-xx 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 codes}}
 
 == TemplateData ==
 
 {{TemplateData header}}
 &lt;templatedata&gt;
 {
 	&quot;description&quot;: &quot;Indicate that a given span of text belongs to a particular language. Allows browsers to correctly present and pronounce foreign languages.&quot;,
 	&quot;params&quot;: {
 		&quot;1&quot;: {
 			&quot;label&quot;: &quot;Language tag&quot;,
 			&quot;description&quot;: &quot;A language tag, or an ISO 639 language code.&quot;,
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;required&quot;: true,
 			&quot;example&quot;: &quot;fr&quot;,
 			&quot;aliases&quot;: [
 				&quot;code&quot;
 			]
 		},
 		&quot;2&quot;: {
 			&quot;label&quot;: &quot;Text&quot;,
 			&quot;description&quot;: &quot;The text belonging to the language specified.&quot;,
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;required&quot;: true,
 			&quot;example&quot;: &quot;Je suis française.&quot;,
 			&quot;aliases&quot;: [
 				&quot;text&quot;
 			]
 		},
 		&quot;rtl&quot;: {
 			&quot;label&quot;: &quot;Right to left&quot;,
 			&quot;description&quot;: &quot;Indicates that the language should be displayed from right to left.&quot;,
 			&quot;example&quot;: &quot;yes&quot;,
 			&quot;type&quot;: &quot;string&quot;,
 			&quot;default&quot;: &quot;no&quot;
 		},
 		&quot;italic&quot;: {
 			&quot;aliases&quot;: [
 				&quot;italics&quot;,
 				&quot;i&quot;
 			],
 			&quot;label&quot;: &quot;Italicize&quot;,
 			&quot;description&quot;: &quot;Italicizes the text&quot;,
 			&quot;default&quot;: &quot;yes&quot;,
 			&quot;example&quot;: &quot;no&quot;,
 			&quot;type&quot;: &quot;boolean&quot;
 		},
 		&quot;size&quot;: {
 			&quot;label&quot;: &quot;Font-size&quot;,
 			&quot;description&quot;: &quot;sets font-size&quot;,
 			&quot;example&quot;: &quot;120%, 1.2em&quot;
 		},
 		&quot;cat&quot;: {},
 		&quot;nocat&quot;: {}
 	},
 	&quot;format&quot;: &quot;inline&quot;
 }
 &lt;/templatedata&gt;
 
 == See also ==
 * {{tl|Lang-x}}
 * {{tl|IPA}}
 * {{tl|Title language}}
 * [[பகுப்பு:பன்மொழி துணை வார்ப்புருக்கள்]]
 * [[Lists of ISO 639 codes]] (language codes)
 ** {{tl|ISO 639 name}}
 * [[List of ISO 15924 codes]] (script codes)
 * [[List of ISO romanizations|List of ISO transliterations]] (transliteration codes)
 * {{tl|cleanup lang}} (for articles which should use this template, but do not yet)
 * {{tl|transl}} (for romanisation of languages not natively written in the Latin alphabet)
 * {{tl|script}} (for specific characters)
 * {{tl|wikt-lang}} (to simultaneously tag text as a language and link to Wiktionary)
 * {{tl|in lang}} (for visually marking external links to foreign-language content)
 * {{tl|interlanguage link}}
 
 == References ==
 {{reflist}}
 
 == External links ==
 * [[உலகளாவிய வலைச் சேர்த்தியம்|W3C]]
 ** [http://www.w3.org/International/articles/language-tags/Overview.en.php Language tags in HTML and XML] – Overview
 ** [http://www.w3.org/TR/i18n-html-tech-lang/ Authoring HTML: Language declarations] – Latest W3C Working Draft
 ** [http://www.w3.org/International/articles/bcp47/ Understanding the New Language Tags]
 ** [http://www.w3.org/International/questions/qa-css-lang FAQ: Styling using the lang attribute]
 * [[Internet Assigned Numbers Authority|IANA]]
 ** [http://www.iana.org/assignments/language-subtag-registry IANA Language Subtag Registry]
 ** [http://www.rfc-editor.org/rfc/rfc4646.txt Tags for Identifying Languages] ({{IETF RFC|4646}})
 ** [http://www.rfc-editor.org/rfc/rfc4647.txt Matching of Language Tags] ({{IETF RFC|4647}})
 ** [http://www.iana.org/assignments/language-tags Language tags] (obsolete per {{IETF RFC|4646}})
 * [[பயர் பாக்சு]]
 ** [https://bugzilla.mozilla.org/show_bug.cgi?id=192636 Bug with script selection]
 
 &lt;includeonly&gt;{{Sandbox other||
 [[பகுப்பு:பன்மொழி துணை வார்ப்புருக்கள்]]
 [[Category:Templates that add a tracking category]]
 [[Category:Language tag handling templates]]