Difference between revisions of "Template:Interwiki/doc"

From Cantr II Wiki
Jump to: navigation, search
(Usage)
m (Usage)
Line 9: Line 9:
 
<pre>
 
<pre>
 
{{Interwiki
 
{{Interwiki
| de =  
+
| de =  
| en =  
+
| en =  
| es =  
+
| es =  
| eo =  
+
| eo =  
| fr =  
+
| fr =  
| lt =  
+
| lt =  
 
| jbo =  
 
| jbo =  
| nl =  
+
| nl =  
| pl =  
+
| pl =  
| pt =  
+
| pt =  
| ru =  
+
| ru =  
| fi =  
+
| fi =  
| sv =  
+
| sv =  
| tr =  
+
| tr =  
| ch =  
+
| ch =  
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 10:23, 21 December 2010

{{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
| de  = 
| en  = 
| es  = 
| eo  = 
| fr  = 
| lt  = 
| jbo = 
| nl  = 
| pl  = 
| pt  = 
| ru  = 
| fi  = 
| sv  = 
| tr  = 
| ch  = 
}}

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.