<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://informatiestandaarden.test-nictiz.nl/index.php?action=history&amp;feed=atom&amp;title=Sjabloon%3ALang%2Fdoc</id>
	<title>Sjabloon:Lang/doc - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://informatiestandaarden.test-nictiz.nl/index.php?action=history&amp;feed=atom&amp;title=Sjabloon%3ALang%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Lang/doc&amp;action=history"/>
	<updated>2026-04-28T13:23:31Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Lang/doc&amp;diff=2083&amp;oldid=prev</id>
		<title>Ahenket: Nieuwe pagina aangemaakt met &#039;{{documentation subpage}}  The purpose of this template is to indicate that a given span of text belongs to a particular language (see language code). It often ...&#039;</title>
		<link rel="alternate" type="text/html" href="https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Lang/doc&amp;diff=2083&amp;oldid=prev"/>
		<updated>2013-07-18T07:51:30Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;{{documentation subpage}}  The purpose of this template is to indicate that a given span of text belongs to a particular language (see &lt;a href=&quot;/index.php?title=Language_code&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Language code (de pagina bestaat niet)&quot;&gt;language code&lt;/a&gt;). It often ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
&lt;br /&gt;
The purpose of this template is to indicate that a given span of text belongs to a particular language (see [[language code]]). It often makes no visible changes to the text, but can help web browsers choose the right font, screen readers use the right pronunciation and more, [[Template:Lang/doc#Rationale|as explained hereafter]].&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;lang|&amp;#039;&amp;#039;Language tag&amp;#039;&amp;#039;|&amp;#039;&amp;#039;Text&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
Use [[List of ISO 639 codes|ISO 639 language codes]]. Example (where &amp;lt;tt&amp;gt;fr&amp;lt;/tt&amp;gt; is the code for [[French language|French]]): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* She said: &amp;quot;&amp;#039;&amp;#039;{{lang|fr|Je suis française.}}&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results in your browser:&lt;br /&gt;
* She said: &amp;quot;&amp;#039;&amp;#039;{{lang|fr|Je suis française.}}&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This template also includes a categorisation link when used by main namespace pages, therefore it should not be included inside a wikilink. This error may not be immediately obvious if it is used via another template namespace page. If appropriate, the entire wikilink may be fed to the template instead: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{lang|ar|[[Arabic language|العربية]]}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. By default, this template will place articles into the relevant subcategory of {{cl|Articles containing non-English-language text}}. To suppress this, add the parameter {{para|nocat|true}}.&lt;br /&gt;
&lt;br /&gt;
There are also versions of this template for specific languages that also print the language&amp;#039;s name, intended to be used the first time that language is used in the article. For example, {{j|&amp;quot;{{tlx|lang-es|español}}&amp;quot;}} and {{j|&amp;quot;{{tlx|lang-ru|русский язык}}&amp;quot;}} give &amp;quot;{{lang-es|español}}&amp;quot; and &amp;quot;{{lang-ru|русский язык}}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Language subtags can also be used to indicate the writing script or regional variant of a language. According to the [[World Wide Web Consortium|W3C]], &amp;quot;the golden rule when creating language tags is to keep the tag as short as possible&amp;quot;, [http://www.w3.org/International/articles/language-tags/Overview.en.php] so such subtags should only be added if there is an important reason to use them. [[ISO 639‑1]] is preferred over [[ISO 639‑2]] and [[ISO 639‑3]].&lt;br /&gt;
&lt;br /&gt;
=== Indicating writing script ===&lt;br /&gt;
&lt;br /&gt;
If necessary, add the [[List of ISO 15924 codes|ISO 15924]] code to indicate the script. &lt;br /&gt;
&lt;br /&gt;
For example, [[Russian language|Russian]] is usually written in the [[Cyrillic script]], therefore the &amp;#039;&amp;lt;tt&amp;gt;Cyrl&amp;lt;/tt&amp;gt;&amp;#039; script code is superfluous and the language code will be &amp;lt;tt&amp;gt;ru&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;ru-Cyrl&amp;lt;/tt&amp;gt;. However, when that text is [[transliteration|transliterated]] the &amp;lt;tt&amp;gt;transl&amp;lt;/tt&amp;gt; code (transliteration) should be used because it isn&amp;#039;t the default script for Russian: &amp;lt;tt&amp;gt;ru-Latn&amp;lt;/tt&amp;gt;.  Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* Moscow ([[Russian language|Russian]]: {{lang|ru|Москва́}}, {{transl|ru|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
which is the same as&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* Moscow ({{lang-ru|Москва́}}, {{transl|ru|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results in your browser:&lt;br /&gt;
* Moscow ({{lang-ru|Москва́}}, {{transl|ru|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}})&lt;br /&gt;
&lt;br /&gt;
Instead of using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{transl|ru|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{lang|ru-Latn|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; can be used, but if you specified a font and a size for the target language in your [[Special:Mypage/vector.css|custom CSS]] (see [[Help:User style]]), the transliteration will appear in that specified style. To specify a transliteration scheme, for example, you are using the [[ISO 9]] transliteration of Cyrillic, use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{transl|ru|ISO|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
* Moscow ({{lang-ru|Москва́}}; [[ISO 9]]: {{transl|ru|ISO|&amp;#039;&amp;#039;Moskva&amp;#039;&amp;#039;}})&lt;br /&gt;
&lt;br /&gt;
The [[Internet Assigned Numbers Authority|IANA]] maintains a list specifying when the script tag should be suppressed [http://www.iana.org/assignments/language-subtag-registry]. In some cases, the script must be always specified, like [[Tajik language|Tajik]] which can be equally written in [[Arabic script|Arabic]], [[Latin script|Latin]] or [[Cyrillic script|Cyrillic]] alphabets:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* Tajik ({{rtl-lang|tg-Arab|تاجیکی}}, {{transl|tg|&amp;#039;&amp;#039;tojikī&amp;#039;&amp;#039;}}, {{lang|tg-Cyrl|тоҷикӣ}})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Which results in your browser:&lt;br /&gt;
* Tajik ({{rtl-lang|tg-Arab|تاجیکی}}, {{transl|tg|&amp;#039;&amp;#039;tojikī&amp;#039;&amp;#039;}}, {{lang|tg-Cyrl|тоҷикӣ}})&lt;br /&gt;
Note the use of {{tl|rtl-lang}} instead of {{tl|lang}} when using the Arabic script (see hereafter section [[#Writing direction|writing direction]]).&lt;br /&gt;
&lt;br /&gt;
==== Undetermined language ====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;lang}} template is not only used to specify the language of foreign words, but also to specify a single symbol or character in a specific script, for example when discussing about a specific writing system. Many times the character / symbol is used in several languages, but when the article refers to the [[grapheme]] itself the [[ISO 639‑2]] and [[ISO 639‑3]] language code &amp;lt;tt&amp;gt;und&amp;lt;/tt&amp;gt; for Undetermined language. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The {{lang|und-Hani|字}} Han character has 6 strokes.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:The {{lang|und-Hani|字}} Han character has 6 strokes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;tt&amp;gt;Hani&amp;lt;/tt&amp;gt;, which specifies generic Han characters (Hanzi, Kanji, Hanja).&lt;br /&gt;
&lt;br /&gt;
Compare {{tl|script}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The {{script|Hani|字}} Han character has 6 strokes.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:The {{script|Hani|字}} Han character has 6 strokes.&lt;br /&gt;
&lt;br /&gt;
=== Indicating regional variant ===&lt;br /&gt;
&lt;br /&gt;
In some cases, maybe it will be needed to add [[ISO 3166-1 alpha-2]] country codes (specific usage of that country). Of course the three codes can appear in the same tag, for example the code &amp;lt;tt&amp;gt;zh-Hant-TW&amp;lt;/tt&amp;gt; will be used for [[Chinese language|Chinese]] text written with [[Traditional Chinese characters|Traditional Han characters]], containing words or expressions specific to [[Taiwan]]. &amp;lt;tt&amp;gt;zh-Hans&amp;lt;/tt&amp;gt; is for simplified. Examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* {{lang|zh-Hant-TW|臺灣}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results in your browser:&lt;br /&gt;
* {{lang|zh-Hant-TW|臺灣}}&lt;br /&gt;
&lt;br /&gt;
=== Writing direction ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;s&amp;gt;{{tl|rtl-lang}} is a specific template for right-to-left languages like [[Arabic language|Arabic]] or [[Hebrew language|Hebrew]].&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For right-to-left paragraphs (as opposed to rtl strings embedded in an English paragraph), use {{tl|rtl-para}}.&lt;br /&gt;
&lt;br /&gt;
== Rationale ==&lt;br /&gt;
&lt;br /&gt;
* Web browsers can use the information in such [[:Category:multilingual support templates|multilingual support templates]] to choose an appropriate font.&lt;br /&gt;
** 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 [[Han Unification#Examples of language dependent characters]] and [[User:Wikipeditor/CJK|these comparison table and screen photo]].&lt;br /&gt;
* 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;br /&gt;
* For [[spell checker]]s and grammar checkers.&lt;br /&gt;
* To help browsers choosing appropriate [[quotation mark]]s, and making decisions about [[Hyphen|hyphenation]], [[Typographic ligature|ligature]]s, and spacing.&lt;br /&gt;
* Users can apply styles to languages in their [[Style sheet (web development)|style sheet]]s (useful for editors).&lt;br /&gt;
* [[Web search engine|Search engine]]s can use this information when [[index (search engine)|indexing]] text.&lt;br /&gt;
* Facilitates better data-scraping, parsing and re-use.&lt;br /&gt;
* Useful for application developers who re-publish Wikipedia (also see [[Wikipedia:Manual of Style/Accessibility#Other languages]]).&lt;br /&gt;
* Useful for research or compiling statistics about language use in Wikipedia.&lt;br /&gt;
&lt;br /&gt;
== Applying styles ==&lt;br /&gt;
&lt;br /&gt;
You can apply [[Cascading Style Sheets|CSS]] styles in your user style sheet. Registered users can put styles into User:XXX/monobook.css, where &amp;#039;&amp;#039;XXX&amp;#039;&amp;#039; is the user name.  &lt;br /&gt;
&lt;br /&gt;
These examples may work in [[Internet Explorer 8]]; prior versions do not support attribute selectors. Alternatively, try [[List of web browsers|another browser]] such as [[Firefox]].&lt;br /&gt;
&lt;br /&gt;
Example: to apply a font to Russian-language text:&lt;br /&gt;
&lt;br /&gt;
  span[lang|=ru] { font-family: fonteskaya; }&lt;br /&gt;
&lt;br /&gt;
Example: to apply a colour to text marked with any language:&lt;br /&gt;
&lt;br /&gt;
  span[lang] { color: green; }&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Do not&amp;#039;&amp;#039; use quotation marks in your user style sheet; wikitext will screw them up. They are recommended in CSS, but not required other than for font families containing generic-family keywords (&amp;#039;inherit&amp;#039;, &amp;#039;serif&amp;#039;, &amp;#039;sans-serif&amp;#039;, &amp;#039;monospace&amp;#039;, &amp;#039;fantasy&amp;#039;, and &amp;#039;cursive&amp;#039;). See http://www.w3.org/TR/CSS21/fonts.html#font-family-prop for details.&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
&amp;quot;description&amp;quot;: &amp;quot;Indicate that a given span of text belongs to a particular language. Use by browsers which use different styles for different languages.&amp;quot;,&lt;br /&gt;
&amp;quot;params&amp;quot;: {&lt;br /&gt;
  &amp;quot;1&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Language code&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;An  ISO 639 language codes, e.g. fr (the code for French).&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: true&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;2&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Text&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;The text e.g. Je suis française.&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: true&lt;br /&gt;
  }&lt;br /&gt;
}}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[:Category:Multilingual support templates]]&lt;br /&gt;
* [[List of ISO 639 codes]] (language codes)&lt;br /&gt;
* [[List of ISO 15924 codes]] (script codes)&lt;br /&gt;
* [[List of ISO romanizations|List of ISO transliterations]] (transliteration codes)&lt;br /&gt;
* {{Tl|Cleanup-lang}} – For articles which should use this template; but do not yet&lt;br /&gt;
* {{tl|transl}} for romanisation of languages not natively written in the Latin alphabet&lt;br /&gt;
* {{tl|Unicode}}, {{tl|script}} for specific characters&lt;br /&gt;
* [[:Category:Language icon templates]], for visually marking external links to foreign-language content&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* [[World Wide Web Consortium|W3C]]&lt;br /&gt;
** [http://www.w3.org/International/articles/language-tags/Overview.en.php Language tags in HTML and XML] – Overview&lt;br /&gt;
** [http://www.w3.org/TR/i18n-html-tech-lang/ Internationalization Best Practices: Specifying Language in XHTML &amp;amp; HTML Content] – W3C Working Draft 21 July 2006&lt;br /&gt;
** [http://www.w3.org/International/articles/bcp47/ Understanding the New Language Tags]&lt;br /&gt;
** [http://www.w3.org/International/questions/qa-css-lang FAQ: Styling using the lang attribute]&lt;br /&gt;
* [[Internet Assigned Numbers Authority|IANA]]&lt;br /&gt;
** [http://www.iana.org/assignments/language-subtag-registry IANA Language Subtag Registry]&lt;br /&gt;
** [http://www.rfc-editor.org/rfc/rfc4646.txt Tags for Identifying Languages] (RFC 4646)&lt;br /&gt;
** [http://www.rfc-editor.org/rfc/rfc4647.txt Matching of Language Tags] (RFC 4647)&lt;br /&gt;
** [http://www.iana.org/assignments/language-tags Language tags] (obsolete per RFC 4646)&lt;br /&gt;
* [[Mozilla Firefox]]&lt;br /&gt;
** [https://bugzilla.mozilla.org/show_bug.cgi?id=192636 Bug with script selection]&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES AFTER THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Multilingual support templates|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ahenket</name></author>
	</entry>
</feed>