Difference between revisions of "Template:Interwiki/doc"

From Protoi Healing

Jump to: navigation, search
Line 1: Line 1:
[[Template:Interwiki|<nowiki>{{Interwiki}}</nowiki>]] is a template that serves to link the different language versions of the same article. '''The English page is always the leading page. All updates have to be done there first!'''
+
[[Template:Interwiki|<nowiki>{{Interwiki}}</nowiki>]] is a template that serves to link the different language versions of the same article.  
 +
 
 +
'''The English page is always the leading page. All updates have to be done there first!'''
  
 
== Usage ==
 
== Usage ==
  
First step: create a page named <code>InterwikiLink:ArticleName</code>. 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 <tt>Template:InterwikiLink:PierogiWithCheese</tt>. If necessary, also include the '''NAMESPACE''' within the name. Example: for the category "Animals" create the template <tt>Template:InterwikiLink:CategoryAnimals</tt>.
+
First step: create a page named <code>InterwikiLink:ArticleName</code>. 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 page <code>InterwikiLink:PierogiWithCheese</code>. If necessary, also include the '''NAMESPACE''' within the name.  
  
 
Second step: put the following code in the template created.
 
Second step: put the following code in the template created.

Revision as of 17:24, 18 May 2016

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

The English page is always the leading page. All updates have to be done there first!

Usage

First step: create a page named 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 page InterwikiLink:PierogiWithCheese. If necessary, also include the NAMESPACE within the name.

Second step: put the following code in the template created.

{{Interwiki
| de  = 
| en  = 
| eo  = 
| fr  = 
| it  =
| nl  = 
| sv  = 
| ch  = 
| enLastUpdated =
| deStatus =
| esStatus =
| frStatus =
| itStatus =
| nlStatus =
| svStatus =
| chStatus =
}}


Third step: add the different names of the article in the appropriate fields. Delete the unused fields. For example:

{{Interwiki
| en = Cod
| de = Kabeljau
| es = Bacalao
| sv = Torsk
| enLastUpdated = 2016-05-15
| deStatus = ok
| esStatus = update needed
| svStatus = update needed
}}


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.