m |
m (typo) |
||
Line 4: | Line 4: | ||
</noinclude> | </noinclude> | ||
==Introduction== | ==Introduction== | ||
− | [[Help:Interwiki |Interwiki]] is a [[:mediawikiwiki:MediaWiki|MediaWiki]] extension that allows to use | + | [[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 12: | Line 12: | ||
: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>(🇩🇪) , <code>en</code>(🇬🇧 , 🇺🇲), <code>es</code>(🇪🇸), <code>fr</code> (🇫🇷, 🇧🇪, 🇨🇦) and <code>ru</code> (🇷🇺) and <code>atys</code> for common <ref>but interwikis work badly with common See for ex some tests on [[:fr:Utilisatrice:Craftjenn/NotesCJ#test_interwiki]] (nginx error messages) </ref> | + | Here, available languages codes are: <code>de</code>(🇩🇪) , <code>en</code>(🇬🇧 , 🇺🇲), <code>es</code>(🇪🇸), <code>fr</code> (🇫🇷, 🇧🇪, 🇨🇦) and <code>ru</code> (🇷🇺) and <code>atys</code> for common <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 30: | Line 30: | ||
|com= | |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 | + | 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. |
:Call: | :Call: | ||
<nowiki>{{Trad | <nowiki>{{Trad |
Translation Status → This page is one of the 25 we would like to see translated into English. |
Übersetzung angefordert • Original • Traducción requerida • En cours de traduction • Запрошенный перевод |
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.
[[:<language_code>:<Full_page_name>]]
Here, available languages codes are: de
(🇩🇪) , en
(🇬🇧 , 🇺🇲), es
(🇪🇸), fr
(🇫🇷, 🇧🇪, 🇨🇦) and ru
(🇷🇺) and atys
for common [1]
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.
{{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 }}
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:Interwiki]]
Note that the Help: namespace does not need to be translated [3].
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).
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).