JJMC89 added a comment.
You can use forceInterwiki=True
>>> p = pywikibot.Page(pywikibot.Site('fr', 'wikipedia'), 'Test')
>>> t = pywikibot.Page(pywikibot.Site('test', 'wikipedia'), 'user:Framawiki/Brouillon')
>>> t.text = p.title(asLink=True, forceInterwiki=True)
>>> print(t.text)
[[fr:Test]]
Vladis13 added a comment.
@Tgr yes, on https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation again was not updated version number 2.0rc4. So I thought that my version Pwb is actual.
I make Oauth, but Pwb still ask password. I tried make Oauth from both accounts - user and bot, then write
Framawiki changed the title from "Correct p.title(asLink=True) when not use same wiki" to "Interwiki link with p.title(asLink=True)".Framawiki edited the task description. (Show Details)
EDIT DETAILS...`.title(asLink=True)` should give a way to return an interwiki / absolute link.TASK
Framawiki created this task.Framawiki added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTIONHello, about this edit :
>>> p = pywikibot.Page(pywikibot.Site('fr', 'wikipedia'), 'Test')
>>> t = pywikibot.Page(pywikibot.Site('test', 'wikipedia'),
XXN added a comment.
I suppose this is not possible due to the fact that this data is not retrievable through API (https://www.mediawiki.org/wiki/API:Lists).TASK DETAILhttps://phabricator.wikimedia.org/T150222EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:
MaxBioHazard added a comment.
When the old login method will be turned off?TASK DETAILhttps://phabricator.wikimedia.org/T137805EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MaxBioHazardCc: MaxBioHazard, Huji, Glavkos, Vladis13, MZMcBride, DrTrigon, Udo_T,