Difference between revisions of "Template:Interwiki"

From Cantr II Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
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>}} &bull; {{if|test={{{en|}}}|then=[[{{{en}}}|English]]|else=<font color="#999"><small>English</small></font>}} &bull; {{if|test={{{es|}}}|then=[[{{{es}}}|Español]]|else=<font color="#999"><small>Español</small></font>}} &bull; {{if|test={{{eo|}}}|then=[[{{{eo}}}|Esperanto]]|else=<font color="#999"><small>Esperanto</small></font>}} &bull; {{if|test={{{fr|}}}|then=[[{{{fr}}}|Français]]|else=<font color="#999"><small>Français</small></font>}} &bull; {{if|test={{{lt|}}}|then=[[{{{lt}}}|Latviešu]]|else=<font color="#999"><small>Latviešu</small></font>}} &bull; {{if|test={{{jbo|}}}|then=[[{{{jbo}}}|Lojban]]|else=<font color="#999"><small>Lojban</small></font>}} &bull; {{if|test={{{nl|}}}|then=[[{{{nl}}}|Nederlands]]|else=<font color="#999"><small>Nederlands</small></font>}} &bull; {{if|test={{{pl|}}}|then=[[{{{pl}}}|Polska]]|else=<font color="#999"><small>Polska</small></font>}} &bull; {{if|test={{{pt|}}}|then=[[{{{pt}}}|Português]]|else=<font color="#999"><small>Português</small></font>}} &bull; {{if|test={{{ru|}}}|then=[[{{{ru}}}|Русский]]|else=<font color="#999"><small>Русский</small></font>}} &bull; {{if|test={{{fi|}}}|then=[[{{{fi}}}|Suomi]]|else=<font color="#999"><small>Suomi</small></font>}} &bull; {{if|test={{{sv|}}}|then=[[{{{sv}}}|Svenska]]|else=<font color="#999"><small>Svenska</small></font>}} &bull; {{if|test={{{tr|}}}|then=[[{{{tr}}}|Türkçe]]|else=<font color="#999"><small>Türkçe</small></font>}} &bull; {{if|test={{{ch|}}}|then=[[{{{ch}}}|中文]]|else=<font color="#999"><small>中文</small></font>}} {{if|test={{{edit|}}}|then=[[{{{edit}}}]]}}
+
{{if|test={{{bg|}}}|then=[[{{{bg}}}|български]]|else=<font color="#999"><small>български</small></font>}} &bull;
 +
{{if|test={{{de|}}}|then=[[{{{de}}}|Deutsch]]|else=<font color="#999"><small>Deutsch</small></font>}} &bull;
 +
{{if|test={{{en|}}}|then=[[{{{en}}}|English]]|else=<font color="#999"><small>English</small></font>}} &bull;
 +
{{if|test={{{es|}}}|then=[[{{{es}}}|Español]]|else=<font color="#999"><small>Español</small></font>}} &bull;
 +
{{if|test={{{eo|}}}|then=[[{{{eo}}}|Esperanto]]|else=<font color="#999"><small>Esperanto</small></font>}} &bull;
 +
{{if|test={{{fr|}}}|then=[[{{{fr}}}|Français]]|else=<font color="#999"><small>Français</small></font>}} &bull;
 +
{{if|test={{{it|}}}|then=[[{{{it}}}|Italiano]]|else=<font color="#999"><small>Italiano</small></font>}} &bull;
 +
{{if|test={{{lt|}}}|then=[[{{{lt}}}|Lietuvių]]|else=<font color="#999"><small>Lietuvių</small></font>}} &bull;
 +
{{if|test={{{jbo|}}}|then=[[{{{jbo}}}|Lojban]]|else=<font color="#999"><small>Lojban</small></font>}} &bull;
 +
{{if|test={{{nl|}}}|then=[[{{{nl}}}|Nederlands]]|else=<font color="#999"><small>Nederlands</small></font>}} &bull;
 +
{{if|test={{{pl|}}}|then=[[{{{pl}}}|Polska]]|else=<font color="#999"><small>Polska</small></font>}} &bull;
 +
{{if|test={{{pt|}}}|then=[[{{{pt}}}|Português]]|else=<font color="#999"><small>Português</small></font>}} &bull;
 +
{{if|test={{{ru|}}}|then=[[{{{ru}}}|Русский]]|else=<font color="#999"><small>Русский</small></font>}} &bull;
 +
{{if|test={{{fi|}}}|then=[[{{{fi}}}|Suomi]]|else=<font color="#999"><small>Suomi</small></font>}} &bull;
 +
{{if|test={{{sv|}}}|then=[[{{{sv}}}|Svenska]]|else=<font color="#999"><small>Svenska</small></font>}} &bull;
 +
{{if|test={{{tr|}}}|then=[[{{{tr}}}|Türkçe]]|else=<font color="#999"><small>Türkçe</small></font>}} &bull;
 +
{{if|test={{{ch|}}}|then=[[{{{ch}}}|中文]]|else=<font color="#999"><small>中文</small></font>}}
 
</td></tr></table><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]][[Category:Plantillas|{{PAGENAME}}]]</noinclude>
 
</td></tr></table><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]][[Category:Plantillas|{{PAGENAME}}]]</noinclude>

Latest revision as of 09:43, 8 September 2015

Interwiki

българскиDeutschEnglishEspañolEsperantoFrançaisItalianoLietuviųLojbanNederlandsPolskaPortuguêsРусскийSuomiSvenskaTürkçe中文

Template documentation[ view ] [ discuss ] [edit]

{{Interwiki}} is a template that serves to link the different language versions of the same article.

Usage

First 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.