https://bugzilla.wikimedia.org/show_bug.cgi?id=40283

       Web browser: ---
             Bug #: 40283
           Summary: API retrieval of links from a page does not work with
                    DPL
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


When using the API to retrieve links within a page, it does not parse the
contents of any DPL included within the page and return links listed within the
DPL.

Examples:

1.
https://en.wikinews.org/w/api.php?action=query&prop=links&titles=Main%20Page&plnamespace=0&pllimit=500

This retrieves all main namespace pages linked-to from the Wikinews main page,
but not those which are listed by using a DPL.

Note that [[n:Samoa looking ahead to Rio Paralympics with eye on powerlifting]]
is not returned by the API, but listed in the main headlines DPL and the
original reporting DPL.

2.
https://en.wikinews.org/w/api.php?action=query&prop=links&titles=User%3ANewsieBot%2FArticleWatch&plnamespace=0&pllimit=500

Nothing is returned in the list of links. The page (see view source) is simply
a DPL.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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

Reply via email to