Reputation: 139
I`am using the Mediawiki API offline on my server.
I installed everything and it works but if i try a query it returns the error: "Unrecognized value for parameter 'prop': extracts"
than i installed the TextExtracts extension and also the MobileFrontend extension, but it's still not working.
I tried this from the answer in this question.
My url:
api.php?action=parse&page=Paul_McCartney&prop=extracts&format=xml
error:
Mediawiki versions:
Upvotes: 0
Views: 1088
Reputation: 2874
The TextExtracts extension implements a query
Api module, so you can't use the extracts
prop with the parse
action. Instead of your url, you can use:
api.php?action=query&page=Paul_McCartney&prop=extracts&format=xml
(see the action parameter, which changed from parse
to query
)
to get the extracts
prop.
Upvotes: 2