Difference between revisions of "Template:Interwiki"
Line 2: | Line 2: | ||
<tr><th style="background:#ffcccc; font-size: larger;">Interwiki | <tr><th style="background:#ffcccc; font-size: larger;">Interwiki | ||
</th></tr><tr><td> | </th></tr><tr><td> | ||
− | {{if|test={{{de|}}}|then=[[{{{de}}}|Deutsch]]|else=<font color="#999"><small>Deutsch</small></font>}} • {{if|test={{{en|}}}|then=[[{{{en}}}|English]]|else=<font color="#999"><small>English</small></font>}} • {{if|test={{{es|}}}|then=[[{{{es}}}|Español]]|else=<font color="#999"><small>Español</small></font>}} • {{if|test={{{eo|}}}|then=[[{{{eo}}}|Esperanto]]|else=<font color="#999"><small>Esperanto</small></font>}} • {{if|test={{{fr|}}}|then=[[{{{fr}}}|Français]]|else=<font color="#999"><small>Français</small></font>}} • {{if|test={{{lt|}}}|then=[[{{{lt}}}|Latviešu]]|else=<font color="#999"><small>Latviešu</small></font>}} • {{if|test={{{jbo|}}}|then=[[{{{jbo}}}|Lojban]]|else=<font color="#999"><small>Lojban</small></font>}} • {{if|test={{{nl|}}}|then=[[{{{nl}}}|Nederlands]]|else=<font color="#999"><small>Nederlands</small></font>}} • {{if|test={{{pl|}}}|then=[[{{{pl}}}|Polska]]|else=<font color="#999"><small>Polska</small></font>}} • {{if|test={{{pt|}}}|then=[[{{{pt}}}|Português]]|else=<font color="#999"><small>Português</small></font>}} • {{if|test={{{ru|}}}|then=[[{{{ru}}}|Русский]]|else=<font color="#999"><small>Русский</small></font>}} • {{if|test={{{fi|}}}|then=[[{{{fi}}}|Suomi]]|else=<font color="#999"><small>Suomi</small></font>}} • {{if|test={{{sv|}}}|then=[[{{{sv}}}|Svenska]]|else=<font color="#999"><small>Svenska</small></font>}} • {{if|test={{{tr|}}}|then=[[{{{tr}}}|Türkçe]]|else=<font color="#999"><small>Türkçe</small></font>}} • {{if|test={{{ch|}}}|then=[[{{{ch}}}|中文]]|else=<font color="#999"><small>中文</small></font>}}{{if|test={{{edit|}}}then=[[{{{edit}}}|edit]]}} | + | {{if|test={{{de|}}}|then=[[{{{de}}}|Deutsch]]|else=<font color="#999"><small>Deutsch</small></font>}} • {{if|test={{{en|}}}|then=[[{{{en}}}|English]]|else=<font color="#999"><small>English</small></font>}} • {{if|test={{{es|}}}|then=[[{{{es}}}|Español]]|else=<font color="#999"><small>Español</small></font>}} • {{if|test={{{eo|}}}|then=[[{{{eo}}}|Esperanto]]|else=<font color="#999"><small>Esperanto</small></font>}} • {{if|test={{{fr|}}}|then=[[{{{fr}}}|Français]]|else=<font color="#999"><small>Français</small></font>}} • {{if|test={{{lt|}}}|then=[[{{{lt}}}|Latviešu]]|else=<font color="#999"><small>Latviešu</small></font>}} • {{if|test={{{jbo|}}}|then=[[{{{jbo}}}|Lojban]]|else=<font color="#999"><small>Lojban</small></font>}} • {{if|test={{{nl|}}}|then=[[{{{nl}}}|Nederlands]]|else=<font color="#999"><small>Nederlands</small></font>}} • {{if|test={{{pl|}}}|then=[[{{{pl}}}|Polska]]|else=<font color="#999"><small>Polska</small></font>}} • {{if|test={{{pt|}}}|then=[[{{{pt}}}|Português]]|else=<font color="#999"><small>Português</small></font>}} • {{if|test={{{ru|}}}|then=[[{{{ru}}}|Русский]]|else=<font color="#999"><small>Русский</small></font>}} • {{if|test={{{fi|}}}|then=[[{{{fi}}}|Suomi]]|else=<font color="#999"><small>Suomi</small></font>}} • {{if|test={{{sv|}}}|then=[[{{{sv}}}|Svenska]]|else=<font color="#999"><small>Svenska</small></font>}} • {{if|test={{{tr|}}}|then=[[{{{tr}}}|Türkçe]]|else=<font color="#999"><small>Türkçe</small></font>}} • {{if|test={{{ch|}}}|then=[[{{{ch}}}|中文]]|else=<font color="#999"><small>中文</small></font>}} {{if|test={{{edit|}}}|then=[[{{{edit}}}|edit]]}} |
</td></tr></table><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]][[Category:Plantillas|{{PAGENAME}}]]</noinclude> | </td></tr></table><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]][[Category:Plantillas|{{PAGENAME}}]]</noinclude> |
Revision as of 14:10, 8 December 2010
Interwiki |
---|
Deutsch • English • Español • Esperanto • Français • Latviešu • Lojban • Nederlands • Polska • Português • Русский • Suomi • Svenska • Türkçe • 中文 |
{{Interwiki}} is a template that serves to link the different language versions of the same article. UsageFirst step: create a template named Template:InterwikiLink:ArticleName. Replacing "ArticleName" by the original name of the article (in English) without spaces and using UpperCamelCase style. Example: for the article "Pierogi with cheese" create the template Template:InterwikiLink:PierogiWithCheese. If necessary, also include the NAMESPACE within the name. Example: for the category "Animals" create the template Template:InterwikiLink:CategoryAnimals. Second step: put the following code in the template created. {{Interwiki | bg = | ch = | de = | en = | eo = | es = | fi = | fr = | it = | jbo = | lt = | nl = | pl = | pt = | ru = | sv = | tr = }} Third step: add the different names of the article in the appropriate fields. Delete the unused fields. For example: {{Interwiki | de = Kabeljau | en = Cod | eo = moruo | es = Bacalao | sv = Torsk }} or for categories: {{ | en = :Category:Animals | es = :Category:Animales }} Fourth and last step: add the following code at the top of the original article and also in all language versions of the article. {{InterwikiLink:ArticleName}} Replacing "ArticleName" by the original name of the article (in English) without spaces and using UpperCamelCase style. |