On Tue, Dec 20, 2016 at 1:18 PM, Bertel Teilfeldt Hansen <
[email protected]> wrote:
> Hi Mediawiki-api mailing listers!
>
> I'm trying to extract the full list of references for different revisions
> of Wikipedia pages. This seemed like it would be easy enough with
> "prop=references", but I keep getting the following error:
>
> "error": {
> "code": "citestoragedisabled",
> "info": "Cite extension reference storage is not enabled.",
> "*": "See https://en.wikipedia.org/w/api.php for API usage."
> }
>
> Even the example on the API's documentation page returns this error
> (https://en.wikipedia.org/w/api.php?action=help&modules=query%2Breferences).
>
> Why does this occur? And is there no way of getting references through the
> API?
>
> As the message says, it occurs when reference storage is not enabled (i.e.
when $wgCiteStoreReferencesData is false).
Even if reference storage is enabled, note that prop=references always
returns the references for the current revision of the page. It does not
provide references for old revisions.
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api