Template:Other languages

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
(Yo puse el idioma Mapudungun en las categorías (I put the Mapudungun language in the categories))
(Added Japanese)
Line 38: Line 38:
 
-->{{#if:{{{vi|}}}|<div style="display:inline-block; height: 3em; width: 26px; text-align:center;">[[Image:Flag_Vi.png|link={{{vi}}}/Vi | alt=vi | 22x16px | frameless]]<br/>[[{{{vi}}}/Vi|VI]]</div>}}<!--
 
-->{{#if:{{{vi|}}}|<div style="display:inline-block; height: 3em; width: 26px; text-align:center;">[[Image:Flag_Vi.png|link={{{vi}}}/Vi | alt=vi | 22x16px | frameless]]<br/>[[{{{vi}}}/Vi|VI]]</div>}}<!--
 
-->{{#if:{{{zh|}}}|<div style="display:inline-block; height: 3em; width: 26px; text-align:center;">[[Image:Flag_Zh.png|link={{{zh}}}/Zh | alt=zh | 22x16px | frameless]]<br/>[[{{{zh}}}/Zh|ZH]]</div>}}<!--
 
-->{{#if:{{{zh|}}}|<div style="display:inline-block; height: 3em; width: 26px; text-align:center;">[[Image:Flag_Zh.png|link={{{zh}}}/Zh | alt=zh | 22x16px | frameless]]<br/>[[{{{zh}}}/Zh|ZH]]</div>}}<!--
 +
-->{{#if:{{{ja|}}}|<div style="display:inline-block; height: 3em; width: 26px; text-align:center;">[[Image:Flag_Ja.png|link={{{ja}}}/Ja | alt=ja | 22x16px | frameless]]<br/>[[{{{ja}}}/Ja|JA]]</div>}}<!--
 
--><div style="display:inline-block; height: 3em; width: 26px; text-align:center;"><!-- === Main page ===========
 
--><div style="display:inline-block; height: 3em; width: 26px; text-align:center;"><!-- === Main page ===========
 
-->{{#switch: {{lc:{{{language_page|}}}}}
 
-->{{#switch: {{lc:{{{language_page|}}}}}
Line 68: Line 69:
 
  | vi = [[Image:Openttd.ico.png|link=Trang Chính/Vi| 22x21px | frameless]]<br/>[[Trang Chính/tc|Trang Chính/tc]]
 
  | vi = [[Image:Openttd.ico.png|link=Trang Chính/Vi| 22x21px | frameless]]<br/>[[Trang Chính/tc|Trang Chính/tc]]
 
  | zh = [[Image:Openttd.ico.png|link=首页/Zh| 22x21px | frameless]]<br/>[[首页/Zh|首]]
 
  | zh = [[Image:Openttd.ico.png|link=首页/Zh| 22x21px | frameless]]<br/>[[首页/Zh|首]]
 +
| ja = [[Image:Openttd.ico.png|link=メインページ/Ja| 22x21px | frameless]]<br/>[[メインページ/Ja|ホーム]]
 
  |  
 
  |  
 
}}</div></div><!--  ==============Files===============
 
}}</div></div><!--  ==============Files===============
Line 97: Line 99:
 
  | vi = [[Category:Các bài viết bằng tiếng Việt/Vi]]
 
  | vi = [[Category:Các bài viết bằng tiếng Việt/Vi]]
 
  | zh = [[Category:中文文章/Zh]]
 
  | zh = [[Category:中文文章/Zh]]
 +
| ja = [[Category:日本語のページ/Ja]]
 
  |  
 
  |  
 
}}<!--
 
}}<!--
Line 134: Line 137:
 
|vi=
 
|vi=
 
|zh=
 
|zh=
 +
|ja=
 
|language_page=
 
|language_page=
 
|float=
 
|float=
Line 218: Line 222:
 
*[[Image:Flag_Vi.png]] vi = Vietnamese (Tiếng Việt)
 
*[[Image:Flag_Vi.png]] vi = Vietnamese (Tiếng Việt)
 
*[[Image:Flag_Zh.png]] zh = Chinese (中文)
 
*[[Image:Flag_Zh.png]] zh = Chinese (中文)
 +
*[[Image:Flag_Ja.png]] ja = Japanese (日本語)
  
  
Line 278: Line 283:
 
|-
 
|-
 
|<code>zh</code>|| [[:Category:中文文章/Zh]]
 
|<code>zh</code>|| [[:Category:中文文章/Zh]]
 +
|-
 +
|<code>ja</code>|| [[:Category:日本語のページ/Ja]]
 
|}
 
|}
  

Revision as of 22:14, 16 June 2018


For files use Template:Other languages files
For categories use Template:Other languages categories


Usage

The flags are links to translations of an original article in English to other languages.

Simple usage:

{{Other_languages
|en=
|ca=
|cs=
|de=
|el=
|es=
|fi=
|fr=
|gd=
|hr=
|hu=
|it=
|ko=
|lb=
|mp=
|nl=
|no=
|pl=
|pt=
|ro=
|ru=
|sk=
|sl=
|sr=
|tr=
|uk=
|vi=
|zh=
|ja=
|language_page=
|float=
}}

language_page parameter indicates the language of the page.

Examples

Example 1:

{{Other_languages
|en=Tutorial
|ca=Tutorial
|de=Tutorial
|es=Tutorial
|fr=Tutoriel
|pt=Tutorial
|ru=Учебник
|zh=教程
}}


Example 2:

{{Other_languages
|en=Main Page
|cs=Hlavní strana
|fi=Etusivu
|it=Pagina principale
|pt=Página principal
|ru=Главная страница
|sk=Hlavná stránka
|zh=首页
|float=left
}}


All languages & flags

  • Flag En.png en = English
  • Flag Ca.png ca = Catalan (català)
  • Flag Cs.png cs = Czech (Česky)
  • Flag De.png de = German (Deutsch)
  • Flag El.png el = Greek (Ελληνικά)
  • Flag Es.png es = Spanish (Español)
  • Flag Fi.png fi = Finnish (Suomi)
  • Flag Fr.png fr = French (Français)
  • Flag Gd.png gd = Scottish Gaelic (Gàidhlig)
  • Flag Hr.png hr = Croatian (Hrvatski)
  • Flag Hu.png hu = Hungarian (Magyar)
  • Flag It.png it = Italian (Italiano)
  • Flag Ko.png ko = Korean (한국어)
  • Flag Lb.png lb = Luxembourgish (Lëtzebuergesch)
  • Flag Mp.png mp = Mapudungun (Mapudungun)
  • Flag Nl.png nl = Dutch (Nederlands)
  • Flag No.png no = Norwegian (Norsk)
  • Flag Pl.png pl = Polish (Polski)
  • Flag Pt.png pt = Portuguese (Português)
  • Flag Ro.png ro = Romanian (Română)
  • Flag Ru.png ru = Russian (Русский)
  • Flag Sk.png sk = Slovak (Slovenčina)
  • Flag Sl.png sl = Slovenian (Slovenščina)
  • Flag Sr.png sr = Serbian (Srpski)
  • Flag Tr.png tr = Turkish (Türkçe)
  • Flag Uk.png uk = Ukrainian (Українська)
  • Flag Vi.png vi = Vietnamese (Tiếng Việt)
  • Flag Zh.png zh = Chinese (中文)
  • Flag Ja.png ja = Japanese (日本語)


The parameter "language_page" indicates the language of the page:

language_page= The article will be added to...
ca Category:Articles en català/Ca
cs Category:Články v českých/Cs
de Category:Artikel in deutscher Sprache/De
el Category:Τα άρθρα στην ελληνική γλώσσα/El
es Category:Artículos en español/Es
fi Category:Artikkelit suomeksi/Fi
fr Category:Articles en français/Fr
gd Category:Aistidhean sa Ghàidhlig/Gd
hr Category:Članci na hrvatskom/Hr
hu Category:Cikkek magyar/Hu
it Category:Articoli in italiano/It
ko Category:한국어 문서/Ko
lb Category:Artikelen op Lëtzebuergesch/Lb
mp
nl Category:Artikelen in het Nederlands/Nl
no Category:Artikler i norske/No
pl Category:Artykuły w języku polskim/Pl
pt Category:Artigos em Português/Pt
ro Category:Articole în limba română/Ro
ru Category:Статьи на русском языке/Ru
sk Category:Články na slovenské/Sk
sl Category:Članki v slovenščini/Sl
sr Category:Članci na srpskom/Sr
tr Category:Türk Makaleler/Tr
uk Category:Статті на українській мові/Uk
vi Category:Các bài viết bằng tiếng Việt/Vi
zh Category:中文文章/Zh
ja Category:日本語のページ/Ja

See: Category:Articles in other languages

Personal tools