Difference between revisions of "Template:Interwiki/doc"

From Protoi Healing

Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Template:Interwiki|<nowiki>{{Interwiki}}</nowiki>]] is a template that serves to link the different language versions of the same article.
+
[[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 template named <tt>Template:InterwikiLink:ArticleName</tt>. 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>Interwiki: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>Interwiki:PierogiWithCheese</code>. If necessary, also include the '''NAMESPACE''' within the "ArticleName".  
  
Second step: put the following code in the template created.
+
Second step: put the following code in the page created.
  
 
<pre>
 
<pre>
Line 17: Line 19:
 
| sv  =  
 
| sv  =  
 
| ch  =  
 
| ch  =  
 +
| enLastUpdated =
 +
| deStatus =
 +
| esStatus =
 +
| frStatus =
 +
| itStatus =
 +
| nlStatus =
 +
| svStatus =
 +
| chStatus =
 +
| store={{{1|yes}}}
 
}}
 
}}
 
</pre>
 
</pre>
  
Third step: add the different names of the article in the appropriate fields. Delete the unused fields. For example:
+
 
 +
Third step: add the different names of the article in the appropriate fields (If necessary, also include the '''NAMESPACE''' within the "ArticleName"). Delete the unused fields. For example:
 
<pre>
 
<pre>
 
{{Interwiki
 
{{Interwiki
| de = Kabeljau
 
 
| en = Cod
 
| en = Cod
| eo = moruo
+
| de = Kabeljau
 
| es = Bacalao
 
| es = Bacalao
 
| sv = Torsk
 
| sv = Torsk
 +
| enLastUpdated = 2016-05-15
 +
| deStatus = ok
 +
| esStatus = update needed
 +
| svStatus = update needed
 +
| store={{{1|yes}}}
 
}}
 
}}
 
</pre>
 
</pre>
or for categories:
+
 
 +
 
 +
Fourth and last step: add the following code at the top of the original article and also in all language versions of the article.
 +
 
 
<pre>
 
<pre>
{{
+
{{:Interwiki:ArticleName|no}}
| en  = :Category:Animals
+
| es  = :Category:Animales
+
}}
+
 
</pre>
 
</pre>
Fourth and last step: add the following code at the top of the original article and also in all language versions of the article.
 
  
 +
Replacing "ArticleName" by the original name of the article (in English) without spaces and using UpperCamelCase style.<br/>Sample:
 
<pre>
 
<pre>
{{InterwikiLink:ArticleName}}
+
{{:Interwiki:PierogiWithCheese|no}}
 
</pre>
 
</pre>
  
Replacing "ArticleName" by the original name of the article (in English) without spaces and using UpperCamelCase style.
 
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:46, 19 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 Interwiki: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 Interwiki:PierogiWithCheese. If necessary, also include the NAMESPACE within the "ArticleName".

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

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


Third step: add the different names of the article in the appropriate fields (If necessary, also include the NAMESPACE within the "ArticleName"). 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
| store={{{1|yes}}}
}}


Fourth and last step: add the following code at the top of the original article and also in all language versions of the article.

{{:Interwiki:ArticleName|no}}

Replacing "ArticleName" by the original name of the article (in English) without spaces and using UpperCamelCase style.
Sample:

{{:Interwiki:PierogiWithCheese|no}}