Difference between revisions of "Help:Interwiki"

From EncyclopAtys

Jump to: navigation, search
m (The "In Other Languages" Menu)
m
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<noinclude>{{TIP|DE=4|EN=0|ES=1|FR=3|RU=1}}{{Trad
 +
|DE = Help:Interwiki |DEs= 4
 +
|EN = Help:Interwiki |ENs= 0
 +
|ES = Help:Interwiki |ESs= 1
 +
|FR = Help:Interwiki |FRs= 3
 +
|RU = Help:Интервики |RUs= 1
 +
|H  =
 +
|palette= Grey
 +
|ref=
 +
|com=
 +
}}
 +
<!-- {{Trad
 +
|EN=Help:Interwiki
 +
|FR=Help:Interwiki}} -->
 
<div style = "float:right;"> <small>__TOC__</small></div>
 
<div style = "float:right;"> <small>__TOC__</small></div>
 
</noinclude>
 
</noinclude>
 
==Introduction==
 
==Introduction==
[[Help:Interwiki |Interwiki]] is a [[:mediawikiwiki:MediaWiki|MediaWiki]] extension that allows to use intenal links format (i.e. <nowiki>[[something]]</nowiki>) instead of external ones, to link to other languages pages and some external wikis such as [[:wikipedia:Wikipedia|Wikipedia]], [[:mediawikiwiki:MediaWiki|MediaWiki]]...<br />
+
[[Help:Interwiki |Interwiki]] is a [[:mediawikiwiki:MediaWiki|MediaWiki]] extension that allows to use internal links format (i.e. <nowiki>[[something]]</nowiki>) instead of external ones, to link to other languages pages and some external wikis such as [[:wikipedia:Wikipedia|Wikipedia]], [[:mediawikiwiki:MediaWiki|MediaWiki]]...<br />
  
It uses a prefix table to redirect addresses, wich is stored in the page : '''[[Special:Interwiki]]'''.
+
It uses a prefix table to redirect addresses, wich is stored in the page: '''[[Special:Interwiki]]'''.
  
 
==Interlanguages Links==
 
==Interlanguages Links==
Line 10: Line 24:
 
:Syntax:
 
:Syntax:
 
::<code>[[''':'''<span style="color: crimson;"><language_code></span>''':'''<span style="color: crimson;"><Full_page_name></span>]]</code>
 
::<code>[[''':'''<span style="color: crimson;"><language_code></span>''':'''<span style="color: crimson;"><Full_page_name></span>]]</code>
Here, available languages codes are : <code>de</code>(&#127465;&#127466;) , <code>en</code>(&#127468;&#127463; , &#127482;&#127474;), <code>es</code>(&#127466;&#127480;), <code>fr</code> (&#127467;&#127479;, &#127463;&#127466;, &#127464;&#127462;) and <code>ru</code> (&#127479;&#127482;) and <code>atys</code> for common <ref>but interwikis work badly with common See for ex some tests on https://fr.wiki.ryzom.com/wiki/Utilisatrice:Craftjenn/NotesCJ#test_interwiki (nginx error messages)  </ref>
+
Here, available languages codes are: <code>de</code>(&#127465;&#127466;) , <code>en</code>(&#127468;&#127463; , &#127482;&#127474;), <code>es</code>(&#127466;&#127480;), <code>fr</code> (&#127467;&#127479;, &#127463;&#127466;, &#127464;&#127462;) and <code>ru</code> (&#127479;&#127482;) and <code>atys</code> for '''Ryzom Commons''' (mostly the pictures) <ref>but interwikis work badly with common See for ex some tests on [[:fr:Utilisatrice:Craftjenn/NotesCJ#test_interwiki]] (nginx error messages)  </ref>
 
:Example :  
 
:Example :  
 
: [[:fr:Guilde:Cercle du Bois d'Almati|<nowiki>[[:fr:Guilde:Cercle du Bois d'Almati]]</nowiki>]]
 
: [[:fr:Guilde:Cercle du Bois d'Almati|<nowiki>[[:fr:Guilde:Cercle du Bois d'Almati]]</nowiki>]]
Line 17: Line 31:
  
 
===The Trad Template===
 
===The Trad Template===
{{Trad
+
 
|DE = Help:Interwiki |DEs= 1
+
The [[Template:Trad|Trad Template]] displays a small languages banner as on the right of this line,  which flags, when displayed, are linking to other languages pages. It can also provide a translation status information. See the '''[[Template:Trad]] page''' for full documentation.
|EN = Help:Interwiki |ENs= 0
 
|ES = Help:Interwiki |ESs= 1
 
|FR = Help:Interwiki |FRs= 1
 
|RU = Help:Interwiki |RUs= 1
 
|H  = 1
 
|palette= Grey
 
|ref=
 
|com=
 
}}
 
