Page MenuHomePhabricator

Differentiate between link types on API output
Closed, DeclinedPublic

Description

Currently, when the API outputs the links in an article (see URL), there is no way to see if a link is directly in an article or the result of a transclusion. An attribute on <pl> such as direct="no" or something would make these results clearer.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Main%20Page&format=xml

Details

Reference
bz13397

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:03 PM
bzimport set Reference to bz13397.
bzimport added a subscriber: Unknown Object (MLST).

Bryan.TongMinh wrote:

I don't think we can fix this. Consider:

Template:
[[Project:{{{1}}}]]

Page:
{{:Template|Target}}

What would this result? Also this is impossible to fix without fundamentally changing how MediaWiki handles pagelinks. Closing as wontfix.