Hi,
I have a question on the PageImages MediaWiki extension. I have installed
it on my instanse of MediaWiki apache. It looks like it is working because
with the following hit:
api.php?action=query&prop=pageimages&format=xml&pithumbsize=500&pilimit=10&titles=Paris|Lille|Rennes
I am seeing the following response:
<api>
<query>
<pages>
<page pageid="50116" ns="0" title="Lille"/>
<page pageid="22989" ns="0" title="Paris"/>
<page pageid="46132" ns="0" title="Rennes"/>
</pages>
</query>
</api>
I am not able to see any images info in the response, was expecting to see
something similar to:
http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=xml&p…
In mysql wikipedia DB I have populated *image* and *imagelinks* table using
dumps from wikipedia.
I am assuming that this extension uses data from *page_images* table which
is empty on my instance. How to populate this data (where to get the dump
from?).
I would appreciate any answer.
I'd like to introduce LinqToWiki: a new library for accessing the
MediaWiki API from .Net languages (e.g. C#).
Its main advantage is that it knows the API and is strongly-typed,
which means autocompletion works on API modules, module parameters and
result properties and correctness is checked at compile time.
More information is at http://en.wikipedia.org/wiki/User:Svick/LinqToWiki.
Any comments are welcome.
Petr Onderka
[[en:User:Svick]]
In change I7a3d7b6e[1] which was recently merged, the ApiPageSet
module received a major overhaul. In particular, the parameters to the
constructor have changed, and it now extends ApiBase rather than
ApiQueryBase. These changes will not affect API clients, but any
third-party API modules that use ApiPageSet will need to be updated.
Also as part of this change, ApiQuery is losing its newGenerator() and
executeGeneratorModule() methods, and ApiQueryGeneratorBase's
setGeneratorMode() is gaining a required parameter. These methods are
unlikely to have been used in non-core code.
This brings with it enhanced functionality: non-query actions using
ApiPageSet may now use generators. The core action=purge and
action=setnotificationtimestamp modules have already been enhanced in
this way.
This change should go live on WMF wikis with 1.21wmf10; see the
roadmap for details.[2]
[1]: https://gerrit.wikimedia.org/r/#/c/44087/
[2]: https://www.mediawiki.org/wiki/MediaWiki_1.21/Roadmap
--
Brad Jorsch
Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
Sorry if this question has already been asked and answered. There doesn't
seem to be a way to search the archives.
I'm using action=parse, format=json, and the result creates a JavaScript
JSON object. The HTML I wish to use is in result.parse.text.*, and the
problem is JavaScript detects a syntax error because of the property named
"*". How can I work around this?
Thanks,
Brendan
Hi,
I use list=search (sr) to perform a full text search.
About the results:
What is the default score used for ranking?
Can I sort the results based on specific score? If yes, any documentation
about this?
Thank you in advance.
Edward