Difference between revisions of "Template:Language table"

From RRU Knowledge Base
(i have no idea how to classify Chinese as far as spoken vs written so I'm just gonna go with the zh-xx system since lego uses that for its website)
m
 
(23 intermediate revisions by the same user not shown)
Line 3: Line 3:
! colspan=2 | Language
! colspan=2 | Language
! Name
! Name
{{#ifeq: {{{meaning|}}} | no || ! Meaning }}
|-
|-
{{#if: {{{ar|}}}|
{{!}}-
{{!}} colspan=2 {{!}} Arabic <span lang="ar">العربية</span><br /><em>Al-ʻArabiyyah</em>
{{!}} {{{ar}}}{{#if: {{{arR|}}}|<br>''{{{arR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{arM|}}} }}|
{{!}}-
}}
{{#if: {{{zh-cn|}}}|
{{#if: {{{zh-cn|}}}|
{{#if: {{{zh-tw|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:China Flag.png|汉语|20px|link=]] Chinese (simplified)
{{!}} rowspan=2 {{!}} Chinese <span lang="zh">{{nowrap|中文}}</span><br /><em>Zhōngwén</em>
{{!}} {{{zh-cn}}}|
{{!}} {{Nowrap|[[File:Flag of the People's Republic of China.png|Flag of the People's Republic of China|20px|link=]] China}}
{{!}} {{{zh-cn}}}{{#if: {{{zh-cnR|}}}|<br>''{{{zh-cnR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{zh-cnM|}}} }}
{{!}}-
{{!}}-
}}
{{!}} {{Nowrap|[[File:Flag of the Republic of China.png|Flag of the Republic of China|20px|link=]] Taiwan}}
{{!}} {{{zh-tw}}}{{#if: {{{zh-twR|}}}|<br>''{{{zh-twR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{zh-twM|}}} }}|
{{!}}-
{{!}} colspan=2 {{!}} Chinese <span lang="zh-cn">中文</span>
{{!}} {{{zh-cn}}}}}|
{{#if: {{{zh-tw|}}}|
{{!}}-
{{!}} colspan=2 {{!}} Chinese Taiwan
{{!}} {{{zh-tw}}}|
{{!}}-
}}}}
{{#if: {{{cs|}}}|
{{#if: {{{cs|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Czech Republic Flag.png|Čeština|20px|link=]] Czech
{{!}} colspan=2 {{!}} Czech <span lang="cs"><em>Čeština</em></span>
{{!}} {{{cs}}}|
{{!}} {{{cs}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{csM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{da|}}}|
{{#if: {{{da|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Denmark Flag.png|Dansk|20px|link=]] Danish
{{!}} colspan=2 {{!}} Danish <span lang="da"><em>Dansk</em></span>
{{!}} {{{da}}}|
{{!}} {{{da}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{daM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{nl|}}}|
{{#if: {{{nl|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:The Netherlands Flag.png|Nederlands|20px|link=]] Dutch
{{!}} colspan=2 {{!}} Dutch <span lang="nl"><em>Nederlands</em></span>
{{!}} {{{nl}}}|
{{!}} {{{nl}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{nlM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{en|}}}|
{{#if: {{{en|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:United Kingdom Flag.png|English|20px|link=]] English
{{!}} colspan=2 {{!}} English <span lang="en"><em>English</em></span>
{{!}} {{{en}}}|
{{!}} {{{en}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{enM|}}} }}|
{{!}}-
}}
{{#if: {{{fa|}}}|
{{!}}-
{{!}} colspan=2 {{!}} Farsi <span lang="fa">فارسی</span><br /><em>Fārsi</em>
{{!}} {{{fa}}}{{#if: {{{faR|}}}|<br>''{{{faR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{faM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{fi|}}}|
{{#if: {{{fi|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Finland Flag.png|Suomi|20px|link=]] Finnish
{{!}} colspan=2 {{!}} Finnish <span lang="fr"><em>Suomi</em></span>
{{!}} {{{fi}}}|
{{!}} {{{fi}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{fiM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{fr|}}}|
{{#if: {{{fr|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:France Flag.png|Français|20px|link=]] French
{{!}} colspan=2 {{!}} French <span lang="fr"><em>Français</em></span>
{{!}} {{{fr}}}|
{{!}} {{{fr}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{frM|}}} }}|
{{!}}-
{{!}}-
}}<!--
}}
{{#if: {{{fr_ca|}}}|
{{#if: {{{de|}}}|
{{#if: {{{fr_eu|}}}|
{{!}}-
{{!}}-
{{!}} rowspan=2 {{!}} French
{{!}} colspan=2 {{!}} German <span lang="de"><em>Deutsch</em></span>
{{!}} [[File:Canada Flag.png|20px|link=]] Canada
{{!}} {{{de}}}
{{!}} {{{fr_ca}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{deM|}}} }}|
{{!}}-
{{!}}-
{{!}} [[File:France Flag.png|20px|link=]] Europe
}}
{{!}} {{{fr_eu}}}|
{{#if: {{{el|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Canada Flag.png|20px|link=]] Canadian French
{{!}} colspan=2 {{!}} Greek <span lang="el">ελληνικά</span><br /><em>Elliniká</em>
{{!}} {{{fr_ca}}}}}|
{{!}} {{{el}}}{{#if: {{{elR|}}}|<br>''{{{elR}}}''}}
{{#if: {{{fr_eu|}}}|
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{elM|}}} }}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:France Flag.png|20px|link=]] {European French
}}
{{!}} {{{fr_eu}}}|
{{#if: {{{he|}}}|
{{!}}-
}}}}-->
{{#if: {{{de|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Germany Flag.png|Deutsch|20px|link=]] German
{{!}} colspan=2 {{!}} Hebrew <span lang="he">עִבְרִית</span><br /><em>Ivrit</em>
{{!}} {{{de}}}|
{{!}} {{{he}}}{{#if: {{{heR|}}}|<br>''{{{heR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{heM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{he|}}}|
{{#if: {{{hu|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Israel Flag.png|עִבְרִית|20px|link=]] Hebrew
{{!}} colspan=2 {{!}} Hungarian <span lang="hu"><em>Magyar</em></span>
{{!}} {{{he}}}|
{{!}} {{{hu}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{huM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{is|}}}|
{{#if: {{{is|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Iceland Flag.png|Íslenska|20px|link=]] Icelandic
{{!}} colspan=2 {{!}} Icelandic <span lang="is"><em>Íslenska</em></span>
{{!}} {{{is}}}|
{{!}} {{{is}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{isM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{it|}}}|
{{#if: {{{it|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Italy Flag.png|Italiano|20px|link=]] Italian
{{!}} colspan=2 {{!}} Italian <span lang="it"><em>Italiano</em></span>
{{!}} {{{it}}}|
{{!}} {{{it}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{itM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{ja|}}}|
{{#if: {{{ja|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Japan Flag.png|日本語|20px|link=]] Japanese
{{!}} colspan=2 {{!}} Japanese <span lang="ja">{{Nowrap|日本語}}</span><br /><em>Nihongo</em>
{{!}} {{{ja}}}|
{{!}} {{{ja}}}{{#if: {{{jaR|}}}|<br>''{{{jaR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{jaM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{ko|}}}|
{{#if: {{{ko|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:South Korea Flag.png|한국어|20px|link=]] Korean
{{!}} colspan=2 {{!}} Korean <span lang="ko">한국어</span><br /><em>Hangugeo</em>
{{!}} {{{ko}}}|
{{!}} {{{ko}}}{{#if: {{{koR|}}}|<br>''{{{koR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{koM|}}} }}|
{{!}}-
}}
{{#if: {{{ms|}}}|
{{!}}-
{{!}} colspan=2 {{!}} Malay <span lang="ms"><em>Melayu</em></span>
{{!}} {{{ms}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{msM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{no|}}}|
{{#if: {{{no|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Norway Flag.png|Norsk|20px|link=]] Norwegian
{{!}} colspan=2 {{!}} Norwegian <span lang="no"><em>Norsk</em></span>
{{!}} {{{no}}}|
{{!}} {{{no}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{noM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{pl|}}}|
{{#if: {{{pl|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Poland Flag.png|Polski|20px|link=]] Polish
{{!}} colspan=2 {{!}} Polish <span lang="pl"><em>Polski</em></span>
{{!}} {{{pl}}}|
{{!}} {{{pl}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{plM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{pt|}}}|
{{#if: {{{pt|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Portugal Flag.png|Português|20px|link=]] Portuguese
{{!}} colspan=2 {{!}} Portuguese <span lang="pt"><em>Português</em></span>
{{!}} {{{pt}}}|
{{!}} {{{pt}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{ptM|}}} }}|
{{!}}-
{{!}}-
}}<!--
}}
{{#if: {{{pt_br|}}}|
{{#if: {{{ro|}}}|
{{#if: {{{pt_eu|}}}|
{{!}}-
{{!}}-
{{!}} rowspan=2 {{!}} Portuguese
{{!}} colspan=2 {{!}} Romanian <span lang="ro"><em>Română</em></span>
{{!}} [[File:Brazil Flag.png|20px|link=]] Brazil
{{!}} {{{ro}}}
{{!}} {{{pt_br}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{roM|}}} }}|
{{!}}-
{{!}}-
{{!}} [[File:Portugal Flag.png|20px|link=]] Portugal
}}
{{!}} {{{pt_eu}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Brazil Flag.png|20px|link=]] Brazilian Portuguese
{{!}} {{{pt_br}}}}}|
{{#if: {{{pt_eu|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Portugal Flag.png|20px|link=]] European Portuguese
{{!}} {{{pt_eu}}}|
{{!}}-
}}}}-->
{{#if: {{{ru|}}}|
{{#if: {{{ru|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Russia Flag.png|Русский|20px|link=]] Russian
{{!}} colspan=2 {{!}} Russian <span lang="ru">Русский</span><br /><em>Russkiy</em>
{{!}} {{{ru}}}|
{{!}} {{{ru}}}{{#if: {{{ruR|}}}|<br>''{{{ruR}}}''}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{ruM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{es|}}}|
{{#if: {{{es|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Spain Flag.png|Español|20px|link=]] Spanish
{{!}} colspan=2 {{!}} Spanish <span lang="es"><em>Español</em></span>
{{!}} {{{es}}}|
{{!}} {{{es}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{esM|}}} }}|
{{!}}-
{{!}}-
}}<!--
}}
{{#if: {{{es_la|}}}|
{{#if: {{{sv|}}}|
{{#if: {{{es_eu|}}}|
{{!}}-
{{!}}-
{{!}} rowspan=2 {{!}} Spanish
{{!}} colspan=2 {{!}} Swedish <span lang="sv"><em>Svenska</em></span>
{{!}} [[File:CELAC Flag.png|20px|link=]] Latin America
{{!}} {{{sv}}}
{{!}} {{{es_la}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{svM|}}} }}|
{{!}}-
{{!}}-
{{!}} [[File:Spain Flag.png|20px|link=]] Spain
}}
{{!}} {{{es_eu}}}|
{{#if: {{{tr|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:CELAC Flag.png|20px|link=]] Latin American Spanish
{{!}} {{{es_la}}}}}|
{{#if: {{{es_eu|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Spain Flag.png|20px|link=]] European Spanish
{{!}} {{{es_eu}}}|
{{!}}-
}}}}-->
{{#if: {{{sv|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Sweden Flag.png|Svenska|20px|link=]] Swedish
{{!}} colspan=2 {{!}} Turkish <span lang="sv"><em>Türkçe</em></span>
{{!}} {{{sv}}}|
{{!}} {{{tr}}}
{{#ifeq: {{{meaning|}}} | no || {{!}} {{{trM|}}} }}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{footnote|}}}|
{{#if: {{{footnote|}}}|
{{!}}-
{{!}}-
{{!}} colspan=3 {{!}} <small>{{{footnote}}}</small> |
{{!}} colspan={{#ifeq: {{{meaning|}}} | yes |3|4}} {{!}} <small>{{{footnote}}}</small> |
{{!}}-
{{!}}-
}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
This template lists all '''official translations''' of the names of products, works, objects, locations, or characters across different regions and in different languages.  
==Usage instructions==
This template lists all '''official translations''' of the names of products, works, objects, locations, or characters across different regions and in different languages.


==Usage instructions==
To use this template, add the shortcut tag {{tlc|Langtable}} (or the full tag {{tlc|Language table}}) to an article, under its own section. Here is an example of how it should look:
To use this template, add the shortcut tag {{tlc|Langtable}} (avoid using the full {{tlc|Language table}}) to an article, under its own section. Here is an example of how it should look:
<pre><nowiki>==Names in other languages==
<pre><nowiki>==Names in other languages==
{{Langtable
{{Langtable
|xx=name
|xx=name
|xxM=meaning
|xx=name
|xx=name
|xx=name}}</nowiki></pre> Where <code>xx</code> is an ISO code, and <code>name</code> is the subject's name in that language.  
|xxR=romanized name
|xxM=meaning}}</nowiki></pre> Where <code>xx</code> is an ISO code, and <code>name</code> is the subject's name in that language. <code>xxM</code> is the name's meaning when translated to English; this column can be disabled by adding the property <code>meaning=no</code>. <code>xxR</code> is the romanized version of a name or phrase in a language not usually written in Latin script; currently Arabic, Chinese, Farsi, Greek, Hebrew, Japanese, Korean, and Russian support this tag.


For subjects with a single dedicate article, this template should be placed near the end of the page, prior to any existing notes, references, and/or external links sections, but after all other sections. If the language table is for a certain section in an article, such as on a page listing subjects too minor to have their own articles, it should come at the very end of the section, with its own section being one level lower than the subject's main section.
For subjects with a single dedicate article, this template should be placed near the end of the page, prior to any existing notes, references, and/or external links sections, but after all other sections. If the language table is for a certain section in an article, such as on a page listing subjects too minor to have their own articles, it should come at the very end of the section, with its own section being one level lower than the subject's main section.
Line 193: Line 223:
This template uses standard [[Wikipedia:ISO 3166-1|ISO]] codes. The following table contains a list of the currently-usable codes:
This template uses standard [[Wikipedia:ISO 3166-1|ISO]] codes. The following table contains a list of the currently-usable codes:
{{Langtable
{{Langtable
|zh-cn=zh-cn
|ar=ar|arR=arR|arM=arM
|cs=cs
|zh-cn=zh-cn|zh-cnR=zh-cnR|zh-cnM=zh-cnM
|da=da
|zh-tw=zh-tw|zh-twR=zh-twR|zh-twM=zh-twM
|nl=nl
|cs=cs|csM=csM
|en=en<!--
|da=da|daM=daM
|en_au=en_au
|nl=nl|nlM=nlM
|en_ca=en_ca
|en=en|enM=enM
|en_nz=en_nz
|fa=fa|faR=faR|faM=faM
|en_na=en_na
|fi=fi|fiM=fiM
|en_uk=en_uk
|fr=fr|frM=frM
|en_us=en_us-->
|de=de|deM=deM
|fi=fi
|el=el|elR=elR|elM=elM
|fr=fr
|he=he|heR=heR|heM=heM
|fr_ca=fr_ca
|hu=hu|huM=huM
|fr_eu=fr_eu
|is=is|isM=isM
|de=de
|it=it|itM=itM
|he=he
|ja=ja|jaR=jaR|jaM=jaM
|is=is
|ko=ko|koR=koR|koM=koM
|it=it
|ms=ms|msM=msM
|ja=ja
|no=no|noM=noM
|ko=ko
|pl=pl|plM=plM
|no=no
|pt=pt|ptM=ptM
|pl=pl
|ro=ro|roM=roM
|pt=pt
|ru=ru|ruR=ruR|ruM=ruM
|pt_br=pt_br
|es=es|esM=esM
|pt_eu=pt_eu
|sv=sv|svM=svM
|ru=ru
|tr=tr|trM=trM
|es=es
|es_la=es_la
|es_eu=es_eu
|sv=sv
|footnote=footnote}}
|footnote=footnote}}
Further division of languages with significantly different translations for different regions speaking the same language (eg. the different names between American and British releases of some products, as well as any possible differences between European and American versions of other languages) may be desired.  
Further division of languages with significantly different translations for different regions speaking the same language (eg. the different names between American and British releases of some products, as well as any possible differences between European and American versions of other languages) may be desired.  


[[Category:Box templates]][[Category:Language templates]]
[[Category:Box templates]]
[[Category:Language templates]]
</noinclude>
</noinclude>

Latest revision as of 12:45, 19 June 2018

Usage instructions

This template lists all official translations of the names of products, works, objects, locations, or characters across different regions and in different languages.

To use this template, add the shortcut tag {{Langtable}} (or the full tag {{Language table}}) to an article, under its own section. Here is an example of how it should look:

==Names in other languages==
{{Langtable
|xx=name
|xxM=meaning
|xx=name
|xxR=romanized name
|xxM=meaning}}

Where xx is an ISO code, and name is the subject's name in that language. xxM is the name's meaning when translated to English; this column can be disabled by adding the property meaning=no. xxR is the romanized version of a name or phrase in a language not usually written in Latin script; currently Arabic, Chinese, Farsi, Greek, Hebrew, Japanese, Korean, and Russian support this tag.

For subjects with a single dedicate article, this template should be placed near the end of the page, prior to any existing notes, references, and/or external links sections, but after all other sections. If the language table is for a certain section in an article, such as on a page listing subjects too minor to have their own articles, it should come at the very end of the section, with its own section being one level lower than the subject's main section.

List of language codes

This template uses standard ISO codes. The following table contains a list of the currently-usable codes:

Language Name Meaning
Arabic العربية
Al-ʻArabiyyah
ar
arR
arM
Chinese 中文
Zhōngwén
20px China zh-cn
zh-cnR
zh-cnM
20px Taiwan zh-tw
zh-twR
zh-twM
Czech Čeština cs csM
Danish Dansk da daM
Dutch Nederlands nl nlM
English English en enM
Farsi فارسی
Fārsi
fa
faR
faM
Finnish Suomi fi fiM
French Français fr frM
German Deutsch de deM
Greek ελληνικά
Elliniká
el
elR
elM
Hebrew עִבְרִית
Ivrit
he
heR
heM
Hungarian Magyar hu huM
Icelandic Íslenska is isM
Italian Italiano it itM
Japanese 日本語
Nihongo
ja
jaR
jaM
Korean 한국어
Hangugeo
ko
koR
koM
Malay Melayu ms msM
Norwegian Norsk no noM
Polish Polski pl plM
Portuguese Português pt ptM
Romanian Română ro roM
Russian Русский
Russkiy
ru
ruR
ruM
Spanish Español es esM
Swedish Svenska sv svM
Turkish Türkçe tr trM
footnote

Further division of languages with significantly different translations for different regions speaking the same language (eg. the different names between American and British releases of some products, as well as any possible differences between European and American versions of other languages) may be desired.