The [[Template:Trad| Trad Template]] displays a small languages banner as on the right of this line,  which flags, when displayed, are linking to other languages pages. It can also provide a translation status information. See the '''[[Template:Trad| Trad Template page]]''' for full documentation.
 
 
:Call:
 
:Call:
 
  <nowiki>{{Trad
 
  <nowiki>{{Trad
Line 50: Line 54:
 
[[es:Help:Interwiki]]
 
[[es:Help:Interwiki]]
 
[[fr:Help:Interwiki]]
 
[[fr:Help:Interwiki]]
[[ru:Help:Interwiki]]</nowiki>
+
[[ru:Help:Интервики]]</nowiki>
 
Note that the '''Help:''' namespace does not need to be translated <ref>More on namespaces on [[Wiki Technical Guide#Namespaces]]. When canonical name are the same, no need to translate ns. For ex: https://en.wiki.ryzom.com/w/api.php?action=query&meta=siteinfo&siprop=namespaces show all ns on English wiki.</ref>.
 
Note that the '''Help:''' namespace does not need to be translated <ref>More on namespaces on [[Wiki Technical Guide#Namespaces]]. When canonical name are the same, no need to translate ns. For ex: https://en.wiki.ryzom.com/w/api.php?action=query&meta=siteinfo&siprop=namespaces show all ns on English wiki.</ref>.
  
Line 72: Line 76:
 
Transclusion of other languages are also possible. To include a page of another language just  use:
 
Transclusion of other languages are also possible. To include a page of another language just  use:
  
::<code>{{''':'''<span style="color: crimson;"><language_code></span>''':'''<span style="color: crimson;"><Full_page_name></span>}}</code>
+
::<code>{{''':'''<span style="color: crimson;"><language_code></span>''':'''<span style="color: crimson;"><Full_page_name></span>}}</code> or, more generally : {{''':'''<span style="color: crimson;"><prefix></span>''':'''<span style="color: crimson;"><Full_page_name></span>}}
thus exactly the same as if the page was in the same language space, but the beginning language code. Please note that the <code><nowiki><noinclude></noinclude></nowiki></code>  and <code><nowiki><includeonly></includeonly></nowiki></code> seem to be ignored, and the whole page is transcluded.
+
thus exactly the same as if the page was in the same language space, but the beginning language code. Please note that the <code><nowiki><noinclude></noinclude></nowiki></code>  and <code><nowiki><includeonly></includeonly></nowiki></code> seem to be ignored, and the whole page is transcluded.
  
 
As an example, this page is not translated but transcluded to the other languages instead ( this could change in the future).
 
As an example, this page is not translated but transcluded to the other languages instead ( this could change in the future).
  
==Mediawiki Interwiki Documentation==
+
==Notes and links ==
 +
===Mediawiki Interwiki Documentation===
 
*[[:mediawikiwiki:Extension:Interwiki|Extension:Interwiki]]
 
*[[:mediawikiwiki:Extension:Interwiki|Extension:Interwiki]]
 
*[[:mediawikiwiki:Manual:Interwiki|Manual:Interwiki]]
 
*[[:mediawikiwiki:Manual:Interwiki|Manual:Interwiki]]
Line 83: Line 88:
 
*[[:mediawikiwiki:Interwiki cache|Interwiki cache]]
 
*[[:mediawikiwiki:Interwiki cache|Interwiki cache]]
  
==Note by --[[User:Dorothée|Dorothée]] ([[User talk:Dorothée|talk]]) 10:28, 13 June 2020 (CEST)==
+
===Note by --[[User:Dorothée|Dorothée]] ([[User talk:Dorothée|talk]]) 10:28, 13 June 2020 (CEST)===
* At the moment,  ''only transclusion of english pages are possible''
+
* <s>At the moment,  ''only transclusion of english pages are possible''</s>
* Use of templates of other languages does not seem to be possible, nor copying them with '''"subst:"'''.
+
* Use of templates of other languages ''by transclusion'' is not possible, nor copying a page with '''"subst:"'''. Copying them into their own page is thus required. (upd --[[User:Dorothée|Dorothée]] ([[User talk:Dorothée|talk]]) 07:14, 29 August 2021 (CEST))
 +
 
 +
 
 
<noinclude>
 
<noinclude>
----
+
{{Reflist|subpages=}}
<references/>
+
{{clear}}
----
+
[[de:Help:Interwiki]] [[en:Help:Interwiki]] [[es:Help:Interwiki]] [[fr:Help:Interwiki]] [[ru:Help:Интервики]] [[Category:WikipAtys]] [[Category:Help]] {{last version link|Help:Interwiki}}</noinclude>
{{clear}}{{last version link|Help:Interwiki}}
 
[[de:Help:Interwiki]]
 
[[en:Help:Interwiki]]
 
[[es:Help:Interwiki]]
 
[[fr:Help:Interwiki]]
 
[[ru:Help:Interwiki]]
 
[[Category:Wikipatys|Category:WikipAtys]] [[Category:Help]]</noinclude>
 

Latest revision as of 12:40, 16 March 2022

[Hide]    Script edit.png Translation StatusThis page is one of the 25 we would like to see translated into English.
De.png ÜbersetztGb.png OriginalEs.png Traducción requeridaFr.png Période de relectureRu.png Запрошенный перевод
de:Help:Interwiki
en:Help:Interwiki
es:Help:Interwiki
fr:Help:Interwiki
ru:Help:Интервики
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Ledania, 2022-03-16)

Introduction

Interwiki is a MediaWiki extension that allows to use internal links format (i.e. [[something]]) instead of external ones, to link to other languages pages and some external wikis such as Wikipedia, MediaWiki...

It uses a prefix table to redirect addresses, wich is stored in the page: Special:Interwiki.

Interlanguages Links

Link to a page in another language

Syntax:
[[:<language_code>:<Full_page_name>]]

Here, available languages codes are: de(🇩🇪) , en(🇬🇧 , 🇺🇲), es(🇪🇸), fr (🇫🇷, 🇧🇪, 🇨🇦) and ru (🇷🇺) and atys for Ryzom Commons (mostly the pictures) [1]

Example :
[[:fr:Guilde:Cercle du Bois d'Almati]]
  • The leading ":" is important (see below).
  • Note that Interwiki/interlanguages links have a different color than the other internal links.

The Trad Template

The Trad Template displays a small languages banner as on the right of this line, which flags, when displayed, are linking to other languages pages. It can also provide a translation status information. See the Template:Trad page for full documentation.

Call:
{{Trad
|DE = Page |DEs= (translation status code)
|EN = Page |ENs= 
|ES = Page |ESs= 
|FR = Page |FRs= 
|RU = Page |RUs= 
|H  = (1 for horizontal)
|palette= Theme
|ref= Page_link
|com= Comment
}}

The "In Other Languages" Menu

Interwiki allows to insert an "In Other Languages" Menu in the "Navigation Bar"[2] which provides links to translated pages exactly as the Trad template does. To do so, just insert blind links to the translated pages with the following syntax (no leading ":" ):

[[language_code:Full_Page_Name]] (i.e. with the namespace)

For example, this page's "In Other Languages" Menu is obtained with :

[[de:Help:Interwiki]]
[[en:Help:Interwiki]]
[[es:Help:Interwiki]]
[[fr:Help:Interwiki]]
[[ru:Help:Интервики]]

Note that the Help: namespace does not need to be translated [3].

Linking to Other Wikis

Linking to other wikis follows the same rule, just use the Special:Interwiki prefixes instead of language ones; (wikipedia linking secifies the language AFTER the prefix).

Examples:
internal format Links to
[[:wikipedia:NPC]] https://en.wikipedia.org/wiki/NPC
[[:wikipedia:de:Nicht-Spieler-Charakter]] https://de.wikipedia.org/wiki/Nicht-Spieler-Charakter
[[:mediawikiwiki:Help:Contents]] https://www.mediawiki.org/wiki/Help:Contents

Inter-Languages and Inter-Wiki Transclusion

Transclusion of other languages are also possible. To include a page of another language just use:

{{:<language_code>:<Full_page_name>}} or, more generally : {{:<prefix>:<Full_page_name>}}

thus exactly the same as if the page was in the same language space, but the beginning language code. Please note that the <noinclude></noinclude> and <includeonly></includeonly> seem to be ignored, and the whole page is transcluded.

As an example, this page is not translated but transcluded to the other languages instead ( this could change in the future).

Notes and links

Mediawiki Interwiki Documentation

Note by --Dorothée (talk) 10:28, 13 June 2020 (CEST)

  • At the moment, only transclusion of english pages are possible
  • Use of templates of other languages by transclusion is not possible, nor copying a page with "subst:". Copying them into their own page is thus required. (upd --Dorothée (talk) 07:14, 29 August 2021 (CEST))




  1. Jump up but interwikis work badly with common See for ex some tests on fr:Utilisatrice:Craftjenn/NotesCJ#test_interwiki (nginx error messages)
  2. Jump up See image on atys:File:FR nav toolbar trad 2020-06-14.png, this menu is related to MediaWiki:Sidebar
  3. Jump up More on namespaces on Wiki Technical Guide#Namespaces. When canonical name are the same, no need to translate ns. For ex: https://en.wiki.ryzom.com/w/api.php?action=query&meta=siteinfo&siprop=namespaces show all ns on English wiki.


Last version 2022-03-16•