Difference between revisions of "Template:Interwiki"

From Protoi Healing

Jump to: navigation, search
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="toccolours" style="text-align:center; margin:0 0 4px 0; padding:4px 4px 0px 4px; width:100%;" cellpadding="0px" cellspacing="0px">
+
<noinclude>
<tr><th style="background:#ffcccc; font-size: larger;">Interwiki<span style="font-size: small; float: right; font-weight: normal;">[{{fullurl:Template:InterwikiLink:{{{en|}}}|action=edit}} edit language page]</span>
+
 
</th></tr><tr><td>
+
{{#cargo_declare:_table=interwiki
{{if|test={{{de|}}}|then=[[{{{de}}}|Deutsch]]|else=<font color="#999"><small>Deutsch</small></font>}} &bull;
+
|en=Page
{{if|test={{{en|}}}|then=[[{{{en}}}|English]]|else=<font color="#999"><small>English</small></font>}} &bull;
+
|de=Page
{{if|test={{{es|}}}|then=[[{{{es}}}|Español]]|else=<font color="#999"><small>Español</small></font>}} &bull;
+
|es=Page
{{if|test={{{fr|}}}|then=[[{{{fr}}}|Français]]|else=<font color="#999"><small>Français</small></font>}} &bull;
+
|fr=Page
{{if|test={{{it|}}}|then=[[{{{it}}}|Italiano]]|else=<font color="#999"><small>Italiano</small></font>}} &bull;
+
|it=Page
{{if|test={{{nl|}}}|then=[[{{{nl}}}|Nederlands]]|else=<font color="#999"><small>Nederlands</small></font>}} &bull;
+
|nl=Page
{{if|test={{{sv|}}}|then=[[{{{sv}}}|Svenska]]|else=<font color="#999"><small>Svenska</small></font>}} &bull;
+
|sv=Page
{{if|test={{{ch|}}}|then=[[{{{ch}}}|中文]]|else=<font color="#999"><small>中文</small></font>}}
+
|ch=Page
</td></tr></table><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
|enLastUpdated=Date
[{{fullurl:Template:InterwikiLink:{{{en|}}}|action=edit}} edit language]
+
|deStatus=Text
 +
|esStatus=Text
 +
|frStatus=Text
 +
|itStatus=Text
 +
|nlStatus=Text
 +
|svStatus=Text
 +
|chStatus=Text
 +
}}
 +
 
 +
</noinclude><table class="toccolours" style="text-align:center; margin:7px 0px 7px 0px; padding:4px 4px 0px 4px; width:890px; color: #09340c; " cellpadding="0px" cellspacing="0px">
 +
<tr><th style="background:#baf2bd; font-size: larger;">Interwiki</th></tr><tr><td>
 +
{{if|test={{{de|}}}|then=[[{{{de}}}|Deutsch]]|else=<font color="#999"><small>Deutsch</small></font>}}
 +
{{if|test={{{en|}}}|then=[[{{{en}}}|English]]|else=<font color="#999"><small>English</small></font>}}
 +
{{if|test={{{es|}}}|then=[[{{{es}}}|Español]]|else=<font color="#999"><small>Español</small></font>}}
 +
{{if|test={{{fr|}}}|then=[[{{{fr}}}|Français]]|else=<font color="#999"><small>Français</small></font>}}
 +
{{if|test={{{it|}}}|then=[[{{{it}}}|Italiano]]|else=<font color="#999"><small>Italiano</small></font>}}
 +
{{if|test={{{nl|}}}|then=[[{{{nl}}}|Nederlands]]|else=<font color="#999"><small>Nederlands</small></font>}}
 +
{{if|test={{{sv|}}}|then=[[{{{sv}}}|Svenska]]|else=<font color="#999"><small>Svenska</small></font>}}
 +
{{if|test={{{ch|}}}|then=[[{{{ch}}}|中文]]|else=<font color="#999"><small>中文</small></font>}} <span style="font-size: x-small; font-weight: normal; float: right; ">({{#formlink:form=Interwiki|link text=edit language page|target=Interwiki:{{{en}}}|returnto={{FULLPAGENAME}} }})</span>
 +
</td></tr></table><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude><includeonly><!--
 +
 
 +
--><includeonly>{{#cargo_store:_table=interwiki
 +
|en={{{en|}}}
 +
|de={{{de|}}}
 +
|es={{{es|}}}
 +
|fr={{{fr|}}}
 +
|it={{{it|}}}
 +
|nl={{{nl|}}}
 +
|sv={{{sv|}}}
 +
|ch={{{ch|}}}
 +
|enLastUpdated={{{enLastUpdated|}}}
 +
|deStatus={{{deStatus|}}}
 +
|esStatus={{{esStatus|}}}
 +
|frStatus={{{frStatus|}}}
 +
|itStatus={{{itStatus|}}}
 +
|nlStatus={{{nlStatus|}}}
 +
|svStatus={{{svStatus|}}}
 +
|chStatus={{{chStatus|}}}
 +
}}{{#ifeq:{{{store|no}}}|yes|{{#default_form:Interwiki}}|}}</includeonly>

Latest revision as of 22:46, 5 June 2016


This template defines the table "interwiki". View table.

Interwiki

DeutschEnglishEspañolFrançaisItalianoNederlandsSvenska中文 (edit language page)

Template documentation[ view ] [ discuss ] [edit]

{{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}}