When I retrieve this page:
http://wiki.lspace.org/api.php?action=query&prop=revisions&titles=Image:Cov…
I get this:
<?xml version="1.0" encoding="utf-8"?><api><query><normalized><n
from="Image:Cover_The_Last_Hero.jpg" to="Image:Cover The Last
Hero.jpg" /></normalized><pages><page pageid="4963" ns="6"
title="Image:Cover The Last
Hero.jpg"><revisions><revtimestamp="2008-01-20T13:54:58Z">Illustrated
by Paul Kidby
In other words, even though I requested the 'content' of the page, I
don't get the URL to the image itself.
By visiting the page normally:
http://wiki.lspace.org/wiki/Image:Cover_The_Last_Hero.jpg
I learned that the image URL is
"http://wiki.lspace.org/uploads/4/4e/Cover_The_Last_Hero.jpg".
Is there any way to obtain that URL using the Mediawiki API?
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
Hi all,
I've been using the API and so far I'm very pleased! I would like to know if
it is possible to get the HTML version of an article directly , or if I have
to get the wiki markup and convert it (which is what i am doing).
Second question is if the API can return the 'search' results of a keyword
that doesn't exist (when you enter a word for which there isn't an article
yet, wikipedia returns a page with possible articles). Can the API provide
me with the list? I've tried most things on the manual but none worked for
me (so please don't respond rtfm :) )
Thanks for the great work to everyone involved with the API or reading the
list,
Markos
--
Under the paving stones, the beach
Hello,
I have a question between the difference between rights and groups in
protection. When I request the protection of a page, for example
<http://commons.wikimedia.org/w/api.php?action=query&prop=info&inprop=protec…>
the following is given for protection:
<protection>
<pr type="edit" level="autoconfirmed" expiry="infinity" />
<pr type="move" level="sysop" expiry="infinity" />
</protection>
When I ask my userinfo
<http://commons.wikimedia.org/w/api.php?action=query&prop=revisions&meta=use…>:
<userinfo name="Bryan">
<groups>
<g>checkuser</g>
<g>sysop</g>
</groups>
<rights>
[...]
<r>autoconfirmed</r>
<r>skipcaptcha</r>
<r>emailconfirmed</r>
</rights>
</userinfo>
To abe able to edit the page, one needs to be 'autoconfirmed' which is
a right. In order to be able to move a page, one needs to be 'sysop'
which is a group. So can protection be set for both groups and rights?
I'm asking because I need to check in my framework whether there are
sufficient rights for an action.
Bryan
Hi,
When looking at the documentation you get when callling the API, the
apprefix parameter is documented as "Search for all page titles that
begin with this value" but I don't get any result when I try to use it.
For example, the following request returns zero pages :
http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprefix=Bal&a…
How do you use apprefix ?
Nico
Hi,
While using the Wikipedia API I noticed an odd behavior. It seems that
I'm only able to retrive the size of a revision in some revisions.
Works fine:
http://en.wikipedia.org/w/api.php?action=query&titles=Porto&prop=revisions&…
Size does not shows up although the call is the same:
http://en.wikipedia.org/w/api.php?action=query&titles=Porto&prop=revisions&…
It seems like a bug. Is it?
I do know if Wikipedia is using the latest version of the Wikimedia API.
Maybe this is already corrected in the development repository.
Btw, size is given in bytes. Correct?
Can you please comment on this issue?
Thanks!
--
Sérgio Nunes
Hi,
(I also posted this at http://www.mediawiki.org/wiki/Talk:API:Query_-_Lists)
Hi,
I see that the backlinks query can already filter results depending if a
backlink is a redirect or not (with blfiterredir) but I don't see a way
to see in the result if backlinks are actually redirect or not. Could it
be added to the API ?
I need to retrieve all backlinks (recursively through redirects), so
currently I call recursively the backlinks query and the redirect query.
Retrieving the 2 informations in one query would be very useful for me
to speed up requests ;)
I quickly looked at the code of the backlinks query and it seems simple
to do (I may be overlooking things because I don't know how the API is
working) :
* In run(), call $this->addField('page_is_redirect'); if needed.
* In extractRowInfo(), add something like $vals['redirect'] =
intval($row->page_is_redirect);.
Thanks in advance for any answer :)
Nico
I will be out of the office starting 24/12/2007 and will not return until 07/01/2008.
I will respond to your message when I return.
For urgent problem on:
- Reporting Projects, please contact 'XNMS-ACC Staff' team - Inventory & Resource Assignment Projects, please contact 'xnms-adm project' team