Template:Other languages

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
(test edit2)
(revert)
Line 6: Line 6:
 
<table cellpadding="0" cellspacing="0" border="0" align="center">
 
<table cellpadding="0" cellspacing="0" border="0" align="center">
 
<tr align="center" valign="top"><!--
 
<tr align="center" valign="top"><!--
-->{{#if:{{{en|}}}|<td width=25px>{{Image:Flag_En.png|width=auto|height=auto|{{{en}}}}}</td>}}<!--
+
-->{{#if:{{{en|}}}|<td width=25px>{{#imagelink: Flag_En.png|{{{en}}}}}</td>}}<!--
 
-->{{#if:{{{ca|}}}|<td width=25px>{{#imagelink: Flag_Ca.png|{{{ca}}}/Ca}}</td>}}<!--
 
-->{{#if:{{{ca|}}}|<td width=25px>{{#imagelink: Flag_Ca.png|{{{ca}}}/Ca}}</td>}}<!--
 
-->{{#if:{{{cs|}}}|<td width=25px>{{#imagelink: Flag_Cs.png|{{{cs}}}/Cs}}</td>}}<!--
 
-->{{#if:{{{cs|}}}|<td width=25px>{{#imagelink: Flag_Cs.png|{{{cs}}}/Cs}}</td>}}<!--

Revision as of 08:57, 22 June 2011

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

Usage

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

Simple usage:

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

language_page parameter indicates the language of the page.

Examples

Example 1:

Flag En.png Flag Ca.png Flag De.png Flag Es.png Flag Fr.png Flag It.png Flag Pt.png Flag Ru.png Flag Zh.png
EN CA DE ES FR IT PT RU ZH
{{Other_languages
|en=Tutorial
|ca=Tutorial
|de=Tutorial
|es=Tutorial
|fr=Tutoriel
|it=Lezione
|pt=Tutorial
|ru=Учебник
|zh=教程
}}

Example 2:

Flag En.png Flag Ca.png Flag Es.png Flag Pt.png Flag Zh.png
EN CA ES PT ZH
{{Other_languages
|en=Tutorial
|ca=Tutorial
|de=
|es=Tutorial
|fr=
|it=
|pt=Tutorial
|ru=
|zh=教程
}}

All languages & flags

Flag En.png Flag Ca.png Flag Cs.png Flag De.png Flag El.png Flag Es.png Flag Fi.png Flag Fr.png Flag Hr.png Flag Hu.png Flag It.png Flag Lb.png Flag Nl.png Flag No.png Flag Pl.png Flag Pt.png Flag Ro.png Flag Ru.png Flag Sk.png Flag Sl.png Flag Sr.png Flag Tr.png Flag Vi.png Flag Zh.png
EN CA CS DE EL ES FI FR HR HU IT LB NL NO PL PT RO RU SK SL SR TR VI ZH
|en=english
|ca=catalan (català)
|cs=Czech (Česky)
|de=German (Deutsch)
|el=Greek (Ελληνικά)
|es=Spanish (Español)
|fi=Finnish (Suomi)
|fr=French (Français)
|hr=Croatian (Hrvatski)
|hu=Hungarian (Magyar)
|it=Italian (Italiano)
|lb=Luxembourgish (Lëtzebuergesch)
|nl=Dutch (Nederlands)
|no=Norwegian (Norsk)
|pl=Polish (Polski)
|pt=Portuguese (Português)
|ro=Romanian (Română)
|ru=Russian (Русский)
|sk=Slovak (Slovenčina)
|sl=Slovenian (Slovenščina)
|sr=Serbian (Srpski)
|tr=Turkish (Türkçe)
|vi=Vietnamese (Tiếng Việt)
|zh=Chinese (漢語)

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
hr Category:Članci na hrvatskom/Hr
hu Category:Cikkek magyar/Hu
it Category:Articoli in italiano/It
lb Category:Artikelen op Lëtzebuergesch/Lb
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
vi
zh

See: Category:Articles_in_other_languages

Personal tools