When using a link like [[xx:Title_page]] on a wiki whose language code is xx, we create an internal link and not an interwiki link, within MediaWiki.
But Pywikibot considers it is an interwiki link, and as a result, he moves this type of links to the bottom on the page; example using core/scripts/add_text.py
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| [FIX] getLanguageLinks: Skip own site | pywikibot/core | 2.0 | +43 -2 | |
| [FIX] getLanguageLinks: Skip own site | pywikibot/core | master | +41 -2 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Okay I guess it happens because the prefix fr is defined via the interwiki map and thus considered an interwiki link. Now I guess the correct fix would be to compare the sites (aka if fr redirects to itself) and then don't consider it an interwiki link instead of using the language code.
Comment Actions
Change 243639 had a related patch set uploaded (by XZise):
[FIX] getLanguageLinks: Skip own site
Comment Actions
Change 243832 had a related patch set uploaded (by XZise):
[FIX] getLanguageLinks: Skip own site