Page MenuHomePhabricator

Italian API: action=parse props=iwlinks, it no longer retrieves iw with prefix="commons"
Closed, InvalidPublic

Description

Author: paontis

Description:
For example: http://it.wikipedia.org/w/api.php?action=parse&format=xml&prop=iwlinks&page=milano

The iw links with prefix="commons" are no longer retrieved
Before we used this to retrieve the wikimedia pages for a given page


Version: unspecified
Severity: major

Details

Reference
bz35256

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:11 AM
bzimport set Reference to bz35256.
bzimport added a subscriber: Unknown Object (MLST).

The link is from a template, so it doesn't count in the interwiki links on the page, does it?

{{interprogetto|commons=Category:Milan|q|q_preposizione=su|n=Categoria:Milano|wikt}}

Why reparse the page for that information?

http://it.wikipedia.org/w/api.php?action=query&format=xml&prop=iwlinks&titles=milano

The [[it:Template:Interprogetto/CollegamentoUselang]] is using fullurl, which is not stored in the iwlinks table and cannot get with prop=iwlinks.

https://it.wikipedia.org/w/index.php?title=Template:Interprogetto&diff=47705604&oldid=47680173 changes the behaviour, because it sets a uselang=it for commons and that is an external link.

paontis wrote:

Ok, so now to retrieve the Wikimedia links I have to use props=extlinks instead, and filter on the domain.
Thanks a lot for the explanation and for the quickness of the answer!