Template:Interwiki/doc

From Cantr II Wiki
Jump to: navigation, search

{{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.
http://wiki.cantr.net/index.php/Template:Interwiki/doc
wiki.cantr.net
crawl=CC-MAIN-2022-21
13909
application/http; msgtype=response
sha1:7AYHYHXZN5CXNHTA3YCLHYA4I3RQJGJE
<urn:uuid:5dc29611-cddc-4cdb-81a9-1aba9400d77e>
2022-05-22T10:03:19Z
138.201.119.138
text/html
sha1:YB5F4VO3EHD74YVXS2H7KIXJWD5JI32F
<urn:uuid:f84efb62-69c2-4fe5-8ffe-8ff2bacee6ef>
http://wiki.cantr.net/index.php/Template:Interwiki/doc
response
<urn:uuid:314785d8-cc6b-48b7-8b04-5382ddc50b3d>
isPartOf: CC-MAIN-2022-21
publisher: Common Crawl
description: Wide crawl of the web for May 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-209
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/