FS#17580 - {wiki} interwiki interlanguage links
Attached to Project:
Arch Linux
Opened by Desmond Cox (pointone) - Tuesday, 22 December 2009, 19:01 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 26 April 2012, 09:24 GMT
Opened by Desmond Cox (pointone) - Tuesday, 22 December 2009, 19:01 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 26 April 2012, 09:24 GMT
|
Details
Description:
I recently revived discussions on the topic of ArchWiki internationalization at <http://bbs.archlinux.org/viewtopic.php?id=87189> wherein the existence of separate non-English wikis was considered. Currently, the separate wikis are not integrated with the ArchWiki in any way; interwiki linking should be possible to facilitate internationalization. Please see <http://www.mediawiki.org/wiki/Manual:Interwiki> for implementation details (I am no expert!) I will attempt to provide examples in the form of (iw_prefix: iw_url) for the international wikis I am aware of: (de: https://wiki.archlinux.de/title/$1) (cl: http://wiki.archlinux.cl/index.php?title=$1) (Chilean Spanish; not sure if prefix should be "es-CL" instead?) (es: http://www.archlinux-es.org/wiki/index.php?title=$1) (fr: http://wiki.archlinux.fr/$1) (powered by DokuWiki; some strangeness with how pages are categorized, but I think it should still work...) (pl: http://wiki.arch-linux.pl/wiki/$1) (pt-BR: http://wiki.archlinux-br.org/$1) (Brazilian Portuguese) (ro: http://wiki.archlinux.ro/index.php/$1) (se: http://wiki.archlinux.se/index.php?title=$1) (ua: http://wiki.archlinux.org.ua/$1) (Ukrainian; relatively new and empty wiki; not sure if lang. code should be "uk" instead?) |
This task depends upon
Closed by Pierre Schmitz (Pierre)
Thursday, 26 April 2012, 09:24 GMT
Reason for closing: Implemented
Thursday, 26 April 2012, 09:24 GMT
Reason for closing: Implemented
By the way, no such thing as a Chilean spinoff -- there's only one Spanish :p
Corrections: Ukrainian prefix should indeed be "uk" instead of "ua" and Swedish prefix should be "sv" instead of "se".
Please let me know if I can do anything else to help expedite this process.
Add the following code to a wiki page (e.g. near to the category tag) to link to another language:
[[<language code>:<title>]]
language code is some of http://projects.archlinux.org/vhosts/wiki.archlinux.org.git/tree/extensions/ArchInterWiki.sql For example: [[de:Hauptseite]] can be put on our al.org Main_Page. Mediawiki will automatically add those links to the sidebar. This means we can remove all those i18n templates etc..
I modified your SQL statement a bit:
* REPLACE INTO instead of INSERT for easy updates of URLs
* es-cl is not a valid language code as in http://projects.archlinux.org/vhosts/wiki.archlinux.org.git/tree/languages/Names.php (Isn't that just spanish? The probably should collaborate with the other spanish site then)
* fr doesn't use MediaWiki and they have categories as part of the URL. For example http://wiki.archlinux.fr/Pacman does not work; so we cannot add this wiki.
* The ua wiki does not exist.
A first test seems fine; so I'll add those entry to archlinux.org and archlinux.de right now.
With respect to the French wiki, is it not possible to specify the full path to an article? For example, [[fr:arch/pacman]] or [[fr:howto/archlinux/yaourt]]. While this is not ideal, it's better than nothing, right?
Until more communities create separate wikis, we probably want to keep the i18n template. That, or perhaps it is possible to add "dummy" interwiki entries in the meantime? For example, ('it', 'http://wiki.archlinux.org/index.php/$1', 1, 0) or perhaps ('it', 'http://wiki.archlinux.org/index.php/$1 (Italiano)', 1, 0). Just thinking out loud here...
We could contact the archlinux.fr guys about this. Maybe dokuwiki has another way to interlink or some kind of search/redirect. If everything else fails adding the path as you suggested should work.
('pl', 'http://wiki.archlinux.pl/$1', 1, 0)
('he', 'http://wiki.archlinux.org.il/$1', 1, 0)
('he', 'https://wiki.archlinux.org.il/$1', 1, 0)
The pt-br link should be removed: http://wiki.archlinux-br.org/ goes nowhere and http://www.archlinux-br.org/wiki/ points to the English wiki.
Afterwards, this bug should be closed and future requests can be made in new/separate reports.
The Hebrew link is already dead, but also Spanish (es), Polish (pl), Brazilian Portuguese (pt-BR), Swedish (sv) and Ukrainian (uk) wikis have all been dead for quite a bit of time now, so their interwiki links should probably be removed.
Unless we actually implement the "dummy" links idea, which I really like too.
('tr', 'http://archtr.org/wiki/index.php?title=$1', 1, 0)
After that happens we will redirect all turkish pages with [[tr:turkish_page_of_article]]; right?