-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello all
I wanted to ask the question [1] here again. Would it be possible to include a 'wiki' family to enable such interwiki links?
[1] http://sourceforge.net/tracker/?func=detail&aid=3088230&group_id=931... [2] https://jira.toolserver.org/browse/DRTRIGON-60 (partly German - sry)
Hello Dr. Trigon,
On 30 August 2011 11:39, Dr. Trigon dr.trigon@surfeu.ch wrote:
I wanted to ask the question [1] here again. Would it be possible to include a 'wiki' family to enable such interwiki links?
I'm not quite sure which interwiki links you mean. Links between families are currently not supported afaik, and using 'wiki:blah' on wikipedia does not make much sense. To make matters worse, 'wiki:blah' can link to enwp:blah, but also to nlwp:blah, depending on which page it was linked from.
Best, Merlijn
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thank you for your fast reply!
The issue raises actually because [1] returns "pseudo-interwiki" links given by the DB names like 'dewiki', 'enwiki', and so on...
So in that case I would be happy with any piece of code within the framework that is (somehow) able to deal with such links. At the moment I'm using:
site = pywikibot.getSite() print site.fam().get_known_families(site).values()
to try to deal with those links. But this list contains 'wiki' as known family and if I try to use
pywikibot.Page(site, u'wiki:blabla')
this won't work. To be more specific e.g. I get following 2 links:
itwikisource:User talk:DrTrigon dewiki:User talk:DrTrigon
the I look up the list and can see 'wikisource' and 'wiki' beeing there. Next step I try to convert to valid interwiki links and get:
wikisource:it:User talk:DrTrigon wiki:de:User talk:DrTrigon
the first one (and a lot of similar links work perfectly) but the second one (and for me the most frequent ones) does not work! It triggers:
wiki:de:User talk:DrTrigon is not a local page on wikipedia:de, and the wiki family is not supported by PyWikipediaBot!
which is obviously not true at all!
On the other hand IF I do write
w:de:User talk:DrTrigon OR de:User talk:DrTrigon
it does work, but as far as I can see 'w' is no valid family at all.
To summarize its possible to handle this but to me it does not seam very consistent behaviour, what do you think?
[1] http://toolserver.org/~merl/UserPages/query.php?user=DrTrigon
Thanks and Greetings DrTrigon
Am 30.08.2011 13:03, schrieb Merlijn van Deen:
Hello Dr. Trigon,
On 30 August 2011 11:39, Dr. Trigon <dr.trigon@surfeu.ch mailto:dr.trigon@surfeu.ch> wrote:
I wanted to ask the question [1] here again. Would it be possible to include a 'wiki' family to enable such interwiki links?
I'm not quite sure which interwiki links you mean. Links between families are currently not supported afaik, and using 'wiki:blah' on wikipedia does not make much sense. To make matters worse, 'wiki:blah' can link to enwp:blah, but also to nlwp:blah, depending on which page it was linked from.
Best, Merlijn
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Dr. Trigon dr.trigon@surfeu.ch wrote:
Thank you for your fast reply!
The issue raises actually because [1] returns "pseudo-interwiki" links given by the DB names like 'dewiki', 'enwiki', and so on...
So in that case I would be happy with any piece of code within the framework that is (somehow) able to deal with such links. At the moment I'm using:
site = pywikibot.getSite() print site.fam().get_known_families(site).values()
to try to deal with those links. But this list contains 'wiki' as known family and if I try to use
pywikibot.Page(site, u'wiki:blabla')
You shouldn't be using "wiki" anywhere. Wikipedia should be referred to as "wikipedia".
"wiki" is being use as the interwiki link to the original wiki, WikiWikiWeb at http://c2.com/cgi/wiki, so you shouldn't use that for anything related to Wikipedia. You are getting it returned since Wikipedias can use it as an interwiki link to the WikiWikiWeb, i.e. [[:wiki:WelcomeVisitors]] becomes http://c2.com/cgi/wiki?WelcomeVisitors
//Marcin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
"wiki" is being use as the interwiki link to the original wiki, WikiWikiWeb at http://c2.com/cgi/wiki, so you shouldn't use that for anything related to Wikipedia. You are getting it returned since Wikipedias can use it as an interwiki link to the WikiWikiWeb, i.e. [[:wiki:WelcomeVisitors]] becomes http://c2.com/cgi/wiki?WelcomeVisitors
So this means essentially 'wiki' in toolserver DB (like e.g. 'dewiki') does not refer to the same as 'wiki' in pywikipediabot and interwiki... (strange...)
But would also explain this 'inconsistency'... ;)
Thanks and Greetings
pywikipedia-l@lists.wikimedia.org