Last modified: 2010-10-17 21:54:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27555, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25555 - failed in getting backlinks of some pages in persian wiktionary
failed in getting backlinks of some pages in persian wiktionary
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Roan Kattouw
http://fa.wiktionary.org/w/api.php?ac...
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-17 21:47 UTC by iCEAGE
Modified: 2010-10-17 21:54 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description iCEAGE 2010-10-17 21:47:05 UTC
In persian wiktionary, I couldn't get backlinks of some pages (especially template pages) via Mediawiki API. I discussed this problem in wikimedia-tech, and they told me that could be a bug in Mediawiki API.
For example I couldn't get backlinks of pages below in persian wiktionary:

http://fa.wiktionary.org/w/api.php?action=query&list=backlinks&bltitle=%D8%A7%D9%84%DA%AF%D9%88:%D8%A7%D8%B3%D9%85-%D8%A7%D9%86
http://fa.wiktionary.org/w/api.php?action=query&list=backlinks&bltitle=%D8%A7%D9%84%DA%AF%D9%88:%D8%A8%D8%B1%DA%AF%D8%B1%D8%AF%D8%A7%D9%86-%D8%A8%D8%A7%D9%84%D8%A7

Note that these links has a lot of backlinks.
Comment 1 Roan Kattouw 2010-10-17 21:54:52 UTC
The backlinks you're seeing in Special:Whatlinkshere are all transclusions (see http://fa.wiktionary.org/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87:%D9%BE%DB%8C%D9%88%D9%86%D8%AF_%D8%A8%D9%87_%D8%A7%DB%8C%D9%86_%D8%B5%D9%81%D8%AD%D9%87/%D8%A7%D9%84%DA%AF%D9%88:%D8%A7%D8%B3%D9%85-%D8%A7%D9%86&uselang=en ), so you have to get them through embeddedin: http://fa.wiktionary.org/w/api.php?action=query&list=embeddedin&eititle=%D8%A7%D9%84%DA%AF%D9%88:%D8%A7%D8%B3%D9%85-%D8%A7%D9%86 . Backlinks only erturns 'real' links, this is by design. You can also combine the two queries in one request using ?action=query&list=backlinks|embeddedin&bltitle=Foo&eititle=Foo

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links