Difference between revisions of "Template:Lang"

From Valve Developer Community
Jump to: navigation, search
m
(updated the description and capabilities of this template)
Line 22: Line 22:
 
-->{{#ifexist: Template:Lang:ka | [[File:ka.png|alt=ქართული ენა|link=Template:Lang:ka]]&nbsp;| }}<!--
 
-->{{#ifexist: Template:Lang:ka | [[File:ka.png|alt=ქართული ენა|link=Template:Lang:ka]]&nbsp;| }}<!--
 
-->{{#ifexist: Template:Lang:he | [[File:he.png|alt=עִברִית|link=Template:Lang:he]]&nbsp;| }}</div>
 
-->{{#ifexist: Template:Lang:he | [[File:he.png|alt=עִברִית|link=Template:Lang:he]]&nbsp;| }}</div>
 +
{{lang|Template:Lang}}
 
This template is an improved version of [[:Template:Otherlang2]]. It retains all the functionality, adds Hebrew properly, and ''automatically'' detects which languages a page has been translated into. It works on English and non-English pages, with or without namespaces. Otherlang2 may still be used, in the rare case that a translated page does not follow the wiki's [[Valve Developer Community:Alternative Languages|standard method]] for translated page titles.
 
This template is an improved version of [[:Template:Otherlang2]]. It retains all the functionality, adds Hebrew properly, and ''automatically'' detects which languages a page has been translated into. It works on English and non-English pages, with or without namespaces. Otherlang2 may still be used, in the rare case that a translated page does not follow the wiki's [[Valve Developer Community:Alternative Languages|standard method]] for translated page titles.
  
Line 27: Line 28:
  
 
The <code>title</code> parameter can be used to change the text of the page titlebar (logically, into the text that should be displayed for the language of the page).
 
The <code>title</code> parameter can be used to change the text of the page titlebar (logically, into the text that should be displayed for the language of the page).
 +
{{Warning|on some pages you may receive this error: '''Warning''': Display title "env_cubemap" overrides earlier display title <nowiki>"<code>Env cubemap</code>"</nowiki>. This can be due to the fact that the page uses a different template in which the page title is set.}}
  
 
The <code>noborder</code> parameter can be set to <code>1</code> to hide the border around icons. If you don't plan on using it, don't bother defining it.
 
The <code>noborder</code> parameter can be set to <code>1</code> to hide the border around icons. If you don't plan on using it, don't bother defining it.
  
 
Here's an example for a hypothetical Spanish page called '''Category:Hello:es''':
 
Here's an example for a hypothetical Spanish page called '''Category:Hello:es''':
<pre>{{lang
+
<pre>{{lang|Category:Hello|title=Categoría:Hola|noborder=1}}</pre>
|Category:Hello
+
 
|title=Categoría:Hola
+
Here's one more example for a Russian page called '''Your_First_Map:ru''':
|noborder=1
+
<pre>{{lang|Your First Map|title=Ваша первая карта}}</pre>
}}</pre>
+
 
 
This will add icons for all the versions of this page in different languages. It will also change the displayed title to a Spanish version of the name, and hide the icon borders.
 
This will add icons for all the versions of this page in different languages. It will also change the displayed title to a Spanish version of the name, and hide the icon borders.
  
Line 89: Line 91:
 
|Turkish                ||Page_name:tr      ||[[File:Tr.png]]
 
|Turkish                ||Page_name:tr      ||[[File:Tr.png]]
 
|}
 
|}
 +
Also, this template automatically adds a page language category at the bottom of the page.
 +
 +
{{TODO}} simplify code for <nowiki><mark></nowiki> tags
 +
  
 
For information on how the template detects other languages, view this page's source code.
 
For information on how the template detects other languages, view this page's source code.
Line 107: Line 113:
  
 
English
 
English
-->{{#ifexist: {{{1}}} | {{#ifeq: {{{1}}} | {{ARTICLEPAGENAME}} | &nbsp;<mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:en.png|English|link=]]</mark>&nbsp; | &nbsp;[[File:en.png|English|link={{{1}}}]]&nbsp; }} | }}<!--
+
-->{{#ifexist: {{{1}}} | {{#ifeq: {{{1}}} | {{ARTICLEPAGENAME}} | &nbsp;<mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:en.png|English|link=]]</mark>&nbsp;[[Category:English]] | &nbsp;[[File:en.png|English|link={{{1}}}]]&nbsp; }} | }}<!--
  
 
Catalan - ca
 
Catalan - ca
-->{{#ifexist: {{{1}}}:ca | {{#ifeq: {{{1}}}:ca | {{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ca.png|Català|link=]]</mark>&nbsp; | [[File:ca.png|Català|link={{{1}}}:ca]]&nbsp; }} | }}<!--
+
-->{{#ifexist: {{{1}}}:ca | {{#ifeq: {{{1}}}:ca | {{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ca.png|Català|link=]]</mark>&nbsp;[[Category:Catalan]] | [[File:ca.png|Català|link={{{1}}}:ca]]&nbsp; }} | }}<!--
  
 
Czech - cs
 
Czech - cs
-->{{#ifexist: {{{1}}}:cs | {{#ifeq: {{{1}}}:cs|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:cs.png|Čeština|link=]]</mark>&nbsp; | [[File:cs.png|Čeština|link={{{1}}}:cs]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:cs | {{#ifeq: {{{1}}}:cs|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:cs.png|Čeština|link=]]</mark>&nbsp;[[Category:Czech]] | [[File:cs.png|Čeština|link={{{1}}}:cs]]&nbsp;}} | }}<!--
  
 
German - de
 
German - de
-->{{#ifexist: {{{1}}}:de | {{#ifeq: {{{1}}}:de|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:de.png|Deutsch|link=]]</mark>&nbsp; | [[File:de.png|Deutsch|link={{{1}}}:de]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:de | {{#ifeq: {{{1}}}:de|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:de.png|Deutsch|link=]]</mark>&nbsp;[[Category:German]] | [[File:de.png|Deutsch|link={{{1}}}:de]]&nbsp;}} | }}<!--
  
 
Spanish - es
 
Spanish - es
-->{{#ifexist: {{{1}}}:es | {{#ifeq: {{{1}}}:es|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:es.png|Español|link=]]</mark>&nbsp; | [[File:es.png|Español|link={{{1}}}:es]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:es | {{#ifeq: {{{1}}}:es|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:es.png|Español|link=]]</mark>&nbsp;[[Category:Spanish]] | [[File:es.png|Español|link={{{1}}}:es]]&nbsp;}} | }}<!--
  
 
French - fr
 
French - fr
-->{{#ifexist: {{{1}}}:fr | {{#ifeq: {{{1}}}:fr|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:fr.png|Français|link=]]</mark>&nbsp; | [[File:fr.png|Français|link={{{1}}}:fr]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:fr | {{#ifeq: {{{1}}}:fr|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:fr.png|Français|link=]]</mark>&nbsp;[[Category:French]] | [[File:fr.png|Français|link={{{1}}}:fr]]&nbsp;}} | }}<!--
  
 
Hungarian - hu
 
Hungarian - hu
-->{{#ifexist: {{{1}}}:hu | {{#ifeq: {{{1}}}:hu|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:hu.png|Magyar|link=]]</mark>&nbsp; | [[File:hu.png|Magyar|link={{{1}}}:hu]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:hu | {{#ifeq: {{{1}}}:hu|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:hu.png|Magyar|link=]]</mark>&nbsp;[[Category:Hungarian]] | [[File:hu.png|Magyar|link={{{1}}}:hu]]&nbsp;}} | }}<!--
  
 
Italian - it
 
Italian - it
-->{{#ifexist: {{{1}}}:it | {{#ifeq: {{{1}}}:it|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:it.png|Italiano|link=]]</mark>&nbsp; | [[File:it.png|Italiano|link={{{1}}}:it]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:it | {{#ifeq: {{{1}}}:it|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:it.png|Italiano|link=]]</mark>&nbsp;[[Category:Italian]] | [[File:it.png|Italiano|link={{{1}}}:it]]&nbsp;}} | }}<!--
  
 
Dutch - nl
 
Dutch - nl
-->{{#ifexist: {{{1}}}:nl | {{#ifeq: {{{1}}}:nl|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:nl.png|Nederlands|link=]]</mark>&nbsp; | [[File:nl.png|Nederlands|link={{{1}}}:nl]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:nl | {{#ifeq: {{{1}}}:nl|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:nl.png|Nederlands|link=]]</mark>&nbsp;[[Category:Dutch]] | [[File:nl.png|Nederlands|link={{{1}}}:nl]]&nbsp;}} | }}<!--
  
 
Norwegian - no
 
Norwegian - no
-->{{#ifexist: {{{1}}}:no | {{#ifeq: {{{1}}}:no|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:no.png|Norsk|link=]]</mark>&nbsp; | [[File:no.png|Norsk|link={{{1}}}:no]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:no | {{#ifeq: {{{1}}}:no|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:no.png|Norsk|link=]]</mark>&nbsp;[[Category:Norwegian]] | [[File:no.png|Norsk|link={{{1}}}:no]]&nbsp;}} | }}<!--
  
 
Polish - pl
 
Polish - pl
-->{{#ifexist: {{{1}}}:pl | {{#ifeq: {{{1}}}:pl|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:pl.png|Polski|link=]]</mark>&nbsp; | [[File:pl.png|Polski|link={{{1}}}:pl]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:pl | {{#ifeq: {{{1}}}:pl|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:pl.png|Polski|link=]]</mark>&nbsp;[[Category:Polish]] | [[File:pl.png|Polski|link={{{1}}}:pl]]&nbsp;}} | }}<!--
  
 
Portuguese - pt
 
Portuguese - pt
-->{{#ifexist: {{{1}}}:pt | {{#ifeq: {{{1}}}:pt|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:pt.png|Português|link=]]</mark>&nbsp; | [[File:pt.png|Português|link={{{1}}}:pt]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:pt | {{#ifeq: {{{1}}}:pt|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:pt.png|Português|link=]]</mark>&nbsp;[[Category:Portuguese]] | [[File:pt.png|Português|link={{{1}}}:pt]]&nbsp;}} | }}<!--
  
 
Brazilian Portuguese - pt-br
 
Brazilian Portuguese - pt-br
-->{{#ifexist: {{{1}}}:pt-br | {{#ifeq: {{{1}}}:pt-br|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:pt-br.png|Português-Brasileiro|link=]]</mark>&nbsp; | [[File:pt-br.png|Português-Brasileiro|link={{{1}}}:pt-br]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:pt-br | {{#ifeq: {{{1}}}:pt-br|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:pt-br.png|Português-Brasileiro|link=]]</mark>&nbsp;[[Category:Brazilian Portuguese]] | [[File:pt-br.png|Português-Brasileiro|link={{{1}}}:pt-br]]&nbsp;}} | }}<!--
  
 
Russian - ru
 
Russian - ru
-->{{#ifexist: {{{1}}}:ru | {{#ifeq: {{{1}}}:ru|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ru.png|Русский|link=]]</mark>&nbsp; | [[File:ru.png|Русский|link={{{1}}}:ru]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:ru | {{#ifeq: {{{1}}}:ru|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ru.png|Русский|link=]]</mark>&nbsp;[[Category:Russian]] | [[File:ru.png|Русский|link={{{1}}}:ru]]&nbsp;}} | }}<!--
  
 
Ukrainian - ua
 
Ukrainian - ua
-->{{#ifexist: {{{1}}}:ua | {{#ifeq: {{{1}}}:ua|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ua.png|Українська|link=]]</mark>&nbsp; | [[File:ua.png|Українська|link={{{1}}}:ua]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:ua | {{#ifeq: {{{1}}}:ua|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ua.png|Українська|link=]]</mark>&nbsp;[[Category:Ukrainian]] | [[File:ua.png|Українська|link={{{1}}}:ua]]&nbsp;}} | }}<!--
  
 
Swedish - sv
 
Swedish - sv
-->{{#ifexist: {{{1}}}:sv | {{#ifeq: {{{1}}}:sv | {{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:sv.png|Svenska|link=]]</mark>&nbsp; | [[File:sv.png|Svenska|link={{{1}}}:sv]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:sv | {{#ifeq: {{{1}}}:sv | {{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:sv.png|Svenska|link=]]</mark>&nbsp;[[Category:Swedish]] | [[File:sv.png|Svenska|link={{{1}}}:sv]]&nbsp;}} | }}<!--
  
 
Turkish - tr
 
Turkish - tr
-->{{#ifexist: {{{1}}}:tr | {{#ifeq: {{{1}}}:tr|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:tr.png|Türkçe|link=]]</mark>&nbsp; | [[File:tr.png|Türkçe|link={{{1}}}:tr]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:tr | {{#ifeq: {{{1}}}:tr|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:tr.png|Türkçe|link=]]</mark>&nbsp;[[Category:Turkish]] | [[File:tr.png|Türkçe|link={{{1}}}:tr]]&nbsp;}} | }}<!--
  
 
Japanese - jp
 
Japanese - jp
-->{{#ifexist: {{{1}}}:jp | {{#ifeq: {{{1}}}:jp|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:jp.png|日本語|link=]]</mark>&nbsp; | [[File:jp.png|日本語|link={{{1}}}:jp]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:jp | {{#ifeq: {{{1}}}:jp|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:jp.png|日本語|link=]]</mark>&nbsp;[[Category:Japanese]] | [[File:jp.png|日本語|link={{{1}}}:jp]]&nbsp;}} | }}<!--
  
 
Simplified Chinese - zh-cn
 
Simplified Chinese - zh-cn
-->{{#ifexist: {{{1}}}:zh-cn | {{#ifeq: {{{1}}}:zh-cn|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:cn.png|简体中文|link=]]</mark>&nbsp; | [[File:cn.png|简体中文|link={{{1}}}:zh-cn]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:zh-cn | {{#ifeq: {{{1}}}:zh-cn|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:cn.png|简体中文|link=]]</mark>&nbsp;[[Category:Simplified Chinese]] | [[File:cn.png|简体中文|link={{{1}}}:zh-cn]]&nbsp;}} | }}<!--
  
 
Taiwanese Mandarin - zh-tw
 
Taiwanese Mandarin - zh-tw
-->{{#ifexist: {{{1}}}:zh-tw | {{#ifeq: {{{1}}}:zh-tw|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:tw.png|简体中文|link=]]</mark>&nbsp; | [[File:tw.png|简体中文|link={{{1}}}:zh-tw]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:zh-tw | {{#ifeq: {{{1}}}:zh-tw|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:tw.png|简体中文|link=]]</mark>&nbsp;[[Category:Taiwanese Mandarin]] | [[File:tw.png|简体中文|link={{{1}}}:zh-tw]]&nbsp;}} | }}<!--
  
 
Korean - ko
 
Korean - ko
-->{{#ifexist: {{{1}}}:ko | {{#ifeq: {{{1}}}:ko|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ko.png|한국어|link=]]</mark>&nbsp; | [[File:ko.png|한국어|link={{{1}}}:ko]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:ko | {{#ifeq: {{{1}}}:ko|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ko.png|한국어|link=]]</mark>&nbsp;[[Category:Korean]] | [[File:ko.png|한국어|link={{{1}}}:ko]]&nbsp;}} | }}<!--
  
 
Georgian - ka
 
Georgian - ka
-->{{#ifexist: {{{1}}}:ka | {{#ifeq: {{{1}}}:ka|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ka.png|ქართული ენა|link=]]</mark>&nbsp; | [[File:ka.png|ქართული ენა|link={{{1}}}:ka]]&nbsp;}} | }}<!--
+
-->{{#ifexist: {{{1}}}:ka | {{#ifeq: {{{1}}}:ka|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:ka.png|ქართული ენა|link=]]</mark>&nbsp;[[Category:Georgian]] | [[File:ka.png|ქართული ენა|link={{{1}}}:ka]]&nbsp;}} | }}<!--
  
 
Hebrew - he
 
Hebrew - he
-->{{#ifexist: {{{1}}}:he | {{#ifeq: {{{1}}}:he|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:he.png|עִברִית|link=]]</mark>&nbsp; | [[File:he.png|עִברִית|link={{{1}}}:he]]&nbsp;}} | }}</div>
+
-->{{#ifexist: {{{1}}}:he | {{#ifeq: {{{1}}}:he|{{ARTICLEPAGENAME}} | <mark style="background:#3A3A3A;border:1px solid #65635F;">[[File:he.png|עִברִית|link=]]</mark>&nbsp;[[Category:Hebrew]] | [[File:he.png|עִברִית|link={{{1}}}:he]]&nbsp;}} | }}</div>

Revision as of 00:47, 15 May 2021

 English 

This template is an improved version of Template:Otherlang2. It retains all the functionality, adds Hebrew properly, and automatically detects which languages a page has been translated into. It works on English and non-English pages, with or without namespaces. Otherlang2 may still be used, in the rare case that a translated page does not follow the wiki's standard method for translated page titles.

Unlike otherlang2, this template requires an unnamed parameter to be defined to work. The contents of it should be the full name of the page the template is being applied on, including namespaces such as Help:. It should not include any language suffixes, however, such as :ru. Capitalization matters, even on the first letter of the page name! Underscores must be replaced with spaces. ai_changehintgroup must be written as Ai changehintgroup.

The title parameter can be used to change the text of the page titlebar (logically, into the text that should be displayed for the language of the page).

Warning.png Warning: on some pages you may receive this error: Warning: Display title "env_cubemap" overrides earlier display title "<code>Env cubemap</code>". This can be due to the fact that the page uses a different template in which the page title is set.

The noborder parameter can be set to 1 to hide the border around icons. If you don't plan on using it, don't bother defining it.

Here's an example for a hypothetical Spanish page called Category:Hello:es:

{{lang|Category:Hello|title=Categoría:Hola|noborder=1}}

Here's one more example for a Russian page called Your_First_Map:ru:

{{lang|Your First Map|title=Ваша первая карта}}

This will add icons for all the versions of this page in different languages. It will also change the displayed title to a Spanish version of the name, and hide the icon borders.


Currently supported languages:

Language Page name Icon
English Page_name En.png
Catalan Page_name:ca Ca.png
Chinese (PRC) Page_name:zh-cn Cn.png
Chinese (Taiwan) Page_name:zh-tw Tw.png
Czech Page_name:cs Cs.png
Dutch Page_name:nl Nl.png
French Page_name:fr Fr.png
Georgian Page_name:ka Ka.png
German Page_name:de De.png
Hebrew Page_name:he He.png
Hungarian Page_name:hu Hu.png
Italian Page_name:it It.png
Japanese Page_name:jp Jp.png
Korean Page_name:ko Ko.png
Norwegian Page_name:no No.png
Polish Page_name:pl Pl.png
Portuguese Page_name:pt Pt.png
Portuguese (Brazilian) Page_name:pt-br Pt-br.png
Russian Page_name:ru Ru.png
Ukrainian Page_name:ua Ua.png
Spanish Page_name:es Es.png
Swedish Page_name:sv Sv.png
Turkish Page_name:tr Tr.png

Also, this template automatically adds a page language category at the bottom of the page.

To do simplify code for <mark> tags


For information on how the template detects other languages, view this page's source code.