https://bugzilla.wikimedia.org/show_bug.cgi?id=48372
Web browser: ---
Bug ID: 48372
Summary: Missing information in action=parse&prop=links
Product: MediaWiki
Version: 1.19
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
There is some information missing from result of the API call to
action=parse&prop=links
Example:
https://en.wikipedia.org/w/api.php?action=parse&prop=links&format=json&text=[[foo]]%20[[API:Query|bar]]%20[[API:Query|other]]%20[http://www.example.com/%20baz]
The result of such call contains link list, but there is missing information:
- The text for each link would be useful for some bot actions
- The offset of the link should also be given
Each link may appear multiple times in the parsed wiki page, so the above
missing information would need to be repeated for each instance of the link.
For the JSON format the result for the above example would be:
{"parse":{"title":"API","links":[{"ns":0,"*":"Foo","exists":"",[{offset:0}]},{"ns":0,"*":"API:Query"},[{offset:8,text="bar"},{offset:26,text="other"}]]}}
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